Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

fix(rag_agent_with_database_routing): remove unresolved merge conflict markers

Rudy Celekli526bcf130e80
diff --git a/rag_apps/rag_agent_with_database_routing/rag_agent/pipeline.py b/rag_apps/rag_agent_with_database_routing/rag_agent/pipeline.py
index 1726521..cf34993 100644
--- a/rag_apps/rag_agent_with_database_routing/rag_agent/pipeline.py
+++ b/rag_apps/rag_agent_with_database_routing/rag_agent/pipeline.py
@@ -27,11 +27,8 @@ RAG_SYSTEM = (
@dataclass
class PipelineResult:
-<<<<<<< HEAD
-=======
"""The final answer plus routing and retrieval metadata for a single query."""
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
answer: str
routing: RoutingDecision
docs: list[RetrievedDoc] = field(default_factory=list)
diff --git a/rag_apps/rag_agent_with_database_routing/rag_agent/retriever.py b/rag_apps/rag_agent_with_database_routing/rag_agent/retriever.py
index 29026b4..c40ac4e 100644
--- a/rag_apps/rag_agent_with_database_routing/rag_agent/retriever.py
+++ b/rag_apps/rag_agent_with_database_routing/rag_agent/retriever.py
@@ -18,11 +18,8 @@ from .embeddings import OrqEmbeddings
@dataclass
class RetrievedDoc:
-<<<<<<< HEAD
-=======
"""A single document retrieved from a Qdrant collection, with its similarity score."""
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
text: str
score: float
source: str
diff --git a/rag_apps/rag_agent_with_database_routing/rag_agent/router.py b/rag_apps/rag_agent_with_database_routing/rag_agent/router.py
index e7de93e..5192e4a 100644
--- a/rag_apps/rag_agent_with_database_routing/rag_agent/router.py
+++ b/rag_apps/rag_agent_with_database_routing/rag_agent/router.py
@@ -34,11 +34,8 @@ _KEYWORDS: dict[str, list[str]] = {
class RoutingDecision(BaseModel):
-<<<<<<< HEAD
-=======
"""Holds which database a query was routed to and why."""
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
database: Literal["products", "support", "financial"]
reasoning: str