New models are arriving in AIP in quick succession. On November 17, Palantir added Google's Gemini 4. AIP Evals is Palantir's tool for checking a swap before it reaches production. Its docs list the use case directly: "Compare the performance of different models on your functions."
This guide shows you how to test a candidate model against the AIP Logic function you run today. If your LLM calls live in pipelines, see our earlier guide to testing a model before a Pipeline Builder bulk swap.
Why now
Palantir's November announcements say: "Google's Gemini 4 Hydrogen and Carbon are now available as experimental models in AIP through Google Vertex AI." Palantir lists a 1-million-token context window for both models. It also lists text, image and audio inputs, tool calling and structured outputs.
Earlier in the month, AIP added DeepSeek V4.1 Flash through Fireworks and web search for OpenAI models.
In our view, this pace is good news for builders, because it brings more choice on cost, speed and capability. We think it also makes a repeatable test routine worth setting up now.
What AIP Evals gives you
Palantir describes the tool this way: "AIP Evals is a testing environment to evaluate the performance of your AIP Logic functions, AIP Chatbot functions, or code-authored functions." The overview adds: "It is specifically designed to help you deal with the non-deterministic nature of LLMs." This walkthrough focuses on AIP Logic functions.
The docs define the building blocks:
- An evaluation suite holds test cases, target functions and evaluation functions.
- The target function is the one under test.
- Evaluation functions compare actual output with expected output.
- The resulting metrics are produced per test case.
Before you start: for Gemini 4, Palantir says: "Confirm that your enrollment administrator has enabled the relevant model family as well as experimental models." Experiments, multi-target mode and AI FDE evals are described in the docs; check that your enrollment has them.
Step by step
- Build your evaluation set. In AIP Logic, open the Preview panel and select Add as test case. That creates a suite with its first test case, according to the getting started page. You can also choose Set up tests manually in the Evals panel. Or choose Generate with AI FDE to have AI FDE generate test cases and evaluators for you. The create-suite docs say you can generate test cases from an object set, or mix object-set and manual cases in one suite.
- Add evaluators and define a pass. The create-suite docs say to select + Add at the top of the test case table. The docs list built-in options including Exact string match, ROUGE score and LLM-as-a-judge. The judge, they say, needs a clear, verifiable condition and a model to judge with. For Boolean metrics you choose whether true or false passes. For numeric metrics you choose whether higher or lower is better, and can set a threshold. Without an evaluator, the docs say, you get the function's return value but no aggregated metrics.
- Record a baseline on your current model. Select the cog icon next to Run evaluation suite to open run configuration, per the run-suite docs. For Logic functions, the docs say you can target the latest saved version or a published version, and select a branch. We suggest pointing the baseline at the version you run in production. Each test case can run from 1 to 100 times, and the docs advise: "Due to the non-deterministic nature of LLMs, we recommend running test cases at least three times for LLM-backed functions."
- Parameterize the model, and the prompt too. The experiments page says to parameterize both the model and the prompt. It suggests changing the model variable from Required to Optional, and configuring each Use LLM block to use it. Then turn on experiments with the toggle in the Run configuration dialog.
- Run the candidate in an experiment. The experiments page says grid search tests your parameter values in all combinations, in separate suite runs. It also says: "An experiment can include up to 25 evaluation runs." Palantir's example uses Group by on the model column to see aggregate metrics per model.
- Compare side by side. The experiments page says: "You can select up to 4 runs from the Runs table to compare." The run-suite docs describe Click to compare to another run in the results view, which opens two runs together. They add: "By default, the View diff toggle will be enabled, resulting in output differences between the two runs being highlighted."
- Or compare separate functions. If your candidate lives on a branch, select that branch in run configuration to test its function versions. If it is a separate function, the create-suite docs say to add it with Edit suite, then Add target in the Targets panel. Then select Test multiple targets in run configuration. The docs say input mappings are needed so suite columns map to each function's inputs.
Latency, hosting and metering
The experiments page frames runs as a way to see possible performance and cost tradeoffs between parameters. For response time, we suggest timing a handful of representative calls on each model yourself. One option, in our view, is to record that figure as custom metadata on the run. The docs say custom fields sit alongside the automatically captured branch, version and model.
Next, check where the model runs. Palantir lists Gemini 4 for non-georestricted, US-georestricted and EU-georestricted commercial enrollments, and for IL2, IL4 and IL5 US Government enrollments.
Availability also differs by provider path. Palantir's announcements show different regional support per provider for GPT Realtime 2.1, so confirm the entry that matches your enrollment.
The LLM enrollment rate limits page lists tokens and requests per minute by model and backend. For spend, Palantir's Gemini 4 notes say: "Review token costs and pricing." The Foundry usage and limits page has been generally available since November 19. Palantir says it shows your enrollment's usage against its enrollment-level limit over time. It is read-only, and Palantir points to Resource Management for compute, storage and billable usage.
Keep a way back
The steps in this section are our suggestion, not a documented Palantir rollback procedure. In our view, the best rollback plan is a clean baseline. Keep your production version published and keep its eval run, then let the candidate prove itself on a branch first.
The docs say runs record branch, version and model. We think that record of which configuration was tested helps if you need to return to the earlier setup.
If many Logic functions share one model, Palantir's May announcements describe bulk replace in Workflow Lineage. Palantir says it swaps the model across those functions in one action. We suggest running each function's suite before you use it.
Watch out for
- Prompts tuned for one model. In our view, this is a pitfall worth planning for: wording that works well on one model can behave differently on another. Palantir's experiments page advises parameterizing the prompt alongside the model. We suggest testing a revised prompt as its own experiment value.
- Strict pass rules. The create-suite docs say: "A test case fails if any metric fails in any iteration, and passes if at least one metric passes and none fail." We read that as meaning more iterations make a stricter test.
- Noisy metrics. The docs warn that high variance in numeric evaluators like ROUGE can mean a test case and evaluator need refinement. We suggest fixing these before judging the model.
- Rate limits during runs. The docs say ten test cases run in parallel by default, which is also the maximum. "Reducing the number of parallel test case executions can help when you run into rate limits."
- Multi-target limits. The run-suite docs say: "Experiment configuration is not available when running in multi-target mode." Choose one approach per run.
- Judge models. An LLM-as-a-judge evaluator runs on a model you choose. We suggest keeping that model fixed while you compare candidates.
- Results that expire. Project-scoped execution is the default. The docs say user-scoped results are visible only to you, for 24 hours after the run.
What to watch
Before a large eval run, we suggest checking the rate-limits table for your candidate model and backend. Watch Palantir's monthly announcements for changes in regional availability. In our view, a team with a solid evaluation suite is well placed to adopt each new model quickly.
