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

Add /embeddings api #41

Closed
prabirshrestha opened this issue Feb 7, 2024 · 5 comments · Fixed by #105
Closed

Add /embeddings api #41

prabirshrestha opened this issue Feb 7, 2024 · 5 comments · Fixed by #105
Assignees

Comments

@prabirshrestha
Copy link

Add support for embedding api. https://platform.openai.com/docs/guides/embeddings/what-are-embeddings. This can be useful for implementing RAG and vector search.

Might be could start with nomic-embed-text-v1

@francis2tm
Copy link
Contributor

we'll definitely add it. It seems llama.cpp is almost supporting embeddings.

@francis2tm
Copy link
Contributor

@pedro-devv ggerganov/llama.cpp#5423
I guess we can get started

@prabirshrestha
Copy link
Author

Nomic Embed also seems to be supported now by llama.cpp ggerganov/llama.cpp#5468

@AndriyMulyar
Copy link

You should use nomic-embed-text-v1.5 https://blog.nomic.ai/posts/nomic-embed-matryoshka

here is the v1.5 GGUF: https://huggingface.co/nomic-ai/nomic-embed-text-v1.5-GGUF

@prabirshrestha
Copy link
Author

ollama added support for nomic-embed-text as it is not supported by llama.cpp but unforutnately it is not compatible with OpenAI apis. Perf is really good too. https://ollama.com/library/nomic-embed-text

curl http://localhost:11434/api/embeddings -d '{
  "model": "nomic-embed-text",
  "prompt": "The sky is blue because of Rayleigh scattering"
}'

@pedro-devv pedro-devv linked a pull request Mar 4, 2024 that will close this issue
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 a pull request may close this issue.

4 participants