MCPcopy Create free account
hub / github.com/alibaba/zvec / _build_base_search_query

Method _build_base_search_query

python/zvec/executor/query_executor.py:212–220  ·  view source on GitHub ↗
(self, ctx: QueryContext)

Source from the content-addressed store, hash-verified

210 return ctx.reranker.rerank(docs_list, ctx.topk)
211
212 def _build_base_search_query(self, ctx: QueryContext) -> _SearchQuery:
213 search_query = _SearchQuery()
214 search_query.topk = ctx.topk
215 search_query.include_vector = ctx.include_vector
216 if ctx.filter:
217 search_query.filter = ctx.filter
218 if ctx.output_fields is not None:
219 search_query.output_fields = ctx.output_fields
220 return search_query
221
222 def _apply_fts(self, query: Query, search_query: _SearchQuery) -> None:
223 """Set FTS query on search_query if the query has FTS parameters."""

Callers 3

_build_queriesMethod · 0.95
_build_search_queryMethod · 0.95

Calls

no outgoing calls

Tested by 1