Skip to content

Add Ollama embedding/querying support #6

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jongirard
Copy link

Needed to add Ollama for my usage/implementation so I added support for embedding/querying with local Ollama models. Currently uses nomic-embed-text (https://ollama.com/library/nomic-embed-text) and llama3.2 models for embedding/querying respectively. This can be adapted to be passed as an argument for custom models selection but for my purposes I only needed these 2 models specifically.

Tested with Claude desktop and working.

@jongirard jongirard mentioned this pull request May 14, 2025
@Tyler-Hardin
Copy link

Ollama has an OpenAI compatible endpoint. If you set OPENAI_API_BASE="http://localhost:111434/v1", set LLM_MODEL, and EMBEDDING_MODEL, you should be able to get it to work with no changes.

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

Successfully merging this pull request may close these issues.

2 participants