- RAG Specialist was not using detailed_question, but original question. Resulting in Evie not returning good or correct answers.
This commit is contained in:
@@ -256,7 +256,7 @@ class RAGSpecialist(BaseSpecialist):
|
|||||||
structured_llm = llm.with_structured_output(output_schema)
|
structured_llm = llm.with_structured_output(output_schema)
|
||||||
chain = setup_and_retrieval | rag_prompt | structured_llm
|
chain = setup_and_retrieval | rag_prompt | structured_llm
|
||||||
|
|
||||||
raw_result = chain.invoke(query)
|
raw_result = chain.invoke(detailed_question)
|
||||||
result = SpecialistResult.create_for_type(
|
result = SpecialistResult.create_for_type(
|
||||||
"STANDARD_RAG",
|
"STANDARD_RAG",
|
||||||
detailed_query=detailed_question,
|
detailed_query=detailed_question,
|
||||||
|
|||||||
Reference in New Issue
Block a user