ytyeung commited on
Commit
9f764a9
1 Parent(s): 8c968bb

Update threshold

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=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:
 
119
 
120
  # helper function for RAG
121
  def helper_rag(text):
122
+ docs_out = vectordb.similarity_search_with_relevance_scores(text,k=3)
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: