Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ db = Chroma.from_documents(documents=texts, embedding=embeddings, persist_direct
|
|
48 |
retriever = db.as_retriever()
|
49 |
|
50 |
global qa
|
51 |
-
qa = RetrievalQA.from_chain_type(llm=
|
52 |
|
53 |
|
54 |
def add_text(history, text):
|
|
|
48 |
retriever = db.as_retriever()
|
49 |
|
50 |
global qa
|
51 |
+
qa = RetrievalQA.from_chain_type(llm=llama, chain_type="stuff", retriever=retriever, return_source_documents=True)
|
52 |
|
53 |
|
54 |
def add_text(history, text):
|