Skip to content

Commit 71503b9

Browse files
committed
fixed conflicts
2 parents 5e65044 + 774c20b commit 71503b9

File tree

35 files changed

+426
-416
lines changed

35 files changed

+426
-416
lines changed

docs/reference/elasticsearch/mapping-reference/semantic-text.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,29 @@ PUT test-index
486486
}
487487
```
488488

489+
## Troubleshooting semantic_text fields [troubleshooting-semantic-text-fields]
490+
491+
If you want to verify that your embeddings look correct, you can view the
492+
inference data that `semantic_text` typically hides using `fields`.
493+
494+
```console
495+
POST test-index/_search
496+
{
497+
"query": {
498+
"match": {
499+
"my_semantic_field": "Which country is Paris in?"
500+
},
501+
"fields": [
502+
"_inference_fields"
503+
]
504+
}
505+
}
506+
```
507+
508+
This will return verbose chunked embeddings content that is used to perform
509+
semantic search for `semantic_text` fields.
510+
511+
489512
## Limitations [limitations]
490513

491514
`semantic_text` field types have the following limitations:

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,17 @@ static RoleDescriptor kibanaSystem(String name) {
174174
.privileges("write", "delete", "create_index")
175175
.allowRestrictedIndices(true)
176176
.build(),
177+
<<<<<<< HEAD
177178
// Knowledge base. Fleet creates, manages, and uses this index to store knowledge base documents to be consumed by AI assistants.
178179
RoleDescriptor.IndicesPrivileges.builder()
179180
.indices(".integration_knowledge*")
180181
.privileges("read", "write", "create_index")
181182
.build(),
183+
=======
184+
// Knowledge base. Fleet creates, manages, and uses this index to store knowledge base documents to be consumed by AI
185+
// assistants.
186+
RoleDescriptor.IndicesPrivileges.builder().indices(".integration_knowledge*").privileges("all").build(),
187+
>>>>>>> 774c20bab17bd45c93886bdda6c3eb38d348e99a
182188
// Other Fleet indices. Kibana reads and writes to these indices to manage
183189
// Elastic Agents.
184190
RoleDescriptor.IndicesPrivileges.builder()
@@ -333,8 +339,6 @@ static RoleDescriptor kibanaSystem(String name) {
333339
"indices:admin/data_stream/lifecycle/put"
334340
)
335341
.build(),
336-
// Read datasets for auto install content packages feature in Fleet
337-
RoleDescriptor.IndicesPrivileges.builder().indices("logs-*", "metrics-*", "traces-*").privileges("read").build(),
338342
// Endpoint specific action responses. Kibana reads and writes (for third party
339343
// agents) to the index to display action responses to the user.
340344
// `create_index`: is necessary in order to ensure that the DOT datastream index is

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,10 +1422,7 @@ public void testKibanaSystemRole() {
14221422
|| indexName.startsWith(".logs-endpoint.actions-")
14231423
|| indexName.startsWith(".logs-endpoint.action.responses-")
14241424
|| indexName.startsWith(".logs-endpoint.heartbeat-")
1425-
|| indexName.startsWith(".logs-osquery_manager.actions-")
1426-
|| indexName.startsWith("logs-")
1427-
|| indexName.startsWith("metrics-")
1428-
|| indexName.startsWith("traces-");
1425+
|| indexName.startsWith(".logs-osquery_manager.actions-");
14291426
assertThat(
14301427
kibanaRole.indices().allowedIndicesMatcher(TransportGetAction.TYPE.name()).test(indexAbstraction),
14311428
is(isAlsoReadIndex)

x-pack/plugin/esql/compute/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -900,28 +900,28 @@ tasks.named('stringTemplates').configure {
900900
}
901901

902902
// TODO: add {value}_over_time for other types: boolean, bytes_refs
903-
File valueOverTimeAggregatorInputFile = file("src/main/java/org/elasticsearch/compute/aggregation/X-ValueOverTimeAggregator.java.st")
903+
File valueByTimestampAggregatorInputFile = file("src/main/java/org/elasticsearch/compute/aggregation/X-ValueByTimestampAggregator.java.st")
904904
["First", "Last"].forEach { Occurrence ->
905905
{
906906
template {
907907
it.properties = addOccurrence(intProperties, Occurrence)
908-
it.inputFile = valueOverTimeAggregatorInputFile
909-
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}OverTimeIntAggregator.java"
908+
it.inputFile = valueByTimestampAggregatorInputFile
909+
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}IntByTimestampAggregator.java"
910910
}
911911
template {
912912
it.properties = addOccurrence(longProperties, Occurrence)
913-
it.inputFile = valueOverTimeAggregatorInputFile
914-
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}OverTimeLongAggregator.java"
913+
it.inputFile = valueByTimestampAggregatorInputFile
914+
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}LongByTimestampAggregator.java"
915915
}
916916
template {
917917
it.properties = addOccurrence(floatProperties, Occurrence)
918-
it.inputFile = valueOverTimeAggregatorInputFile
919-
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}OverTimeFloatAggregator.java"
918+
it.inputFile = valueByTimestampAggregatorInputFile
919+
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}FloatByTimestampAggregator.java"
920920
}
921921
template {
922922
it.properties = addOccurrence(doubleProperties, Occurrence)
923-
it.inputFile = valueOverTimeAggregatorInputFile
924-
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}OverTimeDoubleAggregator.java"
923+
it.inputFile = valueByTimestampAggregatorInputFile
924+
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}DoubleByTimestampAggregator.java"
925925
}
926926
}
927927
}
Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)