Skip to main content
Version: 0.0.10 (stable)

Upgrade from 0.0.9

An upgrade from agentic-graphrag 0.0.9 changes the install extras, several setting and API names, the default MCP graph store, the default extraction mode and the default reranker. The MCP server also changes how it handles a graph with no schema, how it reports jobs, and how it releases leases. Stored property names also changed, and the upgrade does not migrate stored data, so you add your documents again.

Setting or surface0.0.9Now
mcp and llm extrasOptional extrasRemoved. mcp, baml-py and relate-db are base dependencies.
LLM_MODEL_ID, AGENT_LLM_MODEL_ID, EVAL_JUDGE_MODEL_IDModel settingsRenamed to LLM_MODEL_NAME, AGENT_LLM_MODEL_NAME, EVAL_JUDGE_MODEL_NAME
EMBEDDING_MODELEmbedding model settingRenamed to EMBEDDING_MODEL_NAME
Stored graph propertiesdocument_id, seq and othersdocument_node_id, sequence and others, with no migration
MCP_GRAPH_STOREneo4jrelate
EXTRACTION_MODEhybridllm
MCP server extractionLocal GLiNER modelClient work from EXTRACTION_MODE
RETRIEVAL_RERANK_ENABLEDtruefalse
RETRIEVAL_CROSS_ENCODER_MODELcross-encoder/ms-marco-MiniLM-L-6-v2, run by sentence-transformersawinml/ettin-reranker-17m-v1-ONNX, run by FastEmbed
MCP job statespending, running, cancelled, done, failed, interruptedAdds waiting
get_job wait_secondsValues outside 0 to 20 are rejectedValues are clamped to 0 to 20
First add on a graph with no schemaRefusedPublishes the default schema

Remove the mcp and llm extras​

The mcp and llm extras no longer exist. Their packages are part of the base install.

  1. Remove mcp and llm from every install command and dependency list, for example change agentic-graphrag[mcp,llm,neo4j] to agentic-graphrag[neo4j].
  2. Remove --extra mcp and --extra llm from MCP client entries that start the server with uv run.

To write a fresh client entry, run agrag-mcp setup claude or agrag-mcp setup codex. The MCP server guide describes both clients.

Rename model settings​

The old names are no longer read, so a setting under an old name falls back to the default model.

0.0.9Now
LLM_MODEL_IDLLM_MODEL_NAME
AGENT_LLM_MODEL_IDAGENT_LLM_MODEL_NAME
EVAL_JUDGE_MODEL_IDEVAL_JUDGE_MODEL_NAME
EMBEDDING_MODELEMBEDDING_MODEL_NAME

Change them in .env, in your shell, and in the env block of each MCP client entry.

Keep a Neo4j or FalkorDB graph​

The MCP server's default graph store is now Relate, an embedded database that keeps the graph in the project's .agrag/ folder. A server that used Neo4j without setting MCP_GRAPH_STORE opens a new, empty Relate graph after the upgrade. Your Neo4j data stays where it is, but the server does not read it.

To keep using Neo4j, set MCP_GRAPH_STORE=neo4j in the server environment. Python code that passes a store to Graph.open keeps using that store. Graph.open now opens Relate only when graph_store is omitted.

Install the neo4j extra and keep the NEO4J_URI, NEO4J_USERNAME and NEO4J_PASSWORD settings. For FalkorDB, use falkordb in the same places, install the falkordb extra and keep the FALKORDB_* settings.

A graph that 0.0.9 wrote uses the old stored property names, for example document_id on chunks and seq on events. The current version does not read them correctly. Clear the database, or point the settings at a new one, and add your documents again. Configure storage backends covers each server, and the storage layout reference lists the files Relate writes.

Choose an extraction mode​

The default EXTRACTION_MODE is now llm. In 0.0.9 it was hybrid, and hybrid ran GLiNER alone when no LLM was configured. Both llm and hybrid now need an LLM. Graph.open without one fails with:

Extraction mode needs an LLM, and none is configured. Set EXTRACTION_LLM_CLIENTS, LLM_BASE_URL and LLM_MODEL_NAME, or pass llm_extractor=.

Code that passes a GLiNER extractor with extractor= and relied on the hybrid default now fails with:

extractor= cannot be used with extraction mode "llm", which does not run GLiNER. Pass llm_extractor= instead, or use mode="hybrid" or mode="gliner".

Pick one of these:

  • To extract with a model, set EXTRACTION_LLM_CLIENTS, LLM_BASE_URL and LLM_MODEL_NAME, or pass llm_extractor= to Graph.open. The LLM clients settings list the variables.
  • To keep local extraction with no model calls, set EXTRACTION_MODE=gliner and install the extract extra.
  • To keep GLiNER and add a model, set EXTRACTION_MODE=hybrid and configure the LLM variables.

The MCP server in 0.0.9 always ran the local GLiNER model. It now reads EXTRACTION_MODE. On a Relate graph, [extraction] mode in .agrag/config.toml sets it too. With the default llm mode, the server makes no model call. It queues the extraction work for the connected agent, which reads it with list_pending_work and returns results with submit_work_results. Extract with your agent shows the flow. To keep the 0.0.9 behavior, set EXTRACTION_MODE=gliner and install the extract extra.

Turn reranking back on​

Reranking is now off by default, and it runs on FastEmbed instead of sentence-transformers. The sentence-transformers model name from 0.0.9 does not load.

To rerank again, set RETRIEVAL_RERANK_ENABLED=true. The default model is awinml/ettin-reranker-17m-v1-ONNX. To pick another model, set RETRIEVAL_CROSS_ENCODER_MODEL to a FastEmbed cross-encoder name. Xenova/ms-marco-MiniLM-L-6-v2 is the FastEmbed build of the 0.0.9 default.

Update Python code​

These agrag names changed with no alias. The API reference lists the current names.

  • Graph.allow_match is now Graph.lift_keep_apart.
  • The explanation argument of the decision methods is now reason.
  • Graph arguments: source= is now sources=, after= is now after_key=, expect_absent= is now require_no_stored_schema=, and expect_fingerprint= is now expected_fingerprint=.
  • TaskStatus and DecisionStatus are now TaskState and DecisionState, and their status fields are now state.
  • Chunk.document_id is now Chunk.document_node_id.

Update MCP clients​

These changes affect code or agents that call the MCP tools.

Use the renamed tools and arguments​

  • allow_match is now lift_keep_apart.
  • get_candidate_patch is now build_candidate_patch.
  • The get_schema argument format is now schema_format, and its agrag value is now canonical.
  • The explanation argument of the decision tools is now reason.
  • list_candidates takes query, limit and offset. list_decisions_for_review takes offset and returns next_offset.

The tools reference lists every tool and argument.

Expect the default schema on the first add​

add_document and add_file no longer refuse a graph with no stored schema. The first add publishes the default schema, then writes the document. The job result names the schema it used in schema and version.

To use another schema, call apply_schema_additions and run get_job until the job reports done. Then make the first add. An add that runs before the schema job publishes default, and a later schema call that removes or tightens default types fails. update_document, the destructive tools and the client work tools still refuse a graph with no schema.

Handle the waiting job state​

While the owner prepares the embedding model, apply_schema_additions, add_file and add_document return a job in the new waiting state. The job moves to pending when the model is ready, to cancelled after cancel_job, or to failed if preparation fails. A client that matches job states needs a case for waiting. Run the MCP server describes the owner states.

Start 0.0.9 jobs again​

Jobs saved by 0.0.9 do not record their document keys. get_job returns an error for a job ID that 0.0.9 returned. Check the document with list_documents, and run the write again if it did not finish.

Send wait_seconds from 0 to 20​

get_job now clamps wait_seconds to the range 0 to 20 instead of rejecting values outside it. A call with 60 waits at most 20 seconds, then returns the job in its current state. A client that relied on the rejection must check the range itself.

Wait out a lease from a 0.0.9 writer​

A document lease now records the process ID and host of its holder. When that process has exited on the same host, the next writer for the document releases the lease at once. A lease written by 0.0.9 has no holder record, so it is released only after CUTOVER_JOB_LEASE_TTL_SECONDS, 60 seconds by default. Troubleshoot the local server covers lease errors.

Check the upgrade​

  1. Start the MCP server with the store and extraction settings you chose.
  2. Add one of your documents with add_document or add_file, and run get_job until the job reports done.
  3. Call list_documents. The listing holds the document, in the store you chose. If you set MCP_GRAPH_STORE=neo4j but the document is in a new .agrag/ folder, the server did not read the setting. See Keep a Neo4j or FalkorDB graph.
  4. Call search_evidence with a term from the document. The results cite passages from it.