Pipeline Builder's bulk migrations, announced by Palantir on November 17, swap the model behind Use LLM nodes across many pipelines in one workflow. That makes now a good time to tune your LLM nodes: clear prompts, typed output, repeatable tests and caching that can reduce recomputation costs.
This guide walks through the Use LLM node as Palantir documents it. It ends with a pattern for checking a new model before a bulk swap. For conversions to faster pipelines, see our earlier walkthrough.
Before you start: you need permission from a platform administrator. Palantir's Use LLM node documentation says: "To use, users must be granted permission for AIP capabilities for custom workflows by a platform administrator." Palantir's model announcements also ask builders to confirm that their enrollment administrator has enabled the relevant model family as well as experimental models.
What the node does
Palantir describes the node as a convenient way to run large language models on your data at scale. The documentation says: "The integration of this node within Pipeline Builder allows you to seamlessly incorporate LLM processing logic between various data transformations, simplifying the integration of LLMs into your pipeline with no coding required."
The node works with two kinds of models. The documentation says: "The Use LLM node supports both Palantir-provided models and registered models." It adds: "Alongside Palantir-provided models, the Use LLM node supports registered models backed by a REST API source in Data Connection or a compute module."
Since November 3, the node also works in faster pipelines. Palantir said that day that faster pipelines became the default in Pipeline Builder, with new support for Use LLM nodes. We reported it at the time.
Step 1: design the prompt
- Add a Use LLM node after the transform that prepares your text.
- Pick a template or start from scratch. The node ships with five templates: classification, summarization, translation, sentiment analysis and entity extraction. To write your own prompt, select Empty prompt.
- Open the Preview tab to read a template's instructions before you commit to it.
- Select Create prompt.
The documentation gives guidance for two of the templates. "You should use the classification prompt when you want to categorize data into different categories." And: "Use the sentiment analysis prompt when you want to assign a numeric score to your data based on its positive or negative sentiment."
To tune the model's responses, open [Advanced] Show configurations for model. The documentation lists three settings: temperature, max tokens and stop sequences. According to Palantir, lower temperatures make output more focused and deterministic, and higher ones make it more random. Max tokens limits the length of the output, and you can set up to four stop sequences.
Step 2: ask for structured output
On the prompt page you can set the output type the response must match. Palantir's entity-extraction example pulls typed fields from restaurant reviews. Food items come back as a string array, service quality as a string and the visit count as an integer.
Struct outputs are parsed strictly. The documentation says: "If the LLM output does not conform to the expected struct schema, the node fails with an error such as Cannot coerce to provided output type." It adds: "This strict behavior is intentional for non-interactive pipeline flows, ensuring that schema mismatches are surfaced clearly rather than silently producing incorrect data."
You have two ways to control how failures appear:
- Include errors. Palantir says: "This configuration will change your output type to a struct consisting of your original output type and the error string." Untick the box to return to the plain output.
- JSON string, then parse. Palantir's documented workaround is to output a JSON string and parse it into your struct in a later transform. The documentation says: "This approach gives you more control over how parsing errors are handled within your pipeline."
In our view, Include errors suits batch work you plan to evaluate, because failed rows become data you can count and filter.
Step 3: sample, then evaluate
Start with trial runs. In the Input table tab, select a handful of rows and run the prompt on them. Palantir says: "This preview functionality computes in seconds, speeding up the feedback loop and enhancing the overall development process." According to the documentation, a trial run shows:
- the exact prompt sent to the model, including any additions the backend makes
- every intermediate output, including failed ones
- details of any corrections made for failures
- the final output
When the prompt looks right, move to the evaluation suite, which Palantir announced in September. The documentation says it lets you:
- configure multiple evaluations in a suite
- run them in an isolated test environment
- compare outputs against expected results with evaluators such as Exact string match
- store results in an output dataset
- track build progress and review detailed results
Palantir's advice: "Use the evaluation suite to validate your LLM logic before deployment."
Step 4: manage cost and concurrency
Turn on Skip recomputing rows. The documentation says: "To save on compute costs and time, you can skip computing already processed rows by toggling Skip recomputing rows." Matching rows get the cached output instead of being processed again. Rows whose earlier output was an error or null are recomputed on the next run.
The cache is stored in a Foundry dataset. Palantir says it has effectively no practical row-count limit and can support tens of millions of rows. That holds as long as inputs are deterministic and the same rows appear across builds.
For Spark batch pipelines, the documentation says: "Even when using the default Extra Small compute profile, which uses a single core, the degree of concurrency is very high." The node has retry logic so jobs can succeed when they hit rate limits. Palantir cautions that provisioning extra cores that spend much of their time retrying can be inefficient or wasteful.
Its advice is to treat Extra Small as the baseline and add no more than two cores at a time. Then compare "total runtime across all tasks" with "job duration" on the job's Spark details page. If total runtime significantly increases without a matching drop in job duration, Palantir says, you have too many cores and should scale down.
On metering, Palantir's documentation says that in Spark batch pipelines, LLM calls from the node are routed through the functions executor rather than directly to the Language Model Service. As a result, it says, large Spark batch builds generate functions executor usage on top of LLM compute costs. Palantir's model announcements point builders to its token costs and pricing.
The Usage and limits page, generally available since November 19, can help you watch traffic. Palantir notes it covers only traffic reported through Foundry's rate limits infrastructure. For compute, storage and billable usage, Palantir says to keep using the Overview and Analysis pages in Resource Management.
Step 5: check where a model is available
Availability depends on the model, the provider and your enrollment type. Palantir's announcements point builders to its complete list of models available in AIP. Some recent examples:
- DeepSeek V4.1 Flash via Fireworks. Palantir's October announcements list it for US-georestricted commercial enrollments, alongside existing non-georestricted availability. On November 3, Palantir added experimental support for DeepSeek V4.1 Flash (1017) on non-georestricted commercial enrollments, with inference hosted in the US. Palantir says support includes text and image inputs, tool calling and a 1-million-token context window, and that availability depends on the required releases reaching your enrollment.
- Gemini 4 Hydrogen and Carbon via Google Vertex AI, both experimental. Palantir lists non-georestricted, US-georestricted and EU-georestricted commercial enrollments, plus IL2, IL4 and IL5 US Government enrollments. Palantir lists structured outputs among their capabilities.
Step 6: compare models before a bulk swap
Bulk model swaps cover Use LLM and Text to Embeddings nodes. According to Palantir, you open Migrate from the Pipeline Builder landing page, select Replace model and map the current model to its replacement. Pipeline Builder then generates a proposal for each pipeline, which you review and merge into the main branch.
We suggest this order:
- On a branch, switch one representative Use LLM node to the candidate model and rerun your evaluation suite.
- Compare the stored results with the current model's results.
- Open Migrate, map the old model to the new one, and generate proposals.
- Before merging, use the new Compare tab to match records on primary keys and inspect before-and-after values. Palantir says the tab also lets you review schema, lineage, code and security comparisons, to help you understand what changed and why. Palantir said on November 17 that the tab would roll out to users incrementally over the following few weeks.
Watch out for
- Templates are one-way. Once you select Create prompt, you cannot go back to the template for that board.
- The output preview shows only the first 50 rows.
- The cache only looks at prompt columns. A row that differs only in a column outside the prompt reuses the cached output.
- Upstream steps must be deterministic. Nondeterministic deduplication bypasses the cache. Palantir suggests window functions to pick the same representative row every time.
- Changing the output type clears the cache. All rows are then reprocessed in the next deployment.
- Multiple outputs need one job group. With caching on, put downstream outputs in the same job group, outside the default one.
- Media-set inputs need a conversion step. Look for the Vision label in the model selector for vision-capable models. Media sets are not a direct input, and the documentation points to the Convert Media Set to Table Rows transform.
What to watch
We think the evaluation suite and bulk migrations together give builders a complete model-management loop: test, swap, compare, merge. Watch for the Compare tab's full rollout and for new model availability by enrollment type. Our weekly roundup tracks them as they land.
