Skip to content

Conversation

@fzowl
Copy link
Contributor

@fzowl fzowl commented Oct 19, 2025

  • correcting the multimodal integration
  • adding the contextual model support
  • refactoring

@elasticsearchmachine
Copy link
Collaborator

@fzowl please enable the option "Allow edits and access to secrets by maintainers" on your PR. For more information, see the documentation.

@elasticsearchmachine elasticsearchmachine added v9.3.0 external-contributor Pull request authored by a developer outside the Elasticsearch team needs:triage Requires assignment of a team area label labels Oct 19, 2025
@fzowl fzowl changed the title Update the voyageai integration [ML] Update the voyageai integration Oct 19, 2025
@fzowl
Copy link
Contributor Author

fzowl commented Oct 19, 2025

@davidkyle Can you please take a look?

@szybia szybia added :ml Machine learning and removed needs:triage Requires assignment of a team area label labels Oct 20, 2025
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Oct 20, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@davidkyle davidkyle self-assigned this Oct 22, 2025
@davidkyle
Copy link
Member

@elasticmachine test this please

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fzowl there has been a refactoring since the original PR #122134. All the VoyageAI related request and response classes have been moved from the org.elasticsearch.xpack.inference.external package to org.elasticsearch.xpack.inference.services.voyageai. It looks like git has recreated all the old classes in org.elasticsearch.xpack.inference.external

Please can you try to apply the changes to the classes in org.elasticsearch.xpack.inference.services.voyageai. It may be easier to close this PR and open another with the last few commits from this PR applied - e778e36 and b7351e7?

Thanks

fzowl and others added 7 commits November 3, 2025 11:58
* Fix irregular spaces

* Update analysis-keyword-repeat-tokenfilter.md

* Update search-suggesters.md

* Update search-profile.md
- Add multimodal embeddings support with VoyageAIMultimodalEmbeddings* classes
- Add contextual embeddings support with VoyageAIContextualEmbeddings* classes
- Refactor text embeddings: move to embeddings/text subdirectory for better organization
- Remove old embedding classes from embeddings root directory
- Update action creators and visitors to handle new embedding types
- Update imports in InferenceNamedWriteablesProvider
- Add corresponding request/response entities for multimodal and contextual embeddings
- Update unit tests for all new and modified components
- Move text embeddings test files to text/ subdirectory
- Fix package declarations in test files
- Update VoyageAIEmbeddingsResponseEntityTests to use correct API methods
- Change .service() to .getService() and add .getConfigurations()
- NOTE: Additional test import fixes needed for full compilation
- Update all VoyageAI test imports to use embeddings/text package
- Fix VoyageAIMultimodalEmbeddingsTaskSettings constructor calls (add truncation param)
- Fix VoyageAIMultimodalEmbeddingsServiceSettings constructor calls (add embeddingType param)
- Update test files: VoyageAIServiceTests, VoyageAIActionCreatorTests, VoyageAIEmbeddingsActionTests
- Update test files: VoyageAIEmbeddingsRequestTests, VoyageAIRequestTests
- Update test files: VoyageAIMultimodalEmbeddingsTaskSettingsTests, VoyageAIMultimodalEmbeddingsModelTests
- Update test files: VoyageAIMultimodalEmbeddingsRequestTests

Remaining: 3 compilation errors to fix
- Fix VoyageAIMultimodalEmbeddingsModel constructor call in response tests
- Fix VoyageAIServiceTests multimodal model creation (add taskSettings param)
- Fix VoyageAIContextualEmbeddingsTaskSettings ambiguous constructor
- Cast SecretSettings to DefaultSecretSettings where required
@fzowl fzowl force-pushed the update_the_voyageai_integration branch from cbdf827 to 17e88d6 Compare November 3, 2025 13:07
@fzowl
Copy link
Contributor Author

fzowl commented Nov 3, 2025

Closing this PR as we've cleaned up the integration in the voyageai-integration-v2 branch. Opening a new PR with the clean changes.

1 similar comment
@fzowl
Copy link
Contributor Author

fzowl commented Nov 3, 2025

Closing this PR as we've cleaned up the integration in the voyageai-integration-v2 branch. Opening a new PR with the clean changes.

@fzowl fzowl closed this Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team :ml Machine learning Team:ML Meta label for the ML team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants