trustgraph/tests/unit/test_retrieval
cybermaggedon e1bc4c04a4
Terminology Rename, and named-graphs for explainability (#682)
Terminology Rename, and named-graphs for explainability data

Changed terminology:
  - session -> question
  - retrieval -> exploration
  - selection -> focus
  - answer -> synthesis

- uris.py: Renamed query_session_uri → question_uri,
  retrieval_uri → exploration_uri, selection_uri → focus_uri,
  answer_uri → synthesis_uri
- triples.py: Renamed corresponding triple generation functions with
  updated labels ("GraphRAG question", "Exploration", "Focus",
  "Synthesis")
- namespaces.py: Added named graph constants GRAPH_DEFAULT,
  GRAPH_SOURCE, GRAPH_RETRIEVAL
- init.py: Updated exports
- graph_rag.py: Updated to use new terminology
- invoke_graph_rag.py: Updated CLI to display new stage names
  (Question, Exploration, Focus, Synthesis)

Query-Time Explainability → Named Graph
- triples.py: Added set_graph() helper function to set named graph
  on triples
- graph_rag.py: All explainability triples now use GRAPH_RETRIEVAL
  named graph
- rag.py: Explainability triples stored in user's collection (not
  separate collection) with named graph

Extraction Provenance → Named Graph
- relationships/extract.py: Provenance triples use GRAPH_SOURCE
  named graph
- definitions/extract.py: Provenance triples use GRAPH_SOURCE
  named graph
- chunker.py: Provenance triples use GRAPH_SOURCE named graph
- pdf_decoder.py: Provenance triples use GRAPH_SOURCE named graph

CLI Updates
- show_graph.py: Added -g/--graph option to filter by named graph and
  --show-graph to display graph column

Also:
- Fix knowledge core schemas
2026-03-10 14:35:21 +00:00
..
test_structured_diag Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_document_rag.py Embeddings API scores (#671) 2026-03-09 10:53:44 +00:00
test_document_rag_service.py Fix non streaming RAG problems (#607) 2026-01-12 18:45:52 +00:00
test_graph_rag.py Terminology Rename, and named-graphs for explainability (#682) 2026-03-10 14:35:21 +00:00
test_graph_rag_service.py GraphRAG Query-Time Explainability (#677) 2026-03-10 10:00:01 +00:00
test_nlp_query.py Fix/sys integration issues (#494) 2025-09-05 08:38:15 +01:00
test_structured_query.py Structured data 2 (#645) 2026-02-23 15:56:29 +00:00