-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Add bit vector support to semantic text #123187
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
Conversation
Hi @Mikep86, I've created a changelog YAML for you. |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Pinging @elastic/search-eng (Team:SearchOrg) |
Pinging @elastic/search-relevance (Team:Search - Relevance) |
@elasticmachine update branch |
server/src/main/java/org/elasticsearch/inference/MinimalServiceSettings.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/inference/MinimalServiceSettings.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/elasticsearch/xpack/inference/mock/TestDenseInferenceServiceExtension.java
Show resolved
Hide resolved
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.
LGTM
...src/main/java/org/elasticsearch/xpack/inference/mock/TestDenseInferenceServiceExtension.java
Show resolved
Hide resolved
@elasticmachine update branch |
@elasticmachine update branch |
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.
LGTM!
@@ -646,7 +644,7 @@ private static class StaticModel extends TestModel { | |||
} | |||
|
|||
public static StaticModel createRandomInstance() { | |||
TestModel testModel = randomModel(randomFrom(TaskType.TEXT_EMBEDDING, TaskType.SPARSE_EMBEDDING)); | |||
TestModel testModel = TestModel.createRandomInstance(); |
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.
Nice test cleanup here 👍
💚 Backport successful
|
Adds bit vector support to the
semantic_text
field mapping andsemantic
query. The changes to production code are minimal, nearly all of the changes are to test code to ensure that we have good coverage with inference services that generate bit vectors.