Corrective RAG subgraph #6
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement the dedicated, modular RAG subgraph (
app/rag/subgraph.py), separate from and callable by the main graph, not counted toward its node minimum:retrieve -> grade_relevance -> (rewrite_query -> retrieve)* -> generate_answer, with a bounded rewrite-retry loop and a low-confidence fallback.app/llm.py-ChatOllamawrapper + defensive structured-JSON parsing helpertests/test_rag_subgraph.py- real embeddings + real FAISS index, stub LLM for the grading/rewrite/generate steps