jatinmehra commited on
Commit
02173dc
·
1 Parent(s): d8e6d12

Update agentic_rag function to clarify context usage in responses

Browse files
Files changed (1) hide show
  1. preprocessing.py +1 -0
preprocessing.py CHANGED
@@ -102,6 +102,7 @@ def agentic_rag(llm, tools, query, context_chunks, Use_Tavily=False):
102
  1. Use the provided context to answer the user's question.
103
  2. Provide a clear answer, if you don't know the answer, say 'I don't know'.
104
  3. Prioritize information from the most relevant context chunks.
 
105
  """),
106
  ("human", "Context: {context}\n\nQuestion: {input}"),
107
  MessagesPlaceholder(variable_name="chat_history"),
 
102
  1. Use the provided context to answer the user's question.
103
  2. Provide a clear answer, if you don't know the answer, say 'I don't know'.
104
  3. Prioritize information from the most relevant context chunks.
105
+ 4. Don't use based on provided context instead use Based on the Document.
106
  """),
107
  ("human", "Context: {context}\n\nQuestion: {input}"),
108
  MessagesPlaceholder(variable_name="chat_history"),