Update threshold
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def answer(input_text,context=None):
|
|
119 |
|
120 |
# helper function for RAG
|
121 |
def helper_rag(text):
|
122 |
-
docs_out = vectordb.similarity_search_with_relevance_scores(text,k=
|
123 |
#docs_out = vectordb.max_marginal_relevance_search(text,k=5,fetch_k = 20, lambda_mult = 0.5)
|
124 |
context = []
|
125 |
for doc in docs_out:
|
|
|
119 |
|
120 |
# helper function for RAG
|
121 |
def helper_rag(text):
|
122 |
+
docs_out = vectordb.similarity_search_with_relevance_scores(text,k=1)
|
123 |
#docs_out = vectordb.max_marginal_relevance_search(text,k=5,fetch_k = 20, lambda_mult = 0.5)
|
124 |
context = []
|
125 |
for doc in docs_out:
|