LLamaindex package: External packages in convex.json doesn't work
I want to use the llamaindex package to parse documents with their parser model. However, this model also includes a VectorStoreIndex that is used in conjuction with openAI to create embeddings and store it in the llamacloud database. As I don't have access to openAI (based in Hong Kong) and I want to keep using convex for vector search, I don't use this functionality. But I believe there are the reason for the error below.
I put "use node" at the top of the file and inserted the packages that errored my build to the node.externalPackages convex.json file. But I still get the same errors.
Any clue on what that could be? The pg packages must be used for their vector database which I don't use.
Using in TypeScript | LlamaCloud Documentation
First, get an api key. We recommend putting your key in a file called .env that looks like this:
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Looks like it related to the fact that I am using a monorepo and externalPackages is not recognised by convex because the node_module where the package lives is outside of the convex project I am working on. Saw that in another post when looking at image transformation in Convex with sharp. See link