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 Ollama embedding model implementation #1159

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented Aug 3, 2024

  • Update OllamaEmbeddingModel to support batch embedding requests
  • Rename EmbeddingRequest/Response to EmbeddingsRequest/Response
  • Add truncate option to control input truncation
  • Update documentation and tests for new embedding API
  • Remove deprecated withModel and withDefaultOptions methods
  • Adjust default values for various Ollama model options

Resolves #1158

- Update OllamaEmbeddingModel to support batch embedding requests
- Rename EmbeddingRequest/Response to EmbeddingsRequest/Response
- Add truncate option to control input truncation
- Update documentation and tests for new embedding API
- Remove deprecated withModel and withDefaultOptions methods
- Adjust default values for various Ollama model options
- Include response medata with response model name

Resolves spring-projects#1158
@tzolov tzolov merged commit 4cacbe8 into spring-projects:main Aug 4, 2024
1 check passed
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.

Ollama: upgrade to batch embedding endpoint API
1 participant