We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8ea41 commit 3794e67Copy full SHA for 3794e67
src/component/vector/vector.ts
@@ -170,7 +170,7 @@ export const search = action({
170
171
const results = await ctx.vectorSearch(index.tableName, "vector", {
172
vector: queryVector,
173
- limit: Math.max(topK * 10 * Object.keys(filter ?? {}).length, 1024),
+ limit: Math.max(topK * 2 * (1 + Object.keys(filter ?? {}).length), 256),
174
filter: filter
175
? (q) => {
176
return q.eq("indexName", index.indexName);
0 commit comments