TomData commited on
Commit
ef6a605
·
1 Parent(s): e7ac557

solved keyword serach error

Browse files
Files changed (1) hide show
  1. src/chatbot.py +2 -1
src/chatbot.py CHANGED
@@ -151,7 +151,8 @@ def keyword_search(query, n=10, embeddings=embeddings, method='ss', party_filter
151
  - The `party_filter` parameter is a filter for retrieving speech contents by party affiliation. Specify 'All' to retrieve
152
  speeches from all parties (default is 'All').
153
  """
154
- db = get_vectorstore(inputs="All", embeddings=embeddings)
 
155
  query_embedding = embeddings.embed_query(query)
156
 
157
  # Maximal Marginal Relevance
 
151
  - The `party_filter` parameter is a filter for retrieving speech contents by party affiliation. Specify 'All' to retrieve
152
  speeches from all parties (default is 'All').
153
  """
154
+
155
+ db = get_vectorstore(inputs=["All"], embeddings=embeddings)
156
  query_embedding = embeddings.embed_query(query)
157
 
158
  # Maximal Marginal Relevance