Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,9 +71,9 @@ def main():
|
|
| 71 |
#st.write(docs)
|
| 72 |
#chain = load_qa_chain(llm=llm, chain_type="stuff")
|
| 73 |
#response = chain.run(input_documents=docs, question=query)
|
| 74 |
-
retriever=vector_store.
|
| 75 |
-
st.write(retriever)
|
| 76 |
-
chain = RetrievalQA.from_chain_type(llm=llm,chain_type="stuff",retriever=retriever[0])
|
| 77 |
response = chain.run(query)
|
| 78 |
st.write(response)
|
| 79 |
|
|
|
|
| 71 |
#st.write(docs)
|
| 72 |
#chain = load_qa_chain(llm=llm, chain_type="stuff")
|
| 73 |
#response = chain.run(input_documents=docs, question=query)
|
| 74 |
+
retriever=vector_store.asimilarity_search(query)
|
| 75 |
+
st.write(retriever[0].page_content)
|
| 76 |
+
chain = RetrievalQA.from_chain_type(llm=llm,chain_type="stuff",retriever=retriever[0].page_content)
|
| 77 |
response = chain.run(query)
|
| 78 |
st.write(response)
|
| 79 |
|