docs: align the documentation with the SDK on main (1.7.0)

Merged
NA
6d ago
+179-60

Brings every docs page in line with the code on main after 1.7.0.

  1. Model loading: prepare() / ensure_ready() hooks and ModelLoadError, ModelImportError, ModelMissingError when a GLiNER or spaCy model cannot load.
  2. API reference: missing exceptions (ToolError too), from_url() keyword overrides, max_tokens=None, rejected-parameter re-sends for reasoning models.
  3. Storage and retrieval: Chunk.name from finalize(), description_piece_count, LocalRetrieval output format.
  4. Agentic retrieval: retrieve parameters, graphrag-mcp env var defaults, GRAPHRAG_MCP_TOKEN and CLI flags.
  5. Configuration and strategies: missing options (max_overlap_fraction, base_chunker, relationship_tables, TableMapping.derived, chunk_document(), pdf-fast, mcp extra).
  6. Corrections: spans live on relationships and MENTIONED_IN edges, not entities; examples missing dimensions=256; relation-attribute case of OntologyModificationNotAllowedError.
  7. Example models move from openai/gpt-4.1 / gpt-4o-mini to openai/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 with ModelLoadError before the document is written, while a per-chunk ExtractionError stays chunk-local; a failed load is remembered for 60 seconds.
  • Adds ToolError, from_url() keyword overrides (an explicit None clears a parsed value), max_tokens=None, and re-sends for rejected temperature/max_tokens on reasoning models.
  • Adds missing options and extras: max_overlap_fraction, base_chunker, chunk_document(), relationship_tables, TableMapping.derived, pdf-fast, and mcp.
  • Corrects spans to live on relationships and MENTIONED_IN edges, drops mentions of pruned entities, merges attributes per attribute, fixes examples to pass dimensions=256, and moves example models to openai/gpt-5.5.
  • Describes Chunk.name, description_piece_count, LocalRetrieval output, the retrieve parameters, and graphrag-mcp env vars and CLI flags.
  • Clarifies ModelLoadError.hint as model-specific remediation, set_ontology description 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.