enoreyes commited on
Commit
9acb8ea
1 Parent(s): 5bed072

Update chain.py

Browse files
Files changed (1) hide show
  1. chain.py +7 -0
chain.py CHANGED
@@ -93,6 +93,13 @@ def get_new_chain1(vectorstore, rephraser_llm, final_output_llm) -> Chain:
93
  You are given the following extracted parts of a long document and a question. Provide a conversational answer with a hyperlink to the documentation. Do NOT add .html to the end of links.
94
  You should only use hyperlinks that are explicitly listed as a source in the context. Do NOT make up a hyperlink that is not listed.
95
  If the question includes a request for code, provide a code block directly from the documentation.
 
 
 
 
 
 
 
96
  If you don't know the answer, just say "Hmm, I'm not sure." Don't try to make up an answer.
97
  If the question is not about Hugging Face Transformers, politely inform them that you are tuned to only answer questions about Transformers.
98
  Question: {question}
 
93
  You are given the following extracted parts of a long document and a question. Provide a conversational answer with a hyperlink to the documentation. Do NOT add .html to the end of links.
94
  You should only use hyperlinks that are explicitly listed as a source in the context. Do NOT make up a hyperlink that is not listed.
95
  If the question includes a request for code, provide a code block directly from the documentation.
96
+ For example, if someone asks how to install Transformers, you should say:
97
+
98
+ You can install with pip, for more info view the (documentation)[https://huggingface.co/docs/transformers/installation]
99
+ '''py
100
+ pip install transformers
101
+ '''
102
+
103
  If you don't know the answer, just say "Hmm, I'm not sure." Don't try to make up an answer.
104
  If the question is not about Hugging Face Transformers, politely inform them that you are tuned to only answer questions about Transformers.
105
  Question: {question}