Skip to content

Commit 4b74ef4

Browse files
authored
Merge pull request #1402 from tisnik/fixed-types-in-vector-io
LCORE-1449: Fixed types in vector-io
2 parents f8671d9 + 9fa4264 commit 4b74ef4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/vector_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ def _get_solr_vector_store_ids() -> list[str]:
5454

5555
def _build_query_params(solr: Optional[dict[str, Any]] = None) -> dict[str, Any]:
5656
"""Build query parameters for vector search."""
57-
params = {
57+
params: dict[str, Any] = {
5858
"k": constants.SOLR_VECTOR_SEARCH_DEFAULT_K,
5959
"score_threshold": constants.SOLR_VECTOR_SEARCH_DEFAULT_SCORE_THRESHOLD,
6060
"mode": constants.SOLR_VECTOR_SEARCH_DEFAULT_MODE,
6161
}
6262
logger.debug("Initial params: %s", params)
6363
logger.debug("query_request.solr: %s", solr)
6464

65-
if solr:
65+
if solr is not None:
6666
params["solr"] = solr
6767
logger.debug("Final params with solr filters: %s", params)
6868
else:

0 commit comments

Comments
 (0)