update for better runs + storage sync

This commit is contained in:
Alex
2023-03-27 22:07:26 +01:00
parent e6f1c7d0c3
commit 186e7bf402
2 changed files with 5 additions and 4 deletions

View File

@@ -196,7 +196,7 @@ def api_answer():
else:
qa_chain = load_qa_chain(llm=llm, chain_type="map_reduce",
combine_prompt=c_prompt, question_prompt=q_prompt)
chain = VectorDBQA(combine_documents_chain=qa_chain, vectorstore=docsearch, k=4)
chain = VectorDBQA(combine_documents_chain=qa_chain, vectorstore=docsearch, k=3)
result = chain({"query": question})
print(result)

View File

@@ -21,7 +21,9 @@ services:
ports:
- "5001:5001"
volumes:
- app_data_container:/app
- ./application/indexes:/app/indexes
- ./application/inputs:/app/inputs
- ./application/vectors:/app/vectors
depends_on:
- redis
- mongo
@@ -55,5 +57,4 @@ services:
volumes:
mongodb_data_container:
app_data_container:
mongodb_data_container: