-
Notifications
You must be signed in to change notification settings - Fork 82
IBX-9846: Describe Embeddings search API #3029
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
base: 5.0
Are you sure you want to change the base?
Changes from all commits
d5b4419
6fb06d4
b4e31da
d018f87
51570c0
c12ae0e
6512ff2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
| month_change: true | ||
| description: Embedding queries, embedding configuration, providers, and embedding search fields | ||
| --- | ||
|
|
||
| # Embeddings search reference | ||
|
|
||
| Embeddings provide vector representations of content or text, enabling semantic similarity search. | ||
| Foundational abstractions are provided for embedding-based search, while embedding providers generate vector representations. | ||
|
Check notice on line 9 in docs/search/embeddings_reference/embeddings_reference.md
|
||
|
|
||
| ## EmbeddingQuery | ||
|
Check notice on line 11 in docs/search/embeddings_reference/embeddings_reference.md
|
||
|
|
||
| - [`Ibexa\Contracts\Core\Repository\Values\Content\EmbeddingQuery`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-EmbeddingQuery.html): Represents a semantic similarity search request. | ||
| It encapsulates an [Embedding](#embedding) instance and supports filtering, pagination, aggregations, and result counting through the same API as standard content queries. | ||
| Embedding queries do not support criteria, Sort Clauses, facet builders, or spellcheck | ||
|
|
||
| ## Embedding | ||
|
|
||
| - [`Ibexa\Contracts\Core\Repository\Values\Content\Query\Embedding`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Embedding.html): Represents the vector input used | ||
| for similarity search. | ||
| It stores embedding values as float arrays, while providers generate those vectors from text input | ||
|
|
||
| ## Embedding providers | ||
|
|
||
| Embedding providers generate vector representations for inputs. | ||
| Out of the box, embedding search integration is provided for TaxonomyEmbedding. | ||
|
Check notice on line 26 in docs/search/embeddings_reference/embeddings_reference.md
|
||
| If you use a custom embedding value type, implement matching embedding | ||
| visitors for your search engine (Solr/Elasticsearch). | ||
| Otherwise, query execution may fail with "No visitor available". | ||
|
|
||
| ### Provider contracts | ||
|
|
||
| - [`Ibexa\Contracts\Core\Search\Embedding\EmbeddingProviderInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Search-Embedding-EmbeddingProviderInterface.html): Generates embeddings | ||
|
|
||
| - [`Ibexa\Contracts\Core\Search\Embedding\EmbeddingProviderRegistryInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Search-Embedding-EmbeddingProviderRegistryInterface.html): Lists available embedding providers | ||
|
|
||
| - [`Ibexa\Contracts\Core\Search\Embedding\EmbeddingProviderResolverInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Search-Embedding-EmbeddingProviderResolverInterface.html): Resolves the provider for a given embedding configuration | ||
|
|
||
| ## Embedding fields | ||
|
|
||
| - [`Ibexa\Contracts\Core\Search\FieldType\EmbeddingFieldFactory`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Search-FieldType-EmbeddingFieldFactory.html): Creates dedicated search fields that store embedding vectors | ||
|
|
||
| ## Validation | ||
|
|
||
| - [`Ibexa\Contracts\Core\Repository\Values\Content\QueryValidatorInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-QueryValidatorInterface.html): Validates embedding queries before they reach the search engine | ||
|
|
||
| !!! note "Taxonomy embeddings" | ||
|
|
||
| Searching for embeddings can be used to support the [Taxonomy suggestions](taxonomy.md#taxonomy-suggestions) feature. | ||
| The [`Ibexa\Contracts\Taxonomy\Search\Query\Value\TaxonomyEmbedding`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Taxonomy-Search-Query-Value-TaxonomyEmbedding.html) allows embedding queries to target taxonomy data. | ||
Uh oh!
There was an error while loading. Please reload this page.