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

Add semantic field mapper. #1225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bzhangam
Copy link
Contributor

@bzhangam bzhangam commented Mar 11, 2025

Description

Add semantic field mapper to support the semantic field type.

Test will fail until this PR is merged into core.

Related Issues

Resolves #[803]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.


protected Builder(String name) {
super(name);
semanticFieldTypeFactory = new SemanticFieldTypeFactory();
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's better to inject it from outside, and even better if we can make it reusable.

protected Builder(String name, SemanticFieldTypeFactory semanticFieldTypeFactory) {
   ...
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Copy link
Collaborator

@heemin32 heemin32 left a comment

Choose a reason for hiding this comment

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

LGTM. Please fix build failure before merge.

@bzhangam bzhangam reopened this Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancements Increases software capabilities beyond original client specifications neural-search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PROPOSAL] Neural Search field type
6 participants