From 24696fb46a4b6b15af47f72b3a5ff966507dfa81 Mon Sep 17 00:00:00 2001 From: djl11 Date: Thu, 27 Feb 2025 17:16:00 +0700 Subject: [PATCH] added 'click image to maximize' messages to all accordions. --- demo/datasets.mdx | 7 +++++-- demo/llm_evals.mdx | 4 +++- interfaces/basics.mdx | 3 +++ interfaces/plots.mdx | 9 +++++++++ interfaces/tables.mdx | 17 +++++++++++++++++ interfaces/views.mdx | 8 ++++++++ logging/column_contexts.mdx | 2 ++ logging/entries.mdx | 2 ++ logging/experiments.mdx | 3 +++ logging/parameters.mdx | 4 ++++ logging/traces.mdx | 2 ++ 11 files changed, 58 insertions(+), 3 deletions(-) diff --git a/demo/datasets.mdx b/demo/datasets.mdx index 9673effaa..67132bc08 100644 --- a/demo/datasets.mdx +++ b/demo/datasets.mdx @@ -1,4 +1,7 @@ --- -title: 'Datasets' +title: 'Create a Dataset' --- -[coming soon 🚧] \ No newline at end of file + +It's easiest to create a dataset from the Python client. +Let's first get the data in the representation we actually want it. + diff --git a/demo/llm_evals.mdx b/demo/llm_evals.mdx index 2673f7bfc..fc8255912 100644 --- a/demo/llm_evals.mdx +++ b/demo/llm_evals.mdx @@ -1,4 +1,6 @@ --- title: 'LLM Evals' --- -[coming soon 🚧] \ No newline at end of file + + + diff --git a/interfaces/basics.mdx b/interfaces/basics.mdx index 3f8531a91..a9253fca2 100644 --- a/interfaces/basics.mdx +++ b/interfaces/basics.mdx @@ -32,6 +32,7 @@ The corners of the tab can then be dragged for resizing, and the tab can be drag +click image to maximize If you're done positioning and sizing your tiles, it's best to exit edit mode. @@ -46,6 +47,7 @@ You can exit via the top right "X" button to return to the default interface vie +click image to maximize Focus mode can also be accessed from the focus mode button at the top the default interface screen. @@ -58,6 +60,7 @@ When interactive mode is turned off, the interface acts more like a static dashb +click image to maximize ## Contexts diff --git a/interfaces/plots.mdx b/interfaces/plots.mdx index 34ed54c7a..94b5b7727 100644 --- a/interfaces/plots.mdx +++ b/interfaces/plots.mdx @@ -28,6 +28,7 @@ We can then select the x column for the x-axis and the y column for the y-axis. +click image to maximize We can also add overlay several plots on the graph, @@ -54,6 +55,7 @@ We can also add a line of best fit to each group in the plot. +click image to maximize If we want to group across *multiple* independent variables, we can just create a new derived column to express the desired group. @@ -82,6 +84,7 @@ We can then group by this new column. +click image to maximize We could then create three plots for example. One which groups by gender, one which groups by location and one which groups by both. @@ -89,6 +92,7 @@ We can then save this and revisit this dashboard again any time in future, whene +click image to maximize ## Line Graphs @@ -107,6 +111,7 @@ for i in range(10): +click image to maximize As before, we can also group by another column. @@ -132,6 +137,7 @@ We can then select time for the x-axis, speed for the y-axis and group by model. +click image to maximize By default, new data will **not** be loaded into the interface unless something triggers a reload, @@ -143,6 +149,7 @@ and then limit the time horizon to the last 5 minutes, for example. +click image to maximize Similar to the derived "identity" column before, @@ -179,6 +186,7 @@ Let's then create the derived column and plot results for each unique **endpoint +click image to maximize ## Bar Charts @@ -241,6 +249,7 @@ Let's take a look at the corresponding histogram. +click image to maximize We can see that the usage has been steadily increasing throughout the year, good stuff! 📈 diff --git a/interfaces/tables.mdx b/interfaces/tables.mdx index 0f3e2fe0a..52d737b67 100644 --- a/interfaces/tables.mdx +++ b/interfaces/tables.mdx @@ -16,6 +16,7 @@ This will be shown as: +click image to maximize Note that the **most recent** log is always shown at the **top** of the table, @@ -33,6 +34,7 @@ Columns can easily be hidden by clicking the dropdown and pressing "hide column" +click image to maximize ### Moving Columns @@ -41,6 +43,7 @@ You can move columns by simply dragging them to where you want them. +click image to maximize ### Pinning Columns @@ -50,6 +53,7 @@ This column will then be locked in place when you scroll left and right within t +click image to maximize ## Grouping @@ -91,12 +95,14 @@ The reduction metrics are automatically calculated for each column. +click image to maximize Conversely, if we want to see which question was the most difficult, we can group by question instead. +click image to maximize We can see that the LLM seems to find London the easiest, then Tokyo, then Paris (again, a contrived example 😁). @@ -105,6 +111,7 @@ Similarly, if we want to what the impact of a system message is, we can group by +click image to maximize Combined, this makes it very easily to quickly probe the data across **all** of your experiments, enabling you to easily transcending the boundaries of rigid "experiments" flexibly. @@ -116,6 +123,7 @@ Rows are sorted in the order of the column sorts. For example, sorting by column +click image to maximize ### With Grouping [🚧] @@ -203,6 +211,7 @@ Everything else is column specific. +click image to maximize ### Numbers @@ -211,6 +220,7 @@ Everything else is column specific. +click image to maximize ### DateTime @@ -221,6 +231,7 @@ Everything else is column specific. +click image to maximize ### Booleans @@ -230,6 +241,7 @@ Everything else is column specific. +click image to maximize ### Lists and Dicts @@ -239,6 +251,7 @@ Everything else is column specific. +click image to maximize ### Groups [🚧] @@ -266,6 +279,7 @@ using an expression such as `x * y > 0` or `( x > 0 and y > 0) or (x < 0 and y < +click image to maximize @@ -273,6 +287,7 @@ We can also switch the global filter to "search" mode, which simply searches all +click image to maximize ## Derived Columns @@ -291,6 +306,7 @@ We just need to provide the expression `(x**2 + y**2)**0.5`: +click image to maximize Filtering, grouping, and sorting all work on derived columns, just like any other. @@ -298,6 +314,7 @@ However, derived columns *also* support updating their equation. +click image to maximize ## Joins [🚧] diff --git a/interfaces/views.mdx b/interfaces/views.mdx index e17f6f54a..b0f551111 100644 --- a/interfaces/views.mdx +++ b/interfaces/views.mdx @@ -8,6 +8,7 @@ A view tile must be paired with exactly one table, this can be done from the men +click image to maximize ## Cell Selection @@ -26,6 +27,7 @@ To avoid redundancy, every value that is shared across multiple cells is grouped +click image to maximize This also makes it easy to quickly spot trends in the data. @@ -40,6 +42,7 @@ The view pane supports 3 different view modes: +click image to maximize ## Hiding Columns @@ -76,6 +79,7 @@ and the text data in the view pane to look at the finer details (and benefit fro +click image to maximize ## Moving Columns @@ -84,6 +88,7 @@ Columns can easily be moved in the view pane by selecting drag mode and then sim +click image to maximize ## Split View @@ -146,6 +151,7 @@ For string diffs, there are four modes: +click image to maximize ### Numeric @@ -154,6 +160,7 @@ Numeric value "diffs" support the four basic operators: `-`, `+`, `*` and `/`. +click image to maximize ### DateTime @@ -162,6 +169,7 @@ Datetime diffs are presented as a relative difference in time, in the appropriat +click image to maximize ### Structure Diffs diff --git a/logging/column_contexts.mdx b/logging/column_contexts.mdx index d28587f90..222fcba05 100644 --- a/logging/column_contexts.mdx +++ b/logging/column_contexts.mdx @@ -23,6 +23,7 @@ with unify.Log(), unify.ColumnContext("Sciences"): +click image to maximize Under the hood, column contexts are simply `/` separated field names, and so the below code is equivalent. @@ -50,6 +51,7 @@ making it easy to view and organize your structured data in bulk. +click image to maximize As with contexts, `unify.ColumnContext("...")` by default will also change the behaviour of `get_logs`, diff --git a/logging/entries.mdx b/logging/entries.mdx index 71c07f9eb..2943b0113 100644 --- a/logging/entries.mdx +++ b/logging/entries.mdx @@ -45,6 +45,7 @@ Which will appear like so in the table: +click image to maximize These can also be nested: @@ -97,6 +98,7 @@ Which will appear in the table like so: +click image to maximize Of course, this is not especially useful for the above example, diff --git a/logging/experiments.mdx b/logging/experiments.mdx index 91d9f40c4..a22461200 100644 --- a/logging/experiments.mdx +++ b/logging/experiments.mdx @@ -22,6 +22,7 @@ This will show in the table like so: +click image to maximize Let's run another experiment, but give it an explicit name. @@ -41,6 +42,7 @@ This will show in the table like so: +click image to maximize You can also use negative indexing, and the `overwrite` argument. @@ -63,4 +65,5 @@ The overwrite can be seen in the table, after pressing the `refresh` button: +click image to maximize diff --git a/logging/parameters.mdx b/logging/parameters.mdx index b24f965f2..4cbccdea8 100644 --- a/logging/parameters.mdx +++ b/logging/parameters.mdx @@ -25,6 +25,7 @@ They are always shown on the left hand side of the table. +click image to maximize Parameter versions are of type string, and the version is simply an incrementing integer. @@ -34,6 +35,7 @@ You can see the version of a paramter in the view pane. +click image to maximize ## Parameter Contexts @@ -54,6 +56,7 @@ This will show in the table like so: +click image to maximize Like the other context managers, parameter context managers can also be nested: @@ -76,6 +79,7 @@ This will show in the table like so: +click image to maximize As with entries, `unify.Parameter("...")` also changes the behaviour of `get_logs`, returning only the logs which include the parameter. diff --git a/logging/traces.mdx b/logging/traces.mdx index a51129c70..6e12e3d08 100644 --- a/logging/traces.mdx +++ b/logging/traces.mdx @@ -16,6 +16,7 @@ If you create a view tile and select the trace in the table, you'll then see the +click image to maximize Traces are made up of spans, each of which represent a unit of computation. Traces can have an arbitrary number of spans, and spans can have child spans up to an arbitrary depth. @@ -44,6 +45,7 @@ In the trace view pane, this will look as follows: +click image to maximize ## LLM Traces