GET
/
v0
/
logs
/
groups
curl --request GET \
  --url 'https://api.unify.ai/v0/logs/groups?project=eval-project&key=system_prompt&filter_expr=len(output)%20>%20200%20and%20temperature%20==%200.5&from_ids=0&1&2&exclude_ids=0&1&2' \
  --header "Authorization: Bearer $UNIFY_KEY"
[
    {
        "version": "v0",
        "value": "First version of the system prompt"
    },
    {
        "version": "v1",
        "value": "Second version of the system prompt"
    }
]

Returns a dict with the different versions as keys and the values of the remaining items within a given project based on its key. The logs can be filtered using filter_expr, from_ids, and exclude_ids parameters before grouping.

Authorizations

Authorization
string
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

project
string
required

Name of the project to get entries from.

key
string
required

Name of the log entry to get distinct values from.

filter_expr
string | null

Boolean string to filter entries before grouping.

from_ids
string | null

The log ids which are permitted to be included in the search. Each log id listed does not need to be returned, but no logs which are not included in this list can be returned. This argument cannot be set if exclude_ids is set.

exclude_ids
string | null

The log ids which cannot be returned from the search. None of the listed ids will be returned, even if the logs are valid as per the filtering expression etc. This argument cannot be set if from_ids is set.

curl --request GET \
  --url 'https://api.unify.ai/v0/logs/groups?project=eval-project&key=system_prompt&filter_expr=len(output)%20>%20200%20and%20temperature%20==%200.5&from_ids=0&1&2&exclude_ids=0&1&2' \
  --header "Authorization: Bearer $UNIFY_KEY"
[
    {
        "version": "v0",
        "value": "First version of the system prompt"
    },
    {
        "version": "v1",
        "value": "Second version of the system prompt"
    }
]