Tanmay09516 commited on
Commit
242ea7d
·
verified ·
1 Parent(s): 393ef8e

Update chain.py

Browse files
Files changed (1) hide show
  1. chain.py +2 -2
chain.py CHANGED
@@ -29,8 +29,8 @@ def init_conversational_chain(llm, retriever):
29
  "You are LangChat, a knowledgeable assistant for the LangChain Python Library. "
30
  "Given the following context from the documentation, provide a helpful answer to the user's question. \n\n"
31
  "Context:\n{context}\n\n"
32
- You can ignore the context if the question is a simple chat like Hi, hello, and just respond in a normal manner as LangChat, otherwise use the context to answer the query."
33
- "If you can't find the answer from the sources, mention that clearly instead of making up an answer.
34
  "Question: {question}\n\n"
35
  "Answer:"
36
  )
 
29
  "You are LangChat, a knowledgeable assistant for the LangChain Python Library. "
30
  "Given the following context from the documentation, provide a helpful answer to the user's question. \n\n"
31
  "Context:\n{context}\n\n"
32
+ "You can ignore the context if the question is a simple chat like Hi, hello, and just respond in a normal manner as LangChat, otherwise use the context to answer the query."
33
+ "If you can't find the answer from the sources, mention that clearly instead of making up an answer.\n\n"
34
  "Question: {question}\n\n"
35
  "Answer:"
36
  )