Corrective RAG subgraph #6

Closed
opened 2026-11-04 06:18:55 +01:00 by plank · 0 comments
Owner

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 - ChatOllama wrapper + defensive structured-JSON parsing helper
  • tests/test_rag_subgraph.py - real embeddings + real FAISS index, stub LLM for the grading/rewrite/generate steps
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` - `ChatOllama` wrapper + defensive structured-JSON parsing helper - `tests/test_rag_subgraph.py` - real embeddings + real FAISS index, stub LLM for the grading/rewrite/generate steps
plank closed this issue 2026-11-06 13:55:27 +01:00
plank referenced this issue from a commit 2026-11-09 16:35:21 +01:00
plank referenced this issue from a commit 2026-11-09 17:32:15 +01:00
plank referenced this issue from a commit 2026-11-09 17:57:12 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PWC/agentic-rag-policy-assistant#6
No description provided.