Skip to main content
PATCH
/
v2
/
projects
/
{project_id}
/
log_streams
/
{log_stream_id}
/
metric_settings
Update Metric Settings
curl --request PATCH \
  --url https://api.galileo.ai/v2/projects/{project_id}/log_streams/{log_stream_id}/metric_settings \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '
{
  "scorers": [
    {
      "id": "<string>",
      "scorer_type": "llm",
      "model_name": "<string>",
      "num_judges": 123,
      "filters": [
        {
          "value": "<string>",
          "operator": "eq",
          "name": "node_name",
          "filter_type": "string",
          "case_sensitive": true
        }
      ],
      "scoreable_node_types": [
        "<string>"
      ],
      "cot_enabled": true,
      "output_type": "boolean",
      "input_type": "basic",
      "name": "<string>",
      "model_type": "slm",
      "scorer_version": {
        "id": "<string>",
        "version": 123,
        "scorer_id": "<string>",
        "generated_scorer": {
          "id": "<string>",
          "name": "<string>",
          "chain_poll_template": {
            "template": "<string>",
            "metric_system_prompt": "<string>",
            "metric_description": "<string>",
            "value_field_name": "rating",
            "explanation_field_name": "explanation",
            "metric_few_shot_examples": [
              {
                "generation_prompt_and_response": "<string>",
                "evaluating_response": "<string>"
              }
            ],
            "response_schema": {}
          },
          "instructions": "<string>",
          "user_prompt": "<string>"
        },
        "registered_scorer": {
          "id": "<string>",
          "name": "<string>",
          "score_type": "<string>"
        },
        "finetuned_scorer": {
          "id": "<string>",
          "name": "<string>",
          "lora_task_id": 123,
          "prompt": "<string>",
          "luna_input_type": "span",
          "luna_output_type": "float",
          "class_name_to_vocab_ix": {},
          "executor": "action_completion_luna"
        },
        "model_name": "<string>",
        "num_judges": 123,
        "scoreable_node_types": [
          "<string>"
        ],
        "cot_enabled": true,
        "output_type": "boolean",
        "input_type": "basic"
      }
    }
  ],
  "segment_filters": [
    {
      "sample_rate": 0.5,
      "filter": {
        "value": "<string>",
        "operator": "eq",
        "name": "node_name",
        "filter_type": "string",
        "case_sensitive": true
      },
      "llm_scorers": false
    }
  ]
}
'
{
  "scorers": [
    {
      "id": "<string>",
      "scorer_type": "llm",
      "model_name": "<string>",
      "num_judges": 123,
      "filters": [
        {
          "value": "<string>",
          "operator": "eq",
          "name": "node_name",
          "filter_type": "string",
          "case_sensitive": true
        }
      ],
      "scoreable_node_types": [
        "<string>"
      ],
      "cot_enabled": true,
      "output_type": "boolean",
      "input_type": "basic",
      "name": "<string>",
      "model_type": "slm",
      "scorer_version": {
        "id": "<string>",
        "version": 123,
        "scorer_id": "<string>",
        "generated_scorer": {
          "id": "<string>",
          "name": "<string>",
          "chain_poll_template": {
            "template": "<string>",
            "metric_system_prompt": "<string>",
            "metric_description": "<string>",
            "value_field_name": "rating",
            "explanation_field_name": "explanation",
            "metric_few_shot_examples": [
              {
                "generation_prompt_and_response": "<string>",
                "evaluating_response": "<string>"
              }
            ],
            "response_schema": {}
          },
          "instructions": "<string>",
          "user_prompt": "<string>"
        },
        "registered_scorer": {
          "id": "<string>",
          "name": "<string>",
          "score_type": "<string>"
        },
        "finetuned_scorer": {
          "id": "<string>",
          "name": "<string>",
          "lora_task_id": 123,
          "prompt": "<string>",
          "luna_input_type": "span",
          "luna_output_type": "float",
          "class_name_to_vocab_ix": {},
          "executor": "action_completion_luna"
        },
        "model_name": "<string>",
        "num_judges": 123,
        "scoreable_node_types": [
          "<string>"
        ],
        "cot_enabled": true,
        "output_type": "boolean",
        "input_type": "basic"
      }
    }
  ],
  "segment_filters": [
    {
      "sample_rate": 0.5,
      "filter": {
        "value": "<string>",
        "operator": "eq",
        "name": "node_name",
        "filter_type": "string",
        "case_sensitive": true
      },
      "llm_scorers": false
    }
  ]
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

project_id
string<uuid4>
required
log_stream_id
string<uuid4>
required

Body

application/json
scorers
ScorerConfig · object[] | null

List of Galileo scorers to enable.

segment_filters
SegmentFilter · object[] | null

List of segment filters to apply to the run.

Response

Successful Response

scorers
ScorerConfig · object[]
required
segment_filters
SegmentFilter · object[] | null

List of segment filters to apply to the run.