-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Esql text embedding function #134573
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
Esql text embedding function #134573
Conversation
|
Hi @afoucret, I've created a changelog YAML for you. |
🔍 Preview links for changed docs |
ℹ️ Important: Docs version tagging👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version. We use applies_to tags to mark version-specific features and changes. Expand for a quick overviewWhen to use applies_to tags:✅ At the page level to indicate which products/deployments the content applies to (mandatory) What NOT to do:❌ Don't remove or replace information that applies to an older version 🤔 Need help?
|
…esql_text_embedding_function
cc6aff8 to
44ace1a
Compare
b61da48 to
cee2935
Compare
cb8d640 to
9d7a23f
Compare
…esql_text_embedding_function
|
Hi @afoucret, I've created a changelog YAML for you. |
9de3b76 to
75ed988
Compare
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
|
Hi @afoucret, I've created a changelog YAML for you. |
|
Changes have been merged through several PR. |
This PR introduces a new TEXT_EMBEDDING function to ES|QL, enabling users to generate dense vector embeddings for text directly within their queries.
Key Changes
Introduction of the
TEXT_EMBEDDINGFunction:TEXT_EMBEDDING, to the ES|QL query language.InferenceFunctionbase class to support inference-based functions likeTEXT_EMBEDDING.Enhancements to the Inference Framework:
TextEmbeddingInferenceOperatorto execute text embedding inference functionInferenceFunctionEvaluatorfor constant folding and optimization of inference functions during query executionBulkInferenceRunnernow use theSEARCHthread pool to answer (required to use it in the pre optimizer)Logical plan analysis
Analyzerto resolve inference functions and validate compatibility with inference endpoints.Integration with Logical Plan Optimization:
LogicalPlanPreOptimizerto include rules for folding inference functions.How to use it
The TEXT_EMBEDDING function can be used in the EVAL clause to generate embeddings or directly within the WHERE clause with the KNN function for semantic search.
Example 1: Generating embeddings
Example 2: Semantic search with KNN
This work is part of #131079
TODO: