Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ 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[0].page_content)
|
76 |
chain = RetrievalQA.from_chain_type(llm=llm,chain_type="stuff",retriever=retriever[0].page_content)
|
77 |
response = chain.run(query)
|
|
|
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.similarity_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)
|