Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions app/src/components/annotation/AnnotationDetailsContent.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Flex, Text, View } from "@phoenix/components";
import { AnnotationColorSwatch } from "@phoenix/components/annotation/AnnotationColorSwatch";
import { JSONText } from "@phoenix/components/code/JSONText";
import { Truncate } from "@phoenix/components/utility/Truncate";
import { floatFormatter } from "@phoenix/utils/numberFormatUtils";

Expand Down Expand Up @@ -65,6 +66,18 @@ export function AnnotationDetailsContent({
</Flex>
</View>
) : null}
{annotation.metadata && Object.keys(annotation.metadata).length > 0 ? (
<View paddingTop="size-50">
<Flex direction="column">
<Text weight="heavy" color="inherit">
metadata
</Text>
<View maxHeight="300px" overflow="auto">
<JSONText json={annotation.metadata} space={2} disableTitle />
</View>
</Flex>
</View>
) : null}
{annotation.createdAt ? (
<Flex
direction="row"
Expand Down
1 change: 1 addition & 0 deletions app/src/components/annotation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface Annotation {
label?: string | null;
score?: number | null;
explanation?: string | null;
metadata?: Record<string, unknown>;
annotatorKind?: string;
createdAt?: string;
user?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export function ExperimentCompareDetails({
name
label
score
metadata
trace {
traceId
projectId
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/src/pages/example/ExampleExperimentRunsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export function ExampleExperimentRunsTable({
label
score
explanation
metadata
annotatorKind
trace {
id
Expand Down
Loading
Loading