(self, ctx: QueryContext)
| 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.""" |
no outgoing calls