#LLamaindex package: External packages in convex.json doesn't work

2 messages · Page 1 of 1 (latest)

leaden echo
#

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.

{
  "node": {
    "externalPackages": [
      "llamaindex",
      "pg",
      "pgvector/pg",
      "@xenova/transformers"
    ]
  }
}

First, get an api key. We recommend putting your key in a file called .env that looks like this:

covert sigilBOT
#

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!