-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(integrations): Add ollama embeddings support #278
Conversation
I'm going to create a separate PR to update the documentation on the website. I'll link to it here when it's out for review. |
Updated the website in bosun-ai/swiftide-website#15 |
Awesome, looking good, I'll do a full review asap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked this over and it looks great! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for this! Small comment on naming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed it. Great work! Will be merging and releasing this in a bit! 🙏
## 🤖 New release * `swiftide`: 0.10.0 -> 0.11.0 * `swiftide-core`: 0.10.0 -> 0.11.0 * `swiftide-indexing`: 0.10.0 -> 0.11.0 * `swiftide-macros`: 0.10.0 -> 0.11.0 * `swiftide-integrations`: 0.10.0 -> 0.11.0 * `swiftide-query`: 0.10.0 -> 0.11.0 <details><summary><i><b>Changelog</b></i></summary><p> ## `swiftide` <blockquote> ## [0.11.0](https://github.com/bosun-ai/swiftide/releases/tag/0.11.0) - 2024-09-08 ### Added - [bdf17ad](bdf17ad) *(indexing)* Parquet loader ([#279](#279)) - [a98dbcb](a98dbcb) *(integrations)* Add ollama embeddings support ([#278](#278)) **Full Changelog**: 0.10.0...0.11.0 </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/MarcoIeni/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.