Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throw new Error("OpenAI or Azure OpenAI API key or Token Provider not found"); #96

Closed
MB2 opened this issue Jul 22, 2024 · 2 comments
Closed
Assignees

Comments

@MB2
Copy link

MB2 commented Jul 22, 2024

I set the RAG application with Ollama (vector db LanceDB) but keep getting this error. What can I do?
Here's my code:

const ragApplication = await new RAGApplicationBuilder() .setModel(new Ollama({ modelName: "llama3", baseUrl: 'http://localhost:11434' })) .addLoader({ type: 'YoutubeSearch', youtubeSearchString: 'Tesla cars' }) .addLoader('https://en.wikipedia.org/wiki/Tesla,_Inc.') .addLoader('https://tesla-info.com/sitemap.xml') .setVectorDb(new LanceDb({ path: '.db' })) .build();

@ashok-ayyarchamy
Copy link

ashok-ayyarchamy commented Jul 31, 2024

@MB2 By default, open ai embeddings model is used. Try changing the embeddings model as well

.setEmbeddingModel(
new OllamaEmbeddings({
baseUrl: "http://localhost:11434",
model: "mxbai-embed-large",
})
)

this worked for me

@adhityan
Copy link
Collaborator

Closing issue - this is not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants