Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Palantir 12 min read How-to easyNovice

Reducing Hallucinations with the Ontology in Palantir AIP

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.

Assumes: LLM basicstool calling

Related posts

  • Continuously hardening ChatGPT Atlas against prompt injection

    OpenAI easyNovice

    OpenAI hardens the ChatGPT Atlas browser agent against prompt injection using an LLM attacker trained end-to-end with reinforcement learning. Before committing to an attack, the attacker tests candidate injections in a simulator that returns the victim agent's full reasoning and action trace, which lets it find long-horizon exploits spanning tens to hundreds of steps. One example tricks the agent into sending a resignation email instead of an out-of-office reply. Discovered attacks feed a rapid response loop that adversarially trains new agent checkpoints and improves monitoring and system safeguards, while users are advised to use logged-out mode and carefully review confirmation prompts.

  • Dead Ends or Data Goldmines? Investment Insights from Two Years of AI-Powered Postmortem Analysis

    Zalando Engineering mediumAdept

    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. They chose chained single-purpose prompts in a map-fold pattern over large-context models to avoid "lost in the middle" effects, cost and latency. Strict no-inference prompts and negative examples counter hallucinations and surface attribution errors. NotebookLM alone gave roughly a 3x speedup but hallucinated and lost context, and human curation at each stage remains essential for trust and accuracy.

  • Trace & Evaluate your Agent with Arize Phoenix

    Hugging Face mediumAdept

    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. Evaluation works by querying the search tool's spans with SpanQuery and scoring query/result relevance with GPT-4o as an LLM judge via llm_classify and the RAG relevancy template. The scores are then logged back to Phoenix as span evaluations. Swapping in other prebuilt templates covers checks such as hallucination, toxicity, SQL generation and function calling.

  • Context engineering case studies: Etsy-specific question answering

    Etsy Code as Craft mediumAdept

    Etsy tested whether prompt engineering over embedding-based retrieval, without fine-tuning, could reliably answer Etsy-specific questions. On a 40-question Travel & Entertainment policy set the LLM answered about 86% correctly; on a 50-question seller-forum set it scored about 72%, with errors doubling on the more heterogeneous, opinionated data. Letting the model admit uncertainty and asking it to explain its answer (chain-of-thought) fixed some hallucinations, but adding a contextual preamble often did not help. Asking the model to cite specific source snippets proved the most useful way to flag potential hallucinations.

  • Inside OpenAI’s in-house data agent

    OpenAI mediumAdept

    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. Its accuracy rests on six layers of context: table usage and lineage, human annotations, Codex-derived code-level table definitions, institutional knowledge from Slack/Docs/Notion, a user-correctable memory, and live warehouse queries. A daily offline pipeline normalizes and embeds this context for RAG retrieval, keeping latency predictable across tens of thousands of tables. Quality is protected with Evals API test sets that compare generated SQL output against golden queries.

The quest for software engineering knowledge.

Look:
Layout: