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

refactor(go/plugins/ollama): use ollama go client in plugin #751

Closed
wants to merge 3 commits into from

Conversation

cabljac
Copy link
Contributor

@cabljac cabljac commented Aug 6, 2024

This PR refactors the existing ollama plugin to use the ollama go client (which is used by ollama itself)

This will keep us in sync with ollama better, and make adding additional features easier as ollama adds them.

The PR also adds in embedders for ollama, resolving #728

During testing I also found some logic which could use a nil pointer check (in the validateCandidate logic, e.g called by generate.go in the ai package)

Checklist (if applicable):

  • Tested (manually, unit tested, etc.)
  • Changelog updated
  • Docs updated

go/ai/request_helpers.go Outdated Show resolved Hide resolved
@cabljac cabljac force-pushed the @invertase/add-ollama-client branch from 88a9055 to fd4acb1 Compare August 21, 2024 11:05
@cabljac cabljac marked this pull request as ready for review August 21, 2024 12:31
@cabljac cabljac changed the base branch from main to next August 28, 2024 12:52
@cabljac cabljac changed the title refactor: use ollama go client in plugin refactor(go/plugins/ollama): use ollama go client in plugin Aug 30, 2024
@cabljac cabljac requested a review from apascal07 August 30, 2024 14:07
@cabljac cabljac changed the base branch from next to main August 30, 2024 14:12
@cabljac cabljac closed this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants