Skip to main content
Version: 0.0.7

agrag.evidence

Evidence search, exact fetch, navigation, entity search and citation checks.

The functions take a graph store and enforce the caller's document scope inside their queries. Evidence ids name passage text of one version of a document.

Modules:

  • citation – Check that cited evidence ids trace to evidence the caller fetched.
  • contract – Shared tool contract for the evidence functions, MCP tools and agent tools.
  • entities – Find entities by name or meaning, and explore typed relations around one entity.
  • fetch – Fetch the exact text behind evidence ids, limited to the caller's scope.
  • ids – Encode and decode evidence ids.
  • navigate – Navigate from one evidence passage to its neighbors, within scope and bounds.
  • render – Render validated evidence citations without changing their fetched provenance.
  • rerank – Cross-encoder reranker for fused evidence hits.
  • search – Find visible passages by full-text search, vector search, or both.
  • source_status – Read the committed lifecycle and index state of a document source.
  • themes – Find themes: entity communities with the passages that mention their members.

Classes:

Functions:

  • check_citations – Return one verdict for each cited evidence id, in the order given.
  • entity_search – Find up to limit entities that match a query by name or by meaning.
  • explore_relationships – Explore the entity relations around one entity, within bounds.
  • fetch_evidence – Return the text of each evidence id, in the order given.
  • navigate_document_tree – Return the passages that one relation reaches from an evidence id.
  • render_citations – Replace validated inline IDs with numbered citations and a source list.
  • search_evidence – Find up to limit visible passages that match a query.
  • search_themes – Find up to limit themes whose member passages match a query.

Attributes: