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 surface | 0.0.9 | Now |
|---|---|---|
mcp and llm extras | Optional extras | Removed. mcp, baml-py and relate-db are base dependencies. |
LLM_MODEL_ID, AGENT_LLM_MODEL_ID, EVAL_JUDGE_MODEL_ID | Model settings | Renamed to LLM_MODEL_NAME, AGENT_LLM_MODEL_NAME, EVAL_JUDGE_MODEL_NAME |
EMBEDDING_MODEL | Embedding model setting | Renamed to EMBEDDING_MODEL_NAME |
| Stored graph properties | document_id, seq and others | document_node_id, sequence and others, with no migration |
MCP_GRAPH_STORE | neo4j | relate |
EXTRACTION_MODE | hybrid | llm |
| MCP server extraction | Local GLiNER model | Client work from EXTRACTION_MODE |
RETRIEVAL_RERANK_ENABLED | true | false |
RETRIEVAL_CROSS_ENCODER_MODEL | cross-encoder/ms-marco-MiniLM-L-6-v2, run by sentence-transformers | awinml/ettin-reranker-17m-v1-ONNX, run by FastEmbed |
| MCP job states | pending, running, cancelled, done, failed, interrupted | Adds waiting |
get_job wait_seconds | Values outside 0 to 20 are rejected | Values are clamped to 0 to 20 |
| First add on a graph with no schema | Refused | Publishes 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.
- Remove
mcpandllmfrom every install command and dependency list, for example changeagentic-graphrag[mcp,llm,neo4j]toagentic-graphrag[neo4j]. - Remove
--extra mcpand--extra llmfrom MCP client entries that start the server withuv 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.9 | Now |
|---|---|
LLM_MODEL_ID | LLM_MODEL_NAME |
AGENT_LLM_MODEL_ID | AGENT_LLM_MODEL_NAME |
EVAL_JUDGE_MODEL_ID | EVAL_JUDGE_MODEL_NAME |
EMBEDDING_MODEL | EMBEDDING_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_URLandLLM_MODEL_NAME, or passllm_extractor=toGraph.open. The LLM clients settings list the variables. - To keep local extraction with no model calls, set
EXTRACTION_MODE=glinerand install theextractextra. - To keep GLiNER and add a model, set
EXTRACTION_MODE=hybridand 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_matchis nowGraph.lift_keep_apart.- The
explanationargument of the decision methods is nowreason. Grapharguments:source=is nowsources=,after=is nowafter_key=,expect_absent=is nowrequire_no_stored_schema=, andexpect_fingerprint=is nowexpected_fingerprint=.TaskStatusandDecisionStatusare nowTaskStateandDecisionState, and theirstatusfields are nowstate.Chunk.document_idis nowChunk.document_node_id.
Update MCP clients
These changes affect code or agents that call the MCP tools.
Use the renamed tools and arguments
allow_matchis nowlift_keep_apart.get_candidate_patchis nowbuild_candidate_patch.- The
get_schemaargumentformatis nowschema_format, and itsagragvalue is nowcanonical. - The
explanationargument of the decision tools is nowreason. list_candidatestakesquery,limitandoffset.list_decisions_for_reviewtakesoffsetand returnsnext_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
- Start the MCP server with the store and extraction settings you chose.
- Add one of your documents with
add_documentoradd_file, and runget_jobuntil the job reportsdone. - Call
list_documents. The listing holds the document, in the store you chose. If you setMCP_GRAPH_STORE=neo4jbut the document is in a new.agrag/folder, the server did not read the setting. See Keep a Neo4j or FalkorDB graph. - Call
search_evidencewith a term from the document. The results cite passages from it.