Skip to content

Commit aacca31

Browse files
Add reasoning to the agents in the RAG example
1 parent bb436c0 commit aacca31

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

atomic-examples/rag-chatbot/rag_chatbot/agents/qa_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class RAGQuestionAnsweringAgentInputSchema(BaseIOSchema):
1616
class RAGQuestionAnsweringAgentOutputSchema(BaseIOSchema):
1717
"""Output schema for the RAG QA agent."""
1818

19+
reasoning: str = Field(..., description="The reasoning process leading up to the final answer")
1920
answer: str = Field(..., description="The answer to the user's question based on the retrieved context")
2021

2122

atomic-examples/rag-chatbot/rag_chatbot/agents/query_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class RAGQueryAgentInputSchema(BaseIOSchema):
1616
class RAGQueryAgentOutputSchema(BaseIOSchema):
1717
"""Output schema for the RAG query agent."""
1818

19+
reasoning: str = Field(..., description="The reasoning process leading up to the final query")
1920
query: str = Field(..., description="The semantic search query to use for retrieving relevant chunks")
2021

2122

0 commit comments

Comments
 (0)