Spaces:
Runtime error
Runtime error
Achille Thin - Genesis
commited on
Commit
·
88135da
1
Parent(s):
53ddf13
try increasing similarity threshold
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ loader = PDFReader()
|
|
48 |
index = VectorStoreIndex(
|
49 |
[], service_context=service_context, storage_context=storage_context
|
50 |
)
|
51 |
-
query_engine = index.as_query_engine(similarity_top_k=5)
|
52 |
|
53 |
def create_prompt(farmSize, cultures):
|
54 |
prompt = f"""
|
|
|
48 |
index = VectorStoreIndex(
|
49 |
[], service_context=service_context, storage_context=storage_context
|
50 |
)
|
51 |
+
query_engine = index.as_query_engine(similarity_top_k=5, similarity_threshold=0.8)
|
52 |
|
53 |
def create_prompt(farmSize, cultures):
|
54 |
prompt = f"""
|