docs: align the documentation with the SDK on main (1.7.0)
Merged
NA
6d ago+179+179+012345678901234567890123456789-60-60-01234567890123456789
Brings every docs page in line with the code on main after 1.7.0.
- Model loading:
prepare()/ensure_ready()hooks andModelLoadError,ModelImportError,ModelMissingErrorwhen a GLiNER or spaCy model cannot load. - API reference: missing exceptions (
ToolErrortoo),from_url()keyword overrides,max_tokens=None, rejected-parameter re-sends for reasoning models. - Storage and retrieval:
Chunk.namefromfinalize(),description_piece_count,LocalRetrievaloutput format. - Agentic retrieval:
retrieveparameters,graphrag-mcpenv var defaults,GRAPHRAG_MCP_TOKENand CLI flags. - Configuration and strategies: missing options (
max_overlap_fraction,base_chunker,relationship_tables,TableMapping.derived,chunk_document(),pdf-fast,mcpextra). - Corrections: spans live on relationships and
MENTIONED_INedges, not entities; examples missingdimensions=256; relation-attribute case ofOntologyModificationNotAllowedError. - Example models move from
openai/gpt-4.1/gpt-4o-minitoopenai/gpt-5.5, since both leave OpenAI's API on 14 January 2027.
Summary by cubic
Brings every docs page in line with the SDK on main (1.7.0), covering the new model loading hooks and errors, updated API reference entries, corrected storage, retrieval, and configuration details, and hardening the MCP server's secret masking.
Documentation
- Documents
prepare()/ensure_ready(): a GLiNER or spaCy model that cannot load fails the ingest withModelLoadErrorbefore the document is written, while a per-chunkExtractionErrorstays chunk-local; a failed load is remembered for 60 seconds. - Adds
ToolError,from_url()keyword overrides (an explicitNoneclears a parsed value),max_tokens=None, and re-sends for rejectedtemperature/max_tokenson reasoning models. - Adds missing options and extras:
max_overlap_fraction,base_chunker,chunk_document(),relationship_tables,TableMapping.derived,pdf-fast, andmcp. - Corrects spans to live on relationships and
MENTIONED_INedges, drops mentions of pruned entities, merges attributes per attribute, fixes examples to passdimensions=256, and moves example models toopenai/gpt-5.5. - Describes
Chunk.name,description_piece_count,LocalRetrievaloutput, theretrieveparameters, andgraphrag-mcpenv vars and CLI flags. - Clarifies
ModelLoadError.hintas model-specific remediation,set_ontologydescription replacement, and that a failed data-graph read in ontology registration raises the read error itself.
MCP server
redact()now masks a quoted secret value after an unquoted name (api_key='...',password="..."), the form Python and LiteLLM use when printing arguments, masking through the closing quote (a value cut off before it closes is masked to the line end).- Masks a token alone in a URL's userinfo; a token-only userinfo ends at
/,?, or#, so a secret in a query or fragment is masked as key=value. - A bare key=value value runs past
}, only a dict value stops there.
Summary by CodeRabbit
- Documentation
- Clarified file-based document ID defaults, retrieval settings, MCP options, and URL-based configuration overrides.
- Expanded guidance on model readiness and errors, ingestion and extraction behavior, ontology changes, relationship data, and retrieval results.
- Updated API and strategy references, including PDF loading, chunking, structured-ingestion mappings, and extraction preparation.
- Refreshed setup and configuration examples with updated model recommendations, and added details on stored data and document provenance.
- Bug Fixes
- Improved credential masking for quoted values, including values with spaces or escaped quotes, and URLs with a username but no password.