Skip to content

Helix Foundry vs Graphiti: Context Graph Framework or Ontology?

Helix Foundry vs Graphiti: Context Graph Framework or Ontology?

Graphiti is a Python framework for building temporal context graphs, and Helix Foundry is a product that turns your company's databases, SaaS tools and documents into one ontology. If you are looking for a Graphiti alternative, the question is not which one is better but which job you have: streaming conversational memory for an agent, or a connected graph of company data that people and agents can query.

Both are Apache-2.0, and both trace facts back to where they came from. That is where the overlap ends. Graphiti hands you a library and expects you to build the service around it. Foundry hands you the service. This post lays out what each does, what you end up building yourself with Graphiti, and when each one is the right call.

The short answer: framework vs product

Graphiti is a framework and Foundry is a product. With Foundry you point connectors at Postgres, MySQL, S3, Stripe, PostHog and other sources, and an ontology agent drafts the graph for you to review.

A quick answer to "context graph explained": a context graph is a graph of entities, relationships and facts that an agent can query for grounded context, instead of stuffing raw text into a prompt. Graphiti describes its own version as a temporal graph, with facts like "Kendra loves Adidas shoes (as of March 2026)". Foundry's version is an ontology of your business: customers, orders, invoices and the links between them, with each value pointing at the row or document quote it came from. For a longer treatment, see What Is a Context Graph? How AI Agents Use One.

Pick Graphiti if you are building the memory layer itself and want full control of the code. Pick Foundry if your problem is that company data is scattered across systems and you want one model of it without writing the pipeline.

What Graphiti is and where it shines

Graphiti is an open-source Python framework for building and querying temporal context graphs for AI agents. It was built by the team behind Zep, and Zep's paper on a temporal knowledge graph architecture for agent memory describes the approach. Zep the managed product is separate; this post is about Graphiti the framework.

Its real win is time. Graphiti tracks facts with validity windows, and when a new episode contradicts an old fact, the old fact is invalidated while its history is preserved. That bi-temporal handling suits conversational agent memory, where a user's preferences, addresses and plans change message by message. Foundry does not have built-in validity windows, and if your core need is a stream of changing facts with automatic invalidation, Graphiti is the better fit.

Three other things stand out:

  • Episodes as provenance. Every entity and relationship traces back to the episodes that produced it.

  • Custom types. You can prescribe your own entity and edge types with Pydantic models, or let the ontology be learned.

  • Incremental construction and hybrid search. The graph updates as data arrives, and retrieval combines semantic, keyword and graph search.

Graphiti runs on Neo4j, FalkorDB, Amazon Neptune or Relate, an embedded graph database that runs inside your Python process. It defaults to OpenAI for the LLM and embeddings, and works best with models that support structured output.

What Helix Foundry is

Helix Foundry is an open-source, Apache-2.0 AI knowledge graph builder that turns databases, SaaS tools and documents into one ontology, with every fact traced to where it came from. The pieces:

  • Connectors. Sources include PostgreSQL, MySQL, Amazon S3, Stripe, PostHog and Granola, plus API sources that take records your apps and agents send. Foundry never writes to your sources.

  • Ontology agent. A generation drafts a new version of the ontology: types, links, mappings from your tables, routes for your documents and rules. You review and edit the version, then make it current.

  • Loads with provenance. The current version is written into HelixDB, the graph-vector database Foundry runs on, and each value keeps the row or quote it came from.

  • Review. Facts a load could not decide, such as values two documents disagree on, wait in a review queue where an owner or admin settles them.

  • Agents connect through the Helix MCP.

You can run it on your own computer with Docker Compose, or on Helix Cloud. The local install is single-user with no sign-in. A made-up company, Acme Corp, ships as a sample so you can see every step first.

Side by side: data sources, schema, provenance, storage, models, running it yourself

Graphiti Helix Foundry
What it is Python framework Product with app, connectors and agent
Licence Apache-2.0 Apache-2.0
Data sources Episodes you feed in (text, messages, JSON) Connectors for databases, SaaS tools, documents and table files, plus API sources
Schema Prescribed or learned; custom Pydantic entity and edge types Ontology agent drafts types, links and mappings; you review versions
Provenance Every entity and edge traces to episodes Every value traces to a row or document quote
Time Bi-temporal facts, validity windows, automatic invalidation No built-in validity windows
Storage Your choice: Neo4j, FalkorDB, Neptune or Relate HelixDB
Models Graphiti supports OpenAI, Anthropic, Google Gemini, Groq, and Azure OpenAI as LLM providers. Work with self-hosted models, your own inference or bring-your-own-model
Review of uncertain facts You build it Built-in review queue
Agent access You build the service Helix MCP and a local HTTP ask endpoint
Running it You build ingestion, tenancy, access control and ops docker compose up -d --wait, or Helix Cloud

The split shows up most in the schema and provenance rows. Graphiti's provenance is excellent for conversation: you can see which message produced which fact. Foundry's provenance is built for company data: you can see which table row or which sentence in which document produced which value, and conflicting claims go to a person instead of silently overwriting each other.

What you build yourself with Graphiti for company data

Graphiti's own README is direct about this: you supply the graph database, LLM and embedder, and you build ingestion, tenancy, access control and operations around it. For conversational memory that can be a reasonable amount of work. For company data it is a project.

Here is the list a team typically signs up for when it picks a framework to model Postgres, billing and support data:

  1. Source sync. Write and schedule the code that reads each system, tracks what changed, and turns rows into episodes.

  2. Entity design. Define the Pydantic types and edge types for customers, subscriptions, tickets, and decide how the same customer is matched across systems.

  3. A review path. Decide what happens when two sources disagree. Graphiti invalidates older facts over time, which is right for a changing preference but is not a human review queue for conflicting claims.

  4. A graph database to run. Stand up and operate Neo4j, FalkorDB or Neptune, or embed Relate.

  5. Tenancy and access control. Graphiti leaves both to you. If one team should not see another's facts, you design that.

  6. A service for agents. Wrap the graph in an API or MCP server your agents can call.

  7. Schema changes. When a source adds a column or a new tool arrives, you update types and ingestion code.

None of this is hard in isolation, and some teams want exactly this control. But it is the product work that Foundry packages: connectors, an agent that drafts and versions the schema, a review queue, and agent access through MCP.

When to pick which

Pick Graphiti when:

  • Your data is a stream of conversations or events, and facts change over time in ways the agent must track.

  • You want bi-temporal facts and automatic invalidation of stale ones.

  • You already run Neo4j, FalkorDB or Neptune, or want an embedded graph, and you want to own the whole stack in Python.

  • You have engineers to build and operate the service around it.

Pick Foundry when:

  • Your data lives in databases, SaaS tools and documents, and the job is one connected model of the business.

  • You want connectors, schema drafting, review and agent access without building them.

  • Every answer needs to point at a source row or quote, and disagreements between sources need a human decision.

  • You want agents to query the result through the Helix MCP.

They are not mutually exclusive in a company. A support agent that remembers a user across chat sessions is Graphiti's territory. An agent that answers "which customers on the annual plan opened a ticket after their last invoice" is asking for an ontology of company data. If you are weighing Foundry against other ways of giving agents business context, How to Give AI Agents Context About Your Business and RAG vs Ontology cover the trade-offs.

Try Foundry on the sample company

The fastest way to judge Foundry as a Graphiti alternative is to run the sample. Acme Corp is a made-up company selling scheduling software to field-service businesses, and the sample walks through connecting its database and documents, building an ontology, loading it and asking questions.

On your own computer:

git clone https://github.com/helixdb/helix-foundry.git
cd helix-foundry
docker compose up -d --wait

Then open http://localhost:3000. The local install is single-user and meant for one person on their own machine, so do not expose it. Or use Helix Cloud at foundry.helix-db.com and pick the sample company from Get started. Delete the sample ontology when you are done and connect your own data.

Choose the job first, then the tool

Graphiti wins on temporal memory for streaming conversations, and if that is your job, build on it. If your job is turning Postgres, Stripe, Granola and a pile of documents into one graph that agents can query with a source behind every claim, you would spend months rebuilding what Foundry already does. Clone the repo, run the Acme Corp sample, and star helix-foundry on GitHub if it fits.

All agent content