---
title: "Reducing Hallucinations with the Ontology in Palantir AIP"
description: "Grounding LLMs in Palantir's Ontology reduces hallucinations in three ways, shown with a notional manufacturer, Titan Industries."
url: "https://swe.quest/articles/reducing-hallucinations-with-the-ontology-in-palantir-aip-925ce2b2bf07e3e2"
canonical: "https://blog.palantir.com/reducing-hallucinations-with-the-ontology-in-palantir-aip-288552477383"
source: "Palantir"
published: "2024-07-09"
difficulty: "easy"
kind: "How-to"
reading_minutes: 12
tags: ["llms","ai-agents","rag","ai-safety"]
---

# Reducing Hallucinations with the Ontology in Palantir AIP

A post on [Palantir](https://swe.quest/sources/palantir.md), published 2024-07-09, 12 min read, How-to. Original: [https://blog.palantir.com/reducing-hallucinations-with-the-ontology-in-palantir-aip-288552477383](https://blog.palantir.com/reducing-hallucinations-with-the-ontology-in-palantir-aip-288552477383)

## Summary

Grounding LLMs in Palantir's Ontology reduces hallucinations in three ways, shown with a notional manufacturer, Titan Industries. First, a query tool lets the model retrieve trusted enterprise data, such as distribution center locations it never saw in training. Second, computation is handed off to deterministic functions, for example a Haversine distance function to find the nearest distribution center instead of letting the LLM guess. Third, AI-generated actions are queued for human review and approval rather than written directly to external systems.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [AI safety](https://swe.quest/tags/ai-safety.md) (AI & ML)

## Prerequisites

- LLM basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- tool calling

## Keywords

Palantir AIP, AIP Logic, Palantir Ontology, Ontology Augmented Generation, Haversine formula

## Related posts

- [Continuously hardening ChatGPT Atlas against prompt injection](https://swe.quest/articles/continuously-hardening-chatgpt-atlas-against-prompt-injection-a9a9178548b95727.md): OpenAI · 2025-12-22 · Easy · 11 min read · AI safety, AI agents, Application security, Model training, LLMs
  OpenAI hardens the ChatGPT Atlas browser agent against prompt injection using an LLM attacker trained end-to-end with reinforcement learning.
- [Dead Ends or Data Goldmines? Investment Insights from Two Years of AI-Powered Postmortem Analysis](https://swe.quest/articles/dead-ends-or-data-goldmines-investment-insights-from-two-years-of-ai-powered-8637215027e4eee6.md): Zalando Engineering · 2025-09-24 · Medium · 18 min read · LLMs, SRE, Incidents & postmortems, Databases
  Zalando built a multi-stage LLM pipeline (summarization, classification, analyzer digests, cross-incident patterns, investment opportunities) to mine thousands of postmortems for recurring failure patterns in its datastores: Postgres, DynamoDB, ElastiCache, S3 and Elasticsearch.
- [Trace & Evaluate your Agent with Arize Phoenix](https://swe.quest/articles/trace-evaluate-your-agent-with-arize-phoenix-ea5d226abd11d54e.md): Hugging Face · 2025-02-28 · Medium · 6 min read · AI agents, Evaluation, Observability, LLMs, Python
  A smolagents CodeAgent with DuckDuckGo search and webpage tools can be instrumented with OpenTelemetry and OpenInference so every agent call is traced in a local or hosted Arize Phoenix instance.
- [Context engineering case studies: Etsy-specific question answering](https://swe.quest/articles/context-engineering-case-studies-etsy-specific-question-answering-ff89774f7981cc63.md): Etsy Code as Craft · 2025-08-19 · Medium · 11 min read · RAG & retrieval, LLMs, Evaluation
  Etsy tested whether prompt engineering over embedding-based retrieval, without fine-tuning, could reliably answer Etsy-specific questions.
- [Inside OpenAI’s in-house data agent](https://swe.quest/articles/inside-openai-s-in-house-data-agent-55ba2e68b590558a.md): OpenAI · 2026-01-29 · Medium · 13 min read · AI agents, RAG & retrieval, Analytics & OLAP, Evaluation, LLMs
  OpenAI built an internal GPT-5.2-powered data agent that answers natural-language analytics questions over a platform of 600+ PB and 70k datasets, available via Slack, web, IDEs, Codex CLI and ChatGPT through MCP.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
