-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a18f39
commit 6c9a3fc
Showing
4 changed files
with
42 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1661,4 +1661,4 @@ | |
"yargs": "^15.4.1", | ||
"yarn-deduplicate": "^6.0.2" | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
x-pack/plugins/observability_ai_assistant/scripts/evaluation/README.md
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,37 @@ | ||
# Observability AI Assistant Evaluation Framework | ||
|
||
## Overview | ||
|
||
This tool is developed for our team working on the Elastic Observability platform, specifically focusing on evaluating the Observability AI Assistant. It simplifies scripting and evaluating various scenarios with the Large Language Model (LLM) integration. | ||
|
||
## Setup requirements | ||
|
||
- An Elasticsearch instance | ||
- A Kibana instance | ||
- At least one .gen-ai connector set up | ||
|
||
## Running evaluations | ||
|
||
Run the tool using: | ||
|
||
`$ node x-pack/plugins/observability_ai_assistant/scripts/evaluation/index.js` | ||
|
||
This will evaluate all existing scenarios, and write the evaluation results to the terminal. | ||
|
||
### Configuration | ||
|
||
#### Kibana and Elasticsearch | ||
|
||
By default, the tool will look for a Kibana instance running locally (at `http://localhost:5601`, which is the default address for running Kibana in development mode). It will also attempt to read the Kibana config file for the Elasticsearch address & credentials. If you want to override these settings, use `--kibana` and `--es`. Only basic auth is supported, e.g. `--kibana http://username:password@localhost:5601`. | ||
|
||
#### Connector | ||
|
||
Use `--connectorId` to specify a `.gen-ai` connector to use. If none are given, it will prompt you to select a connector based on the ones that are available. If only a single `.gen-ai` connector is found, it will be used without prompting. | ||
|
||
#### Persisting conversations | ||
|
||
By default, completed conversations are not persisted. If you do want to persist them, for instance for reviewing purposes, set the `--persist` flag to store them. This will also generate a clickable link in the output of the evaluation that takes you to the conversation. | ||
|
||
If you want to clear conversations on startup, use the `--clear` flag. This only works when `--persist` is enabled. | ||
|
||
When storing conversations, the name of the scenario is used as a title. Set the `--autoTitle` flag to have the LLM generate a title for you. |
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 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