Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
854bc26
Added inner hits builder to semantic query
Mikep86 Aug 12, 2024
733cae8
Pass inner hit builder to nested query builder
Mikep86 Aug 12, 2024
ada0b3a
Added InnerChunkBuilder
Mikep86 Aug 12, 2024
a8fac5f
Update InnerChunkBuilder to not inherit from InnerHitBuilder
Mikep86 Aug 12, 2024
557dc9a
Hard-code name in InnerChunkBuilder
Mikep86 Aug 12, 2024
8e94854
Updated semantic query builder tests
Mikep86 Aug 12, 2024
a860e69
Added YAML tests
Mikep86 Aug 13, 2024
dac2bd4
Resolved TODOs
Mikep86 Aug 13, 2024
dd67452
Update docs/changelog/111834.yaml
Mikep86 Aug 13, 2024
9d5fa1d
Fixed changelog
Mikep86 Aug 13, 2024
639adad
Set inner chunk builder name based on field name
Mikep86 Aug 13, 2024
4b8a62b
Add YAML test for querying multiple semantic text fields with inner c…
Mikep86 Aug 13, 2024
9311cc1
Fix YAML tests
Mikep86 Aug 13, 2024
df127b9
Rename inner_chunks to chunks
Mikep86 Aug 13, 2024
202314c
Fail the semantic query request if the transport version is not compa…
Mikep86 Aug 13, 2024
17e8edb
YAML test updates
Mikep86 Aug 13, 2024
91add83
Exclude embeddings from inner hit _source output
Mikep86 Aug 14, 2024
ae898fd
Updated YAML tests to check that embeddings are not in inner hits _so…
Mikep86 Aug 14, 2024
23d3344
Updated semantic query documentation
Mikep86 Aug 14, 2024
43b0a7f
Fix link
Mikep86 Aug 14, 2024
91f21f9
Merge branch 'main' into semantic-query_inner-hits
Mikep86 Aug 14, 2024
a5a03d9
Docs adjustments
Mikep86 Aug 14, 2024
1982eda
Fix headings
Mikep86 Aug 14, 2024
b0244f1
Merge branch 'main' into semantic-query_inner-hits
Mikep86 Aug 14, 2024
a5ee5d8
Merge branch 'main' into semantic-query_inner-hits
Mikep86 Sep 24, 2024
e28e72f
Added cluster feature for semantic text inner hits support
Mikep86 Sep 24, 2024
ee95981
Merge branch 'main' into semantic-query_inner-hits
Mikep86 Sep 24, 2024
8c73841
Rename chunks param to inner_hits
Mikep86 Sep 25, 2024
b779e29
Update documentation to address feedback and rename chunks to inner_hits
Mikep86 Sep 25, 2024
9f42742
Added reason for skipping doc tests
Mikep86 Sep 25, 2024
a19fd6e
Added "Query semantic text field in object with inner hits" YAML test
Mikep86 Sep 25, 2024
bb95eee
Merge branch 'main' into semantic-query_inner-hits
Mikep86 Sep 25, 2024
f62649d
Merge branch 'main' into semantic-query_inner-hits
Mikep86 Sep 25, 2024
3cbd7a5
PR feedback
Mikep86 Sep 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docs/reference/query-dsl/semantic-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ For example, if you have a document that covers varying topics:
------------------------------------------------------------
POST my-index/_doc/lake_tahoe
{
"inference_field": [ "Lake Tahoe is the largest alpine lake in North America", "When hiking in the area, please be on alert for bears" ]
"inference_field": [
"Lake Tahoe is the largest alpine lake in North America",
"When hiking in the area, please be on alert for bears"
]
}
------------------------------------------------------------
// TEST[skip:TBD]
Expand Down Expand Up @@ -318,7 +321,7 @@ GET my-index/_search

[discrete]
[[advanced-search]]
=== Advanced search on `semantic_text` fields
==== Advanced search on `semantic_text` fields

The `semantic` query uses default settings for searching on `semantic_text` fields for ease of use.
If you want to fine-tune a search on a `semantic_text` field, you need to know the task type used by the `inference_id` configured in `semantic_text`.
Expand All @@ -332,7 +335,7 @@ on a `semantic_text` field, it is not supported to use the `semantic_query` on a

[discrete]
[[search-sparse-inference]]
==== Search with `sparse_embedding` inference
===== Search with `sparse_embedding` inference

When the {infer} endpoint uses a `sparse_embedding` model, you can use a <<query-dsl-sparse-vector-query,`sparse_vector` query>> on a <<semantic-text,`semantic_text`>> field in the following way:

Expand Down Expand Up @@ -361,7 +364,7 @@ You can customize the `sparse_vector` query to include specific settings, like <

[discrete]
[[search-text-inferece]]
==== Search with `text_embedding` inference
===== Search with `text_embedding` inference

When the {infer} endpoint uses a `text_embedding` model, you can use a <<query-dsl-knn-query,`knn` query>> on a `semantic_text` field in the following way:

Expand Down