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

Update embeddings generation to /api/embed endpoint and allow for batch embedding #61

Merged
merged 3 commits into from
Aug 17, 2024

Conversation

pepperoni21
Copy link
Owner

@pepperoni21 pepperoni21 commented Aug 3, 2024

Closes #57
Closes #58

@pepperoni21 pepperoni21 marked this pull request as draft August 3, 2024 13:05
@pepperoni21 pepperoni21 changed the title Updated embeddings generation to /api/embed endpoint Update embeddings generation to /api/embed endpoint and allow for batch embedding Aug 3, 2024
@pepperoni21 pepperoni21 marked this pull request as ready for review August 17, 2024 12:03
@pepperoni21 pepperoni21 merged commit 1900774 into master Aug 17, 2024
2 checks passed
@pepperoni21 pepperoni21 deleted the embeddings-update branch September 7, 2024 17:27
timonv added a commit to bosun-ai/swiftide that referenced this pull request Sep 8, 2024
Update to the most recent ollama-rs, which exposes the batch embedding
API Ollama exposes (pepperoni21/ollama-rs#61).
This allows the Ollama struct in Swiftide to implement `EmbeddingModel`.

Use the same pattern that the OpenAI struct uses to manage separate
embedding and prompt models.

---------

Co-authored-by: Timon Vonk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant