JustusI commited on
Commit
093bb97
·
verified ·
1 Parent(s): 076f154

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def load_vector_db(zip_file_path, extract_path):
27
 
28
  # Function to augment prompt
29
  def augment_prompt(query, vectordb):
30
- results = vectordb.similarity_search(query, k=20)
31
  source_knowledge = "\n".join([x.page_content for x in results])
32
  augmented_prompt = f"""
33
  You are an AI assistant. Use the context provided below to answer the question as comprehensively as possible.
 
27
 
28
  # Function to augment prompt
29
  def augment_prompt(query, vectordb):
30
+ results = vectordb.similarity_search(query, k=10)
31
  source_knowledge = "\n".join([x.page_content for x in results])
32
  augmented_prompt = f"""
33
  You are an AI assistant. Use the context provided below to answer the question as comprehensively as possible.