Spaces:
Sleeping
Sleeping
solved keyword serach error
Browse files- 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 |
-
|
|
|
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
|