Skip to content

Commit

Permalink
Change name and kind to be optional, in case the investigated resourc…
Browse files Browse the repository at this point in the history
…e doesn't have it (#1508)
  • Loading branch information
arikalon1 authored Jul 24, 2024
1 parent 96472f2 commit 865eb6a
Showing 1 changed file with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions docs/configuration/ai-analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@ Configuration

In order to include ``Holmes GPT`` with you Robusta installation, add the following to your ``generated_values.yaml``

In the examples below, we're assuming you created a Kubernetes ``secret`` named ``holmes-secrets`` to store sensitive variables.

To use Open AI (this is the default llm):

.. code-block:: yaml
enableHolmesGPT: true
holmes:
openaiKey: <YOUR OPEN AI KEY>
additionalEnvVars:
- name: MODEL
value: gpt-4o
- name: OPENAI_API_KEY
valueFrom:
secretKeyRef:
name: holmes-secrets
key: openAiKey
To use Azure Open AI:
Expand All @@ -41,6 +50,39 @@ To use Azure Open AI:
enableHolmesGPT: true
holmes:
llm: azure
azureOpenaiKey: <YOUR AZURE OPEN AI KEY>
azureEndpoint: <YOUR AZURE OPEN AI ENDPOINT> # For example: ‘https://some-azure-org.openai.azure.com/openai/deployments/gpt4-1106/chat/completions?api-version=2023-07-01-preview’
additionalEnvVars:
- name: MODEL
value: azure/my-azure-deployment # the name of your azure deployment
- name: AZURE_API_VERSION
value: 2024-02-15-preview
- name: AZURE_API_BASE
value: https://my-org.openai.azure.com/ # base url of you azure deployment
- name: AZURE_API_KEY
valueFrom:
secretKeyRef:
name: holmes-secrets
key: azureOpenAiKey
To use AWS Bedrock:

.. code-block:: yaml
enableHolmesGPT: true
holmes:
enablePostProcessing: true
additionalEnvVars:
- name: MODEL
value: bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0 # your bedrock model
- name: AWS_REGION_NAME
value: us-east-1
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: holmes-secrets
key: awsAccessKeyId
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: holmes-secrets
key: awsSecretAccessKey

0 comments on commit 865eb6a

Please sign in to comment.