Skip to content

Commit 37e9b9f

Browse files
committed
Adds Garrett's query for retrieving 8.15 knowledge
1 parent 13e2dc0 commit 37e9b9f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/AI-for-security/knowledge-base.asciidoc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,27 @@
33

44
AI Assistant's knowledge base feature enables it to recall specific documents and other specified information, and to use it as context when responding to your queries. This page describes how to enable and add information to knowledge base.
55

6-
NOTE: When you upgrade from {elastic-sec} version 8.15 to a newer version, information previously stored by AI Assistant will be lost.
6+
NOTE: When you upgrade from {elastic-sec} version 8.15 to a newer version, information previously stored by AI Assistant will be lost. Before upgrade, you can retrieve all stored knowledge using the following query:
7+
8+
.Query
9+
[%collapsible]
10+
====
11+
GET /.kibana-elastic-ai-assistant-knowledge-base-*/_search
12+
{
13+
"size": 10000,
14+
"query": {
15+
"bool": {
16+
"must_not": [
17+
{
18+
"term": {
19+
"metadata.kbResource": "esql"
20+
}
21+
}
22+
]
23+
}
24+
}
25+
}
26+
====
727

828
.Requirements
929
[sidebar]

0 commit comments

Comments
 (0)