| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A mock Retrieval-Augmented Generation pipeline with layered architecture, used to demonstrate ArchUnitPython architecture testing.
Install uv, then:
uv sync --all-extrasThis installs the project with all dependencies (including dev/test tools) into a .venv managed by uv.
uv run pytest -vYou'll see:
api/ -> FastAPI-style endpoints services/ -> RAG orchestration (business logic) retrieval/ -> Vector store & embedding (mocked) llm/ -> LLM client (mocked) models/ -> Data models / schemas shared/ -> Configuration & utilities
Allowed dependency flow:
api -> services -> retrieval, llm, models retrieval -> models, shared llm -> models, shared models -> shared shared -> (nothing)
This is also codified in architecture.puml and enforced by the test suite.
Two files deliberately break the architecture to show ArchUnitPython in action:
The test suite catches both via xfail-marked tests, so the suite stays green while still demonstrating the violations.
| Back | FazBrowse Home | New Git URL |