Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 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.
|