Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add query index params #10

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Add query index params #10

merged 1 commit into from
Nov 30, 2023

Conversation

cevian
Copy link
Collaborator

@cevian cevian commented Nov 20, 2023

These parameters to search() let you control the query-time parameters for index operations. They allow you to adjust the speed/recall tradeoff when querying.

If these parameters aren't specified the default for the index will be used.

These parameters to search() let you control the query-time parameters
for index operations. They allow you to adjust the speed/recall tradeoff
when querying.

If these parameters aren't specified the default for the index will be used.
@cevian cevian requested a review from jgpruitt November 20, 2023 17:30
@@ -1910,6 +1977,11 @@
" (query, params) = self.builder.search_query(\n",
" query_embedding_np, limit, filter, predicates, uuid_time_filter)\n",
" query, params = self._translate_to_pyformat(query, params)\n",
"\n",
" if query_params is not None:\n",
" prefix = \"; \".join(query_params.get_statements())\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the async client, we run each SET LOCAL separately, and in the sync we are concatenating. Does the asyncpg just not support this behavior?

@cevian cevian merged commit 30544c0 into main Nov 30, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants