Skip to content

Commit

Permalink
Update output_gen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HansanaPrabashwara-210483T committed Oct 17, 2024
1 parent e388f04 commit 040d4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def db_search(question, llm, embeddings, persist_directory):
answer:
"""

retriever = vectorstore.as_retriever()
retriever = vectorstore.as_retriever(search_kwargs={"k": 1})
prompt = PromptTemplate.from_template(template)
combined_doc_chain = create_stuff_documents_chain(llm, prompt)
retrieval_chain = create_retrieval_chain(retriever, combined_doc_chain)
Expand Down

0 comments on commit 040d4db

Please sign in to comment.