Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/adapters/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Backend adapters implementing the ports, each behind an optional extra."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/agent/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Declarative agent runtime: task graphs, tools and retrieval policies."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/eval/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Evaluation: golden sets, IR metrics and the eval runner."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/evidence/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Evidence pack construction: deduplication, ordering and token budgeting."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/generation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Generation helpers: prompt registry, context formatting and citation checks."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/ingest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Ingestion pipeline: parsing, cleaning, chunking and section trees."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/ports/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Protocol definitions for every swappable backend."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/retrieval/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Retrieval pipeline: hybrid search, fusion, reranking and parent expansion."""
1 change: 1 addition & 0 deletions packages/engine/src/agentic_rag/types/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Domain-neutral data model: documents, chunks, citations and evidence."""
48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,51 @@ members = ["packages/*"]
[tool.uv.sources]
agentic-rag = { workspace = true }
agentic-rag-code = { workspace = true }

[tool.ruff]
target-version = "py311"
line-length = 100

[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF", "D"]

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.lint.per-file-ignores]
"**/tests/**" = ["D"]

[tool.mypy]
strict = true
files = ["packages"]
python_version = "3.11"

[tool.pytest.ini_options]
testpaths = ["packages"]
addopts = "--cov=agentic_rag --cov=agentic_rag_code --cov-report=term-missing --cov-fail-under=80"

[tool.importlinter]
root_packages = ["agentic_rag", "agentic_rag_code"]

[[tool.importlinter.contracts]]
name = "Types and ports never import adapters"
type = "forbidden"
source_modules = ["agentic_rag.types", "agentic_rag.ports"]
forbidden_modules = ["agentic_rag.adapters"]

[[tool.importlinter.contracts]]
name = "The engine never imports the code-rag extension"
type = "forbidden"
source_modules = ["agentic_rag"]
forbidden_modules = ["agentic_rag_code"]

[[tool.importlinter.contracts]]
name = "Engine layers"
type = "layers"
layers = [
"agentic_rag.adapters",
"agentic_rag.ingest : agentic_rag.retrieval : agentic_rag.generation : agentic_rag.agent : agentic_rag.eval",
"agentic_rag.evidence",
"agentic_rag.ports",
"agentic_rag.types",
]