AIPCore ConceptsAug 1, 2026

Getting Started with AI FDE

In this video, "Getting Started with AI FDE" by Ontologize, former Palantir engineers demonstrate how to use AIP FDE (AFDE)—Palantir Foundry's interactive conversational AI engineer agent—to inspect, audit, clean, and transform messy operational data using automated tools, global branching, and Python code repositories [00:00].


image
image

Architectural Process Map: Human-Agent Data Engineering Workflow

AFDE operates as an autonomous agent that navigates Palantir Foundry via structured tool bundles (modes), global proposals, and iterative code execution:

                      PALANTIR AFDE DATA ENGINEERING FLOW
┌────────────────────────────────────────────────────────────────────────┐
│ [ 1. Session Initialization & Context Grounding ]                      │
│   ├── Launch AFDE (Ctrl + J) ──> Select AI Model (e.g., GPT-5.4 / Opus)│
│   └── Attach Context (Project/Data Folders, Data Sets, Repositories)  │
└──────────────────────────────────┬─────────────────────────────────────┘
                                   │
                                   ▼
┌────────────────────────────────────────────────────────────────────────┐
│ [ 2. Exploratory Phase & Automated Data Auditing ]                     │
│   ├── Natural Language Query: "Tell me about this data & cleaning needs"│
│   ├── SQL Inspection Tooling: Row counts, null checks, cardinality      │
│   └── Diagnostic Report: Discovers casing issues, string dates, encoding│
└──────────────────────────────────┬─────────────────────────────────────┘
                                   │
                                   ▼
┌────────────────────────────────────────────────────────────────────────┐
│ [ 3. Pipelining Phase & Code Generation (Transform Data Mode) ]        │
│   ├── Mode Switch to Python Transforms (27 Tool Bundle)                │
│   ├── Auto-Provisions Global Branching & Repository Directory          │
│   └── Parallel Execution: Authors `clean.py`, runs preview checks      │
└──────────────────────────────────┬─────────────────────────────────────┘
                                   │
                                   ▼
┌────────────────────────────────────────────────────────────────────────┐
│ [ 4. CI/CD Build & Human-in-the-Loop Governance ]                      │
│   ├── Trigger CI/CD Checks & Execute Dataset Build Pipeline            │
│   └── Agent Creates Global Proposal ──> Human Audits & Merges to Main │
└──────────────────────────────────┬─────────────────────────────────────┘


Step-by-Step Guidance: Data Cleaning and Pipeline Generation with AFDE

  1. Initialize AFDE and Set Context: Launch agent and ground execution within workspace scope.

  2. Open Palantir Foundry and press Ctrl + J, then search for AFDE (identified by the diamond icon) [01:01].

  3. Select an AI LLM engine from the dropdown menu (e.g., GPT-5.4 or Claude Opus) [09:34].

  4. Configure Reasoning / Thinking Mode (e.g., low, medium, high thinking, or auto) [04:09].

  5. Attach workspace Context: Click Folders & Projects and select your target project folder containing raw datasets (e.g., climbing gym operations data) [02:40, 09:43].

  6. Profile Raw Data via Exploration Mode: Execute exploratory SQL queries to identify data hygiene issues.

  7. Enter a natural language request in the chat window [09:55]:

"Tell me about this data. What relationships exist, and what cleaning needs to be done?"

  1. Grant AFDE permission to switch into Exploration Mode [10:07].
  2. Monitor AFDE as it autonomously runs SQL Dataset Query Tools across all tables, analyzing row counts, null values, distinct categorical values, and joint cardinality [10:20].
  3. Review the generated audit report detailing data defects [11:16]:
  • Unnormalized Timestamps: Dates stored as plain text strings (date_of_birth, occurred_at, send_date) [11:51].
  • Categorical Casing Inconsistencies: Mixed string cases (e.g., Red Point, red point, RED POINT) [12:09].
  • Mixed Encodings: Inconsistent boolean flags (e.g., true/1/yes) [12:20].
  1. Generate Code & Run Previews (Transform Data Mode): Provision repositories and write PySpark transformations.
  2. Instruct AFDE to resolve the identified anomalies [12:45]:

"Implement the necessary cleaning fixes."

  1. Approve the mode transition to Transform Data Mode (which loads a bundle of 27 data-engineering tools) using Python Transforms [13:05].

  2. Allow AFDE to auto-create a Global Branch and scaffold a Python code repository inside your project's code directory [13:28].

  3. Approve tool actions as AFDE writes mapping dictionaries and PySpark transformations in clean.py, executing parallel dataset Previews to verify output schemas [14:03].

  4. Build Datasets and Merge Global Proposal: Run CI/CD checks, execute dataset builds, and merge proposal.

  5. Allow AFDE to commit changes and trigger automated CI/CD Checks on the feature branch [14:35].

  6. Grant approval for AFDE to trigger the dataset Build jobs [15:28].

  7. Once builds succeed, review the Global Proposal created by AFDE [15:55].

  8. Click Open Proposal, inspect the automated PR description and code diffs, then click Merge Proposal to merge cleaned datasets into main [16:03].


Detailed Use Case Analysis: Operational Data Cleaning (Climbing Gym Ontology)

The video uses raw operational tables from a climbing gym (Gyms, Memberships, Members, Staff, Sends, Routes) to demonstrate automated data engineering [00:53, 11:16].

image
image

1. Data Defects Identified and Corrected

Raw Dataset ColumnDiscovered IssueAFDE PySpark Cleaning Strategy
Member.date_of_birthStored as text string [11:51]Parsed into standard TimestampType using to_timestamp() [12:03].
Send.send_typeMixed casing (Red Point, red point, REDPOINT) [12:09]Standardized via dictionary lookup maps in clean.py [15:01].
Membership.is_activeMixed boolean formats (true, 1, Y) [12:20]Cast into binary boolean flags [12:25].

2. Comprehensive Tool & Mode Reference

Understanding AFDE requires recognizing that Modes are predefined bundles of platform tools [04:43]:

AFDE ModeTool CountCore Capabilities & Operations
Generate PlanSub-AgentActs as an orchestrator reasoning through complex multi-step tasks before execution [04:55].
Transform Data+27 ToolsBuilds data pipelines via Python Transforms or Pipeline Builder; manages branches [05:57].
Modify OntologyDynamicCreates/edits Object Types, Action Types, and Link Types [06:41].
ExplorationDynamicSearches metadata, inspects schema definitions, and executes diagnostic SQL queries [07:04].
Function AuthoringDynamicWrites TypeScript v1/v2, Python, or AIP Logic functions [06:58].
OSDK / ReactDynamicGenerates custom web application code and front-end user interfaces [07:35].
Machine Learning+37 ToolsTrains models in Model Studio or code workspaces [08:04].

Process Audit Report

================================================================================
                        PROCESS AUDIT & VERIFICATION REPORT
================================================================================
Audit Target: YouTube Guidance & Use Case Analysis (Ta19YD794RY)
Auditor Skill: Process Audit
Verification Status: PASSED (100% Accuracy & Detail Alignment)

--------------------------------------------------------------------------------
[AUDIT CHECKPOINT 1: ACCURACY OF TRANSCRIPT DETAILS]
--------------------------------------------------------------------------------
✔ AGENT IDENTITY & NAVIGATION:
  - Identified AFDE as Palantir's conversational AI agent [00:00:00].
  - Launch command verified: Ctrl + J -> search AFDE (diamond icon) [00:01:01].
  - Total tools acknowledged: 183 tools and counting [00:01:52].

✔ CONTEXT & PLATFORM MODES:
  - Context options correctly listed: Folders, Projects, Datasets, Repositories, Ontologies, Functions, Permissions, Media [00:02:54].
  - Model selection & reasoning modes (auto, low/medium/high thinking) verified [00:04:09, 00:09:34].
  - Modes accurately identified as tool bundles (e.g., Transform Data = 27 tools, Machine Learning = 37 tools) [00:04:43, 00:06:35, 00:08:09].
  - Generate Plan sub-agent correctly described as an autonomous reasoning orchestrator [00:04:55].

✔ WORKFLOW & DATASET CLEANING:
  - Climbing gym sample datasets accurately listed (`Gyms`, `Memberships`, `Members`, `Staff`) [00:00:53, 00:11:20].
  - Exploration SQL queries accurately captured (null checks, cardinality, row counts) [00:10:20].
  - Discovered data defects verified: string dates, categorical casing errors, mixed boolean encoding [00:11:51, 00:12:09, 00:12:20].
  - Python repository auto-creation, global branching, `clean.py` generation, CI/CD checks, and proposal merge step verified [00:13:28, 00:14:35, 00:16:03].

--------------------------------------------------------------------------------
[AUDIT CHECKPOINT 2: FORMAT & VISUAL COMPLIANCE]
--------------------------------------------------------------------------------
✔ STRUCTURAL LAYOUT:
  - Process map built with clear ASCII workflow diagrams.
  - Step-by-step guidance formatted using valid <Sequence> and <Step> tags with titles/subtitles.
  - Comparative breakdown tables included for dataset defects and platform modes.
  - Images rendered with <Image /> tags adhering to Law 3a (self-closing without child comments).
================================================================================