Skip to content

Commit

Permalink
added todos for the remaining images.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl11 committed Feb 27, 2025
1 parent 604e2b9 commit fe22105
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 46 deletions.
52 changes: 22 additions & 30 deletions interfaces/basics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,42 +70,34 @@ and in the latter case the tables will all share the same globally set context.
It's best to showcase this with an example:

```python
with unify.Context("Companies"):
with unify.Context("Painted Ltd"):
with unify.Context("Sales"):
with unify.Context("Sciences"):
with unify.Context("Maths"):
unify.log(
name="Zoe",
question="what is 1 + 1?",
region="US"
)
with unify.Context("Physics"):
unify.log(
{
"revenue": 1000000,
"product": "Paint",
}
)
with unify.Context("Marketing"):
unify.log(
{
"spend": 1000000,
"format": "TV",
}
)
with unify.Context("Happy Hour Inc"):
with unify.Table("Sales"):
unify.log(
{
"revenue": 2000000,
"product": "Beer",
}
)
with unify.Context("Marketing"):
unify.log(
{
"spend": 500000,
"format": "Radio",
}
name="John",
question="what is the speed of light?",
region="EU"
)
with unify.Context("Arts"):
with unify.Context("Literature"):
unify.log(
name="Jane",
question="What does this sentence convey?",
region="UK"
)
```

We can then set the contexts for the tab and/or tables in a variety of ways:

GIF
<Accordion title="In the Interface">
<img class="dark-light" width="100%" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/refs/heads/main/img/externally_linked/table_nested_contexts_dark.gif"/>
click image to maximize
</Accordion>

## Feedback

Expand Down
2 changes: 1 addition & 1 deletion interfaces/tables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Groups can also be directly filtered. This is useful if you want to select a spe
The group filtering is applied *independently* to the standard column-wise filtering.
If you want to propagate the group filters to the columns filters, you can simply press "propagate" in the group filter dropdown.

{/* GIF */}
IMG πŸ›‘ {/* ToDo: Add support for group filtering (https://app.clickup.com/t/86c1xw3tp) */}

### Global

Expand Down
9 changes: 3 additions & 6 deletions interfaces/views.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ In it's most basic form, the view pane acts as an expressive viewer for whatever

These cells can be part of the same row, different rows, different columns, or any combination. In all cases, **all** of the data will be shown in the view pane.

{/* ToDo: Support Multi-Cell Selection without showing "No Data" (https://app.clickup.com/t/86c278n0e) */}
GIF
IMG πŸ›‘ {/* ToDo: Fix zero-based row issue (https://app.clickup.com/t/86c2anvn0) */}

## Grouping

Expand Down Expand Up @@ -92,16 +91,14 @@ Columns can easily be moved in the view pane by selecting drag mode and then sim
Sometimes it's more convenient to view the data **side-by-side**, the split view makes this easy.
You can toggle between one, two and three views.

{/* ToDo: Nests not working (https://app.clickup.com/t/86c2793jk) */}
GIF
IMG πŸ›‘ {/* ToDo: Fix zero-based row issue (https://app.clickup.com/t/86c2anvn0) */}

## Nesting

By default, the view pane will only expand one nest level at a time.
The deeper contents of dicts and lists are lazily loaded as the nest is incrementally expanded.

{/* ToDo: Nests not working (https://app.clickup.com/t/86c2793jk) */}
GIF
IMG πŸ›‘ {/* ToDo: Fix zero-based row issue (https://app.clickup.com/t/86c2anvn0) */}

## Diffs

Expand Down
2 changes: 1 addition & 1 deletion logging/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ If any logs are then updated inplace, they will be reflected in all contexts.
[l.update(entries={"passed": True}) for l in logs]
```

GIF
IMG πŸ›‘ {/* ToDo: Get implicit fields working correctly (https://app.clickup.com/t/86c2aq09m) */}

Note that in this case, the `ExtraSupport` and `Failed` contexts are "disconnected",
and therefore both sets of logs **cannot** be viewed in a single table.
Expand Down
13 changes: 7 additions & 6 deletions logging/datasets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ You can upload any dataset to your interface like so.
my_dataset.upload()
```

The `unify.Dataset` class automatically sets the context as `f"Datasets/{name}"`, so your dataset can be viewed at `Datasets/my_dataset`.
The `unify.Dataset` class automatically sets the context as `f"Datasets/{name}"`,
so your dataset can be viewed at `Datasets/my_dataset`.

GIF
IMG πŸ›‘ {/* ToDo: Fix broken contexts (https://app.clickup.com/t/86c2arbbk) */}

Setting `overwrite=True` will overwrite any existing dataset with the same name
Setting `overwrite=True` will overwrite any existing dataset with the same name
(even if the upstream dataset contained more data not included in the upload).

```python
Expand Down Expand Up @@ -105,13 +106,13 @@ my_sub_dataset = unify.Dataset(
).upload()
```

IMG
IMG πŸ›‘ {/* ToDo: Fix broken contexts (https://app.clickup.com/t/86c2arbbk) */}

Editing a log (row) in one dataset will be reflected in the other.

IMG
IMG πŸ›‘ {/* ToDo: Get implicit fields working correctly (https://app.clickup.com/t/86c2aq09m) */}

Logs can also be removed from one dataset table, without deleting it from the other.
However, if the log is deleted from both datasets, then it will be deleted entirely.

IMG
IMG πŸ›‘ {/* ToDo: Fix broken contexts (https://app.clickup.com/t/86c2arbbk) */}
4 changes: 2 additions & 2 deletions logging/traces.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ client = unify.Unify("o3-mini@openai", traced=True)
client.generate("Hello, world!")
```

GIF
IMG πŸ›‘ {/* ToDo: Add tokens to spans (https://app.clickup.com/t/86c2442zw) */}


When these LLM calls are part of a broader trace, then the cost and tokens are accumulated in the trace, propogating the cost and tokens to the parent spans.
Expand All @@ -70,4 +70,4 @@ def llm_jury(question):
llm_jury("What is the capital of France?")
```

GIF
IMG πŸ›‘ {/* ToDo: Add tokens to spans (https://app.clickup.com/t/86c2442zw) */}

0 comments on commit fe22105

Please sign in to comment.