Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ embeddings = HuggingFaceEmbeddings()
|
|
41 |
from langchain.vectorstores import FAISS
|
42 |
|
43 |
db = FAISS.from_documents(docs, embeddings)
|
44 |
-
llm=HuggingFaceEndpoint(repo_id="mistralai/Mistral-7B-Instruct-v0.2", temperature=0.
|
45 |
chain = load_qa_chain(llm, chain_type="stuff")
|
46 |
|
47 |
def get_answer(query):
|
|
|
41 |
from langchain.vectorstores import FAISS
|
42 |
|
43 |
db = FAISS.from_documents(docs, embeddings)
|
44 |
+
llm=HuggingFaceEndpoint(repo_id="mistralai/Mistral-7B-Instruct-v0.2", temperature=0.2, max_length=512)
|
45 |
chain = load_qa_chain(llm, chain_type="stuff")
|
46 |
|
47 |
def get_answer(query):
|