Spaces:
Sleeping
Sleeping
kartikeyarana
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -59,12 +59,12 @@ def main():
|
|
59 |
docsearch = FAISS.from_documents(text_chunks, embeddings)
|
60 |
docsearch.save_local(DB_FAISS_PATH)
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
|
67 |
-
llm = CTransformers(model="NexaAIDev/Octopus-v2")
|
68 |
|
69 |
qa = ConversationalRetrievalChain.from_llm(llm, retriever=docsearch.as_retriever())
|
70 |
|
|
|
59 |
docsearch = FAISS.from_documents(text_chunks, embeddings)
|
60 |
docsearch.save_local(DB_FAISS_PATH)
|
61 |
|
62 |
+
llm = CTransformers(model="meta-llama/Llama-2-7b-chat-hf",
|
63 |
+
model_type="llama",
|
64 |
+
max_new_tokens=512,
|
65 |
+
temperature=0.1)
|
66 |
|
67 |
+
#llm = CTransformers(model="NexaAIDev/Octopus-v2")
|
68 |
|
69 |
qa = ConversationalRetrievalChain.from_llm(llm, retriever=docsearch.as_retriever())
|
70 |
|