dependecies + default values

This commit is contained in:
Alex
2023-03-07 18:37:21 +00:00
parent 19e27e8403
commit 5f4f55269e
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ def api_answer():
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=10)
chain = VectorDBQA(combine_documents_chain=qa_chain, vectorstore=docsearch, k=4)
# fetch the answer
result = chain({"query": question})