Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.16] Adds LLM matrix for OSS models (backport #6424) #6461

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions docs/AI-for-security/connect-to-byo.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ image::images/lms-studio-arch-diagram.png[Architecture diagram for this guide]

NOTE: For testing, you can use alternatives to Nginx such as https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/overview[Azure Dev Tunnels] or https://ngrok.com/[Ngrok], but using Nginx makes it easy to collect additional telemetry and monitor its status by using Elastic's native Nginx integration. While this example uses cloud infrastructure, it could also be replicated locally without an internet connection.

NOTE: For information about the performance of open-source models on tasks within {elastic-sec}, refer to the <<llm-performance-matrix,LLM performance matrix>>.

[discrete]
== Configure your reverse proxy

Expand Down
42 changes: 31 additions & 11 deletions docs/AI-for-security/llm-performance-matrix.asciidoc
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
[[llm-performance-matrix]]
= Large language model performance matrix

This table describes the performance of various large language models (LLMs) for different use cases in {elastic-sec}, based on our internal testing. To learn more about these use cases, refer to <<attack-discovery, Attack discovery>> or <<security-assistant, AI Assistant>>.
This page describes the performance of various large language models (LLMs) for different use cases in {elastic-sec}, based on our internal testing. To learn more about these use cases, refer to <<attack-discovery, Attack discovery>> or <<security-assistant, AI Assistant>>.

[cols="1,1,1,1,1,1,1,1,1,1", options="header"]
NOTE: `Excellent` is the best rating, followed by `Great`, then by `Good`, and finally by `Poor`.

[discrete]
== Proprietary models
Models from third-party LLM providers.

[cols="1,1,1,1,1,1,1", options="header"]
|===
| *Feature* | | *Assistant - General* | *Assistant - {esql} generation* | *Assistant - Alert questions* | *Assistant - Knowledge retrieval* | *Attack Discovery*
| *Model* |*Claude 3: Opus* | Excellent | Excellent | Excellent | Good | Great
| |*Claude 3.5: Sonnet v2*| Excellent | Excellent | Excellent | Excellent | Great
| |*Claude 3.5: Sonnet* | Excellent| Excellent | Excellent | Excellent | Excellent
| |*Claude 3.5: Haiku* | Excellent| Excellent | Excellent | Excellent | Poor
| |*Claude 3: Haiku* | Excellent| Excellent | Excellent | Excellent | Poor
| |*GPT-4o* | Excellent| Excellent | Excellent | Excellent | Great
| |*GPT-4o-mini* | Excellent| Great | Great | Great | Poor
| |**Gemini 1.5 Pro 002** | Excellent| Excellent | Excellent | Excellent | Excellent
| |**Gemini 1.5 Flash 002**|Excellent| Poor | Good | Excellent | Poor
|===
| *Feature* | *Model* | | | | | | | |
| | *Claude 3: Opus*| *Claude 3.5: Sonnet v2* | *Claude 3.5: Sonnet* | *Claude 3.5: Haiku*| *Claude 3: Haiku* | *GPT-4o* | *GPT-4o-mini* | **Gemini 1.5 Pro 002** | **Gemini 1.5 Flash 002**
| *Assistant - General* | Excellent | Excellent | Excellent | Excellent | Excellent | Excellent | Excellent | Excellent | Excellent
| *Assistant - {esql} generation*| Excellent | Excellent | Excellent | Excellent | Excellent | Excellent | Great | Excellent | Poor
| *Assistant - Alert questions* | Excellent | Excellent | Excellent | Excellent | Excellent | Excellent | Great | Excellent | Good
| *Assistant - Knowledge retrieval* | Good | Excellent | Excellent | Excellent | Excellent | Excellent | Great | Excellent | Excellent
| *Attack Discovery* | Great | Great | Excellent | Poor | Poor | Great | Poor | Excellent | Poor

[discrete]
== Open-source models
Models you can <<connect-to-byo-llm, deploy yourself>>.

[cols="1,1,1,1,1,1,1", options="header"]
|===

NOTE: `Excellent` is the best rating, followed by `Great`, then by `Good`, and finally by `Poor`.
| *Feature* | | *Assistant - General* | *Assistant - {esql} generation* | *Assistant - Alert questions* | *Assistant - Knowledge retrieval* | *Attack Discovery*
| *Model* | *Mistral Nemo* | Good | Good | Great | Good | Poor
| | *LLama 3.2* | Good | Poor | Good | Poor | Poor
| | *LLama 3.1 405b* | Good | Great | Good | Good| Poor
| | *LLama 3.1 70b* | Good | Good | Poor | Poor | Poor
|===