GitHub Actions commited on
Commit
835e2c8
·
1 Parent(s): 92b1921

Deploy 40fde13

Browse files
Files changed (1) hide show
  1. app/services/vector_store.py +2 -2
app/services/vector_store.py CHANGED
@@ -171,7 +171,7 @@ class VectorStore:
171
  logger.warning("fetch_by_point_ids failed: %s", exc)
172
  return []
173
 
174
- def keyword_filter_search(self, terms: list[str], limit: int = 20) -> list["Chunk"]:
175
  """
176
  Payload filter search on metadata.keywords using MatchAny.
177
  Only returns leaf chunks — navigation nodes have no keywords field.
@@ -196,7 +196,7 @@ class VectorStore:
196
  ),
197
  ]
198
  ),
199
- limit=limit,
200
  with_payload=True,
201
  with_vectors=False,
202
  )
 
171
  logger.warning("fetch_by_point_ids failed: %s", exc)
172
  return []
173
 
174
+ def keyword_filter_search(self, terms: list[str], top_k: int = 20) -> list["Chunk"]:
175
  """
176
  Payload filter search on metadata.keywords using MatchAny.
177
  Only returns leaf chunks — navigation nodes have no keywords field.
 
196
  ),
197
  ]
198
  ),
199
+ limit=top_k,
200
  with_payload=True,
201
  with_vectors=False,
202
  )