From 5a3518c74c106be8348c01c30530ddba9665e13b Mon Sep 17 00:00:00 2001 From: daisyfaithauma Date: Thu, 16 Jan 2025 18:41:22 +0000 Subject: [PATCH 1/2] add filter table --- .../evaluations/set-up-evaluations.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx b/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx index ec7db10020eb14..5b52ccf9c5a7e9 100644 --- a/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx +++ b/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx @@ -24,6 +24,24 @@ Please keep in mind that datasets currently use `AND` joins, so there can only b ::: +Here is the full list of all the filters available: + +| Filter category | Filter options | Filter by description | +| --------------- | ------------------------------------------------------------ | ----------------------------------------- | +| Status | error, status | error type or status. | +| Cache | cached, not cached | based on whether they were cached or not. | +| Provider | specific providers | the selected AI provider. | +| AI Models | specific models | the selected AI model. | +| Cost | less than, greater than | cost, specifying a threshold. | +| Request type | Universal, Workers AI Binding, WebSockets | the type of request. | +| Tokens | Total tokens, Tokens In, Tokens Out | token count (less than or greater than). | +| Duration | less than, greater than | request duration. | +| Feedback | equals, does not equal (thumbs up, thumbs down, no feedback) | feedback type. | +| Metadata Key | equals, does not equal | specific metadata keys. | +| Metadata Value | equals, does not equal | specific metadata values. | +| Log ID | equals, does not equal | a specific Log ID. | +| Event ID | equals, does not equal | a specific Event ID. | + ## 2. Select evaluators After creating a dataset, choose the evaluation parameters: From d09a0eeabce8ab14bffda33dfcef0a16d17272ff Mon Sep 17 00:00:00 2001 From: daisyfaithauma Date: Wed, 29 Jan 2025 13:45:23 +0000 Subject: [PATCH 2/2] linked filter table to other sections --- .../evaluations/set-up-evaluations.mdx | 2 +- .../ai-gateway/observability/logging/index.mdx | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx b/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx index 5b52ccf9c5a7e9..8fa842320959af 100644 --- a/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx +++ b/src/content/docs/ai-gateway/evaluations/set-up-evaluations.mdx @@ -24,7 +24,7 @@ Please keep in mind that datasets currently use `AND` joins, so there can only b ::: -Here is the full list of all the filters available: +### List of available filters | Filter category | Filter options | Filter by description | | --------------- | ------------------------------------------------------------ | ----------------------------------------- | diff --git a/src/content/docs/ai-gateway/observability/logging/index.mdx b/src/content/docs/ai-gateway/observability/logging/index.mdx index 32b577f7bdcf3c..599975e783fa8a 100644 --- a/src/content/docs/ai-gateway/observability/logging/index.mdx +++ b/src/content/docs/ai-gateway/observability/logging/index.mdx @@ -62,3 +62,21 @@ This setting is useful for maintaining continuous logging while staying within t ### Manual deletion To manually delete logs, navigate to the Logs tab in the dashboard. Use the available filters such as status, cache, provider, cost, or any other options in the dropdown to refine the logs you wish to delete. Once filtered, select Delete logs to complete the action. + +See full list of available filters and their descriptions below: + +| Filter category | Filter options | Filter by description | +| --------------- | ------------------------------------------------------------ | ----------------------------------------- | +| Status | error, status | error type or status. | +| Cache | cached, not cached | based on whether they were cached or not. | +| Provider | specific providers | the selected AI provider. | +| AI Models | specific models | the selected AI model. | +| Cost | less than, greater than | cost, specifying a threshold. | +| Request type | Universal, Workers AI Binding, WebSockets | the type of request. | +| Tokens | Total tokens, Tokens In, Tokens Out | token count (less than or greater than). | +| Duration | less than, greater than | request duration. | +| Feedback | equals, does not equal (thumbs up, thumbs down, no feedback) | feedback type. | +| Metadata Key | equals, does not equal | specific metadata keys. | +| Metadata Value | equals, does not equal | specific metadata values. | +| Log ID | equals, does not equal | a specific Log ID. | +| Event ID | equals, does not equal | a specific Event ID. |