forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-consistent-secure-settings-hash
- Loading branch information
Showing
149 changed files
with
4,046 additions
and
1,878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 110593 | ||
summary: "[ES|QL] add tests for stats by constant" | ||
area: ES|QL | ||
type: bug | ||
issues: | ||
- 105383 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 110677 | ||
summary: Add validation for synthetic source mode in logs mode indices | ||
area: Logs | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 110718 | ||
summary: "ESQL: Add boolean support to TOP aggregation" | ||
area: ES|QL | ||
type: feature | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pr: 110793 | ||
summary: Fix for union-types for multiple columns with the same name | ||
area: ES|QL | ||
type: bug | ||
issues: | ||
- 110490 | ||
- 109916 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
[[infer-service-anthropic]] | ||
=== Anthropic {infer} service | ||
|
||
Creates an {infer} endpoint to perform an {infer} task with the `anthropic` service. | ||
|
||
|
||
[discrete] | ||
[[infer-service-anthropic-api-request]] | ||
==== {api-request-title} | ||
|
||
`PUT /_inference/<task_type>/<inference_id>` | ||
|
||
[discrete] | ||
[[infer-service-anthropic-api-path-params]] | ||
==== {api-path-parms-title} | ||
|
||
`<inference_id>`:: | ||
(Required, string) | ||
include::inference-shared.asciidoc[tag=inference-id] | ||
|
||
`<task_type>`:: | ||
(Required, string) | ||
include::inference-shared.asciidoc[tag=task-type] | ||
+ | ||
-- | ||
Available task types: | ||
|
||
* `completion` | ||
-- | ||
|
||
[discrete] | ||
[[infer-service-anthropic-api-request-body]] | ||
==== {api-request-body-title} | ||
|
||
`service`:: | ||
(Required, string) | ||
The type of service supported for the specified task type. In this case, | ||
`anthropic`. | ||
|
||
`service_settings`:: | ||
(Required, object) | ||
include::inference-shared.asciidoc[tag=service-settings] | ||
+ | ||
-- | ||
These settings are specific to the `anthropic` service. | ||
-- | ||
|
||
`api_key`::: | ||
(Required, string) | ||
A valid API key for the Anthropic API. | ||
|
||
`model_id`::: | ||
(Required, string) | ||
The name of the model to use for the {infer} task. | ||
You can find the supported models at https://docs.anthropic.com/en/docs/about-claude/models#model-names[Anthropic models]. | ||
|
||
`rate_limit`::: | ||
(Optional, object) | ||
By default, the `anthropic` service sets the number of requests allowed per minute to `50`. | ||
This helps to minimize the number of rate limit errors returned from Anthropic. | ||
To modify this, set the `requests_per_minute` setting of this object in your service settings: | ||
+ | ||
-- | ||
include::inference-shared.asciidoc[tag=request-per-minute-example] | ||
-- | ||
|
||
`task_settings`:: | ||
(Required, object) | ||
include::inference-shared.asciidoc[tag=task-settings] | ||
+ | ||
.`task_settings` for the `completion` task type | ||
[%collapsible%closed] | ||
===== | ||
`max_tokens`::: | ||
(Required, integer) | ||
The maximum number of tokens to generate before stopping. | ||
`temperature`::: | ||
(Optional, float) | ||
The amount of randomness injected into the response. | ||
+ | ||
For more details about the supported range, see the https://docs.anthropic.com/en/api/messages[Anthropic messages API]. | ||
`top_k`::: | ||
(Optional, integer) | ||
Specifies to only sample from the top K options for each subsequent token. | ||
+ | ||
Recommended for advanced use cases only. You usually only need to use `temperature`. | ||
+ | ||
For more details, see the https://docs.anthropic.com/en/api/messages[Anthropic messages API]. | ||
`top_p`::: | ||
(Optional, float) | ||
Specifies to use Anthropic's nucleus sampling. | ||
+ | ||
In nucleus sampling, Anthropic computes the cumulative distribution over all the options for each subsequent token in decreasing probability order and cut it off once it reaches a particular probability specified by `top_p`. You should either alter `temperature` or `top_p`, but not both. | ||
+ | ||
Recommended for advanced use cases only. You usually only need to use `temperature`. | ||
+ | ||
For more details, see the https://docs.anthropic.com/en/api/messages[Anthropic messages API]. | ||
===== | ||
|
||
[discrete] | ||
[[inference-example-anthropic]] | ||
==== Anthropic service example | ||
|
||
The following example shows how to create an {infer} endpoint called | ||
`anthropic_completion` to perform a `completion` task type. | ||
|
||
[source,console] | ||
------------------------------------------------------------ | ||
PUT _inference/completion/anthropic_completion | ||
{ | ||
"service": "anthropic", | ||
"service_settings": { | ||
"api_key": "<api_key>", | ||
"model_id": "<model_id>" | ||
}, | ||
"task_settings": { | ||
"max_tokens": 1024 | ||
} | ||
} | ||
------------------------------------------------------------ | ||
// TEST[skip:TBD] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.