Vector Search with JavaScript: generate embeddings needs paid openai account?

Hi,

I have created a free openai account and generated an api key.

When I run the generate embeddings code with the api key, I get the following error:

Error: 429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.

Is a paid account needed?

Anyways, what model would you recommend to generate embeddings locally?

Thanks

Markus

Hi Markus,

Yes, OpenAI does have a pricing model. You can learn about their pricing model on their pricing page.

There are certainly good open source alternatives. To start take a look at the trending board of open source models on HuggingFace as a good reference point to begin your exploration. One particular model you can take a look at nomic-embed-text from ollama, but I encourage you to explore all the open source options and find what works best for your needs.

All the best,

Ben