dependecies + default values

pull/163/head
Alex 1 year ago
parent 19e27e8403
commit 5f4f55269e

@ -16,7 +16,7 @@ WORKDIR /app
COPY . /app
ENV FLASK_APP=app.py
ENV FLASK_DEBUG=true
RUN pip install gunicorn
RUN pip install gunicorn==20.1.0
EXPOSE 5001

@ -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})

Loading…
Cancel
Save