llm-tools / embedJs

A NodeJS RAG framework to easily work with LLMs and embeddings
https://www.npmjs.com/package/@llm-tools/embedjs
Apache License 2.0
266 stars 32 forks source link

OpenAI or Azure OpenAI API key or Token Provider not found, im not using it #108

Closed CarmineXmX closed 2 weeks ago

CarmineXmX commented 3 weeks ago

i'm starting with examples/ollama and after install and run npm start -- llama3, this error occur.

adhityan commented 3 weeks ago

Could you post the error you see?

CarmineXmX commented 3 weeks ago

Error OpenAI or Azure OpenAI API key or Token Provider not found

Il sab 7 set 2024, 05:29 Adhityan K V @.***> ha scritto:

Could you post the error you see?

— Reply to this email directly, view it on GitHub https://github.com/llm-tools/embedJs/issues/108#issuecomment-2335022487, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU56UTHXFL6DJWU42ZAYXTZVJXKZAVCNFSM6AAAAABNYLA556VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGAZDENBYG4 . You are receiving this because you authored the thread.Message ID: @.***>

adhityan commented 2 weeks ago

This probably happens because for a vector app you need both a LLM and Embedding Model. By default, the OpenAI Large embedding models are used. This does not change if you use Ollama to power the LLM. Since it needs the OpenAI keys for the embedding model - you saw the error.