Marcin
CCConvex Community
•Created by Marcin on 9/28/2024 in #support-community
Error: Could not resolve...
I am willing to use nodejs package.
I am following the instruction here: https://docs.convex.dev/functions/bundling
I have setup my convex.json as follows:
{
"node": {
"externalPackages": ["*"]
}
}
Still i got tons of messages like:
---
[ERROR] Could not resolve "events"
node_modules/cli-progress/lib/multi-bar.js:4:30:
4 │ const _EventEmitter = require('events');
╵ ~~~~
The package "events" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
---
In my code I am importing the package:
---
import nodejspackage from "nodejs-package";
---
What I am doing wrong so it does not work?
5 replies
CCConvex Community
•Created by Marcin on 9/26/2024 in #support-community
Performance testing and credentials from FS
Has anyone done performance testing of Convex? What is the expected system response for medium complexity of mutation? What is maximum TPS?
I could not find any information on that topic anywhere.
Do you know any significant financial services institution that is using Convex on production? Specifically I am interested if the system ever went through detailed security assessment.
Thank you!
9 replies
CCConvex Community
•Created by Marcin on 9/8/2024 in #support-community
vectorsearch by filter fields is not working?
I have following definition of vector index:
.vectorIndex("by_embedding", {
vectorField: "profileEmbedding",
dimensions: 3072,
filterFields: ["user", "isOpenToWork", "geo", "summary", "headline"]
})
In my app I am using following filtering:
const searchResults: SearchResult[] = await ctx.vectorSearch("linkedInProfiles", "by_embedding", {
vector: embedding,
limit: 16,
filter: (q) => q.eq("user", user._id) && q.eq("isOpenToWork", args.isOpenToWork ?? false)
});
And for some reason the results never filter by user. The data is fine, the types are fine ((property) _id: GenericId<"users">)
How to enable filtering by multiple firlds as AND and how to make sure the user will get only his records?
4 replies