RAG and Evidence
How the hybrid retrieval system finds and governs evidence — verified against src/retrieval/hybrid.py and src/chunking.
Retrieval pipeline
CODE-DERIVED VISUALISATION
- 1Document ingestion (src/ingestion)
- 2Chunk generation (src/chunking)
- 3Embeddings (src/embeddings)
- 4Qdrant collection storage (vector_store/, requirements.txt: qdrant-client)
- 5BM25 always runs; dense vector search when available (src/retrieval/hybrid.py)
- 6Source-approval filter (only OV-0001..OV-0004 chunks are retrievable)
- 7Candidate-aware evidence ranking
- 8Semantic validation + contradiction resolution (src/extraction)
- 9Governed evidence summary presented to the research pipeline
Synthetic worked example
CODE-DERIVED VISUALISATION
CODE-DERIVED VISUALISATION
- 1Runtime query: "What confirms a 25% counter-trend scalp setup?" (synthetic, not a real user submission)
- 2Query restricted to the approved source filter (OV-0001..OV-0004 only)
- 3Hybrid BM25 + vector retrieval returns candidate chunks
- 4Contradiction check against src/validation indexes
- 5Evidence summary: 2-3 short excerpts with source IDs, not a full transcript
- 6Governed result handed to the strategy/decision layer
This example uses a synthetic question for illustration only — it is not a record of a real query ever made against this system.