You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/search/embeddings_reference/embeddings_reference.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,17 @@ Embedding queries do not support criteria, Sort Clauses, facet builders, or spel
16
16
17
17
## Embedding
18
18
19
-
-[`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 semantic input used for similarity search.
20
-
Depending on the embedding provider, it can encapsulate text or vector data
19
+
-[`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
20
+
for similarity search.
21
+
It stores embedding values as float arrays, while providers generate those vectors from text input
21
22
22
23
## Embedding providers
23
24
24
25
Embedding providers generate vector representations for inputs.
26
+
Out of the box, embedding search integration is provided for TaxonomyEmbedding.
27
+
If you use a custom embedding value type, implement matching embedding
28
+
visitors for your search engine (Solr/Elasticsearch).
29
+
Otherwise, query execution may fail with "No visitor available".
Copy file name to clipboardExpand all lines: docs/search/search_api.md
+71-41Lines changed: 71 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -371,7 +371,9 @@ Instead of comparing keywords, the system compares vectors that represent the se
371
371
372
372
!!! note "Taxonomy suggestions"
373
373
374
-
Embedding queries have been introduced primarily to support the [Taxonomy suggestions](taxonomy.md#taxonomy-suggestions) feature but you can use them in other scenarios.
374
+
Embedding queries have been introduced primarily to support the [Taxonomy suggestions](taxonomy.md#taxonomy-suggestions) feature, therefore embedding search integration is provided for `TaxonomyEmbedding`.
375
+
To use them in other scenarios that use a custom embedding value type, implement matching embedding
376
+
visitors for your search engine.
375
377
376
378
Searching with embeddings can be combined with filtering, which allows the semantic search results to be constrained by content type, location, permissions, or other criteria.
377
379
@@ -387,71 +389,99 @@ The following components are used to build and validate embedding-based queries:
A fluent builder for constructing `EmbeddingQuery` instances.
390
-
It enforces required parameters and integrates embedding queries with the search query pipeline
392
+
It helps construct queries consistently and integrates embedding queries with the search query pipeline, but you must still provide the required embedding value
0 commit comments