Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def format_docs(docs):
|
|
53 |
retriever = vectorstore.as_retriever(k = 4)
|
54 |
|
55 |
prompt = hub.pull("rlm/rag-prompt")
|
56 |
-
llm = HuggingFaceEndpoint(repo_id="mistralai/
|
57 |
rag_chain = (
|
58 |
{"context": retriever | format_docs, "question": RunnablePassthrough()}
|
59 |
| prompt
|
@@ -94,8 +94,10 @@ You were made by Aryan A. and Atharv G. for the CHS community.
|
|
94 |
|
95 |
Make your answer at least three sentences and very comprehensive.
|
96 |
|
97 |
-
Make your message in markdown with lines in between sentences.
|
98 |
|
|
|
|
|
99 |
"""
|
100 |
qa_prompt = ChatPromptTemplate.from_messages(
|
101 |
[
|
|
|
53 |
retriever = vectorstore.as_retriever(k = 4)
|
54 |
|
55 |
prompt = hub.pull("rlm/rag-prompt")
|
56 |
+
llm = HuggingFaceEndpoint(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", stop_sequences=["Human:"])
|
57 |
rag_chain = (
|
58 |
{"context": retriever | format_docs, "question": RunnablePassthrough()}
|
59 |
| prompt
|
|
|
94 |
|
95 |
Make your answer at least three sentences and very comprehensive.
|
96 |
|
97 |
+
Make your message in markdown with lots lines in between sentences.
|
98 |
|
99 |
+
Please use only the documents/text provided below to answer the question.
|
100 |
+
If the documents/text provided cannot answer the question, please say that the answer might not be present in the available database of information
|
101 |
"""
|
102 |
qa_prompt = ChatPromptTemplate.from_messages(
|
103 |
[
|