Skip to content

feat(rag): add RAG pipeline scaffold#2

Open
khb-git wants to merge 1 commit into
mainfrom
feat/khalil/rag-scaffold
Open

feat(rag): add RAG pipeline scaffold#2
khb-git wants to merge 1 commit into
mainfrom
feat/khalil/rag-scaffold

Conversation

@khb-git
Copy link
Copy Markdown
Owner

@khb-git khb-git commented May 13, 2026

Adds the skeleton of the RAG pipeline for Phase 2.
Design decisions baked in:

Two collections (permits + reference) kept strictly separate — see rag/types.py::Collection for rationale
Schema-aware chunking respects REVIEW_SCHEMA section boundaries
All-local inference (no cloud API calls — air-gapped requirement)

What's NOT in this PR: real loading, chunking, embedding, or retrieval logic. Every method is a stub that logs a warning. Phase 2 fills in the TODOs marked in each module.
Testing: pytest tests/ — 12 tests pass, covering interface contracts.
Review focus: interface shapes (renaming fields after Phase 2 starts is expensive) and the two-collection design (sanity check the rationale).

Adds the skeleton of the RAG pipeline with stubbed interfaces.
Two collections (permits + reference) kept separate. Schema-aware
chunking respects REVIEW_SCHEMA boundaries. All-local inference.

12 smoke tests pass; real implementations are TODOs marked in each
module. See rag/README.md for the layout and suggested fill-in order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant