arize-phoenix 11.38.0__py3-none-any.whl → 12.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of arize-phoenix might be problematic. Click here for more details.
- {arize_phoenix-11.38.0.dist-info → arize_phoenix-12.2.0.dist-info}/METADATA +3 -3
- {arize_phoenix-11.38.0.dist-info → arize_phoenix-12.2.0.dist-info}/RECORD +83 -58
- phoenix/config.py +1 -11
- phoenix/db/bulk_inserter.py +8 -0
- phoenix/db/facilitator.py +1 -1
- phoenix/db/helpers.py +202 -33
- phoenix/db/insertion/dataset.py +7 -0
- phoenix/db/insertion/document_annotation.py +1 -1
- phoenix/db/insertion/helpers.py +2 -2
- phoenix/db/insertion/session_annotation.py +176 -0
- phoenix/db/insertion/span_annotation.py +1 -1
- phoenix/db/insertion/trace_annotation.py +1 -1
- phoenix/db/insertion/types.py +29 -3
- phoenix/db/migrations/versions/01a8342c9cdf_add_user_id_on_datasets.py +40 -0
- phoenix/db/migrations/versions/0df286449799_add_session_annotations_table.py +105 -0
- phoenix/db/migrations/versions/272b66ff50f8_drop_single_indices.py +119 -0
- phoenix/db/migrations/versions/58228d933c91_dataset_labels.py +67 -0
- phoenix/db/migrations/versions/699f655af132_experiment_tags.py +57 -0
- phoenix/db/migrations/versions/735d3d93c33e_add_composite_indices.py +41 -0
- phoenix/db/migrations/versions/ab513d89518b_add_user_id_on_dataset_versions.py +40 -0
- phoenix/db/migrations/versions/d0690a79ea51_users_on_experiments.py +40 -0
- phoenix/db/migrations/versions/deb2c81c0bb2_dataset_splits.py +139 -0
- phoenix/db/migrations/versions/e76cbd66ffc3_add_experiments_dataset_examples.py +87 -0
- phoenix/db/models.py +306 -46
- phoenix/server/api/context.py +15 -2
- phoenix/server/api/dataloaders/__init__.py +8 -2
- phoenix/server/api/dataloaders/dataset_example_splits.py +40 -0
- phoenix/server/api/dataloaders/dataset_labels.py +36 -0
- phoenix/server/api/dataloaders/session_annotations_by_session.py +29 -0
- phoenix/server/api/dataloaders/table_fields.py +2 -2
- phoenix/server/api/dataloaders/trace_annotations_by_trace.py +27 -0
- phoenix/server/api/helpers/playground_clients.py +66 -35
- phoenix/server/api/helpers/playground_users.py +26 -0
- phoenix/server/api/input_types/{SpanAnnotationFilter.py → AnnotationFilter.py} +22 -14
- phoenix/server/api/input_types/CreateProjectSessionAnnotationInput.py +37 -0
- phoenix/server/api/input_types/UpdateAnnotationInput.py +34 -0
- phoenix/server/api/mutations/__init__.py +8 -0
- phoenix/server/api/mutations/chat_mutations.py +8 -3
- phoenix/server/api/mutations/dataset_label_mutations.py +291 -0
- phoenix/server/api/mutations/dataset_mutations.py +5 -0
- phoenix/server/api/mutations/dataset_split_mutations.py +423 -0
- phoenix/server/api/mutations/project_session_annotations_mutations.py +161 -0
- phoenix/server/api/queries.py +53 -0
- phoenix/server/api/routers/auth.py +5 -5
- phoenix/server/api/routers/oauth2.py +5 -23
- phoenix/server/api/routers/v1/__init__.py +2 -0
- phoenix/server/api/routers/v1/annotations.py +320 -0
- phoenix/server/api/routers/v1/datasets.py +5 -0
- phoenix/server/api/routers/v1/experiments.py +10 -3
- phoenix/server/api/routers/v1/sessions.py +111 -0
- phoenix/server/api/routers/v1/traces.py +1 -2
- phoenix/server/api/routers/v1/users.py +7 -0
- phoenix/server/api/subscriptions.py +5 -2
- phoenix/server/api/types/Dataset.py +8 -0
- phoenix/server/api/types/DatasetExample.py +18 -0
- phoenix/server/api/types/DatasetLabel.py +23 -0
- phoenix/server/api/types/DatasetSplit.py +32 -0
- phoenix/server/api/types/Experiment.py +0 -4
- phoenix/server/api/types/Project.py +16 -0
- phoenix/server/api/types/ProjectSession.py +88 -3
- phoenix/server/api/types/ProjectSessionAnnotation.py +68 -0
- phoenix/server/api/types/Prompt.py +18 -1
- phoenix/server/api/types/Span.py +5 -5
- phoenix/server/api/types/Trace.py +61 -0
- phoenix/server/app.py +13 -14
- phoenix/server/cost_tracking/model_cost_manifest.json +132 -2
- phoenix/server/dml_event.py +13 -0
- phoenix/server/static/.vite/manifest.json +39 -39
- phoenix/server/static/assets/{components-BQPHTBfv.js → components-BG6v0EM8.js} +705 -385
- phoenix/server/static/assets/{index-BL5BMgJU.js → index-CSVcULw1.js} +13 -13
- phoenix/server/static/assets/{pages-C0Y17J0T.js → pages-DgaM7kpM.js} +1356 -1155
- phoenix/server/static/assets/{vendor-BdjZxMii.js → vendor-BqTEkGQU.js} +183 -183
- phoenix/server/static/assets/{vendor-arizeai-CHYlS8jV.js → vendor-arizeai-DlOj0PQQ.js} +15 -24
- phoenix/server/static/assets/{vendor-codemirror-Di6t4HnH.js → vendor-codemirror-B2PHH5yZ.js} +3 -3
- phoenix/server/static/assets/{vendor-recharts-C9wCDYj3.js → vendor-recharts-CKsi4IjN.js} +1 -1
- phoenix/server/static/assets/{vendor-shiki-MNnmOotP.js → vendor-shiki-DN26BkKE.js} +1 -1
- phoenix/server/utils.py +74 -0
- phoenix/session/session.py +25 -5
- phoenix/version.py +1 -1
- phoenix/server/api/dataloaders/experiment_repetition_counts.py +0 -39
- {arize_phoenix-11.38.0.dist-info → arize_phoenix-12.2.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-11.38.0.dist-info → arize_phoenix-12.2.0.dist-info}/entry_points.txt +0 -0
- {arize_phoenix-11.38.0.dist-info → arize_phoenix-12.2.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-11.38.0.dist-info → arize_phoenix-12.2.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{U as g,j as o,d9 as y,eM as x,eN as z,eO as w,V as c,cB as P,eP as a,r as k,o as S,eQ as L}from"./vendor-BqTEkGQU.js";import{u as R,q as C}from"./vendor-arizeai-DlOj0PQQ.js";import{L as E,g as I,r as j,h as A,i as D,F,j as T,P as M,k as G,M as t,l as O,D as _,n as V,E as N,o as W,p as q,q as B,s as U,t as d,v as $,w as K,x as Q,y as H,z as J,B as X,C as Y,G as Z,H as oo,I as ao,J as lo,K as m,N as p,O as ro,Q as co,U as go,V as eo,W as bo,X as no,Y as io,Z as so,_ as to,$ as mo,a0 as po,a1 as uo,a2 as fo,a3 as vo,a4 as ho,a5 as yo,a6 as u,a7 as xo,a8 as zo,a9 as wo,aa as Po,ab as ko,ac as f,ad as v,ae as So,af as Lo,ag as Ro,ah as Co,ai as Eo,aj as Io,ak as jo,al as Ao,am as Do,an as Fo,ao as To,ap as Mo,aq as Go,ar as Oo,as as _o,at as n,au as Vo,av as No,aw as Wo,ax as qo,ay as Bo,az as Uo,aA as $o,aB as Ko}from"./pages-DgaM7kpM.js";import{g0 as Qo,cW as Ho,W as Jo,g1 as Xo}from"./components-BG6v0EM8.js";import"./vendor-three-BLWp5bic.js";import"./vendor-codemirror-B2PHH5yZ.js";import"./vendor-shiki-DN26BkKE.js";import"./vendor-recharts-CKsi4IjN.js";(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const e of r)if(e.type==="childList")for(const i of e.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function h(r){const e={};return r.integrity&&(e.integrity=r.integrity),r.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?e.credentials="include":r.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function s(r){if(r.ep)return;r.ep=!0;const e=h(r);fetch(r.href,e)}})();const Yo=g`
|
|
2
2
|
:root,
|
|
3
3
|
.ac-theme {
|
|
4
4
|
--ac-global-dimension-scale-factor: 1;
|
|
@@ -54,7 +54,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
54
54
|
--ac-global-dimension-size-5000: 400px;
|
|
55
55
|
--ac-global-dimension-size-6000: 480px;
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`,Zo=g`
|
|
58
58
|
:root,
|
|
59
59
|
.ac-theme {
|
|
60
60
|
// static colors
|
|
@@ -71,7 +71,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
71
71
|
--ac-global-button-height-s: var(--ac-global-input-height-s);
|
|
72
72
|
--ac-global-button-height-m: var(--ac-global-input-height-m);
|
|
73
73
|
}
|
|
74
|
-
`,
|
|
74
|
+
`,oa=g`
|
|
75
75
|
:root,
|
|
76
76
|
.ac-theme {
|
|
77
77
|
--ac-global-dimension-static-size-0: 0px;
|
|
@@ -152,7 +152,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
152
152
|
--ac-global-dimension-font-size-1200: 50px;
|
|
153
153
|
--ac-global-dimension-font-size-1300: 60px;
|
|
154
154
|
}
|
|
155
|
-
`,
|
|
155
|
+
`,aa=g`
|
|
156
156
|
:root,
|
|
157
157
|
.ac-theme--dark {
|
|
158
158
|
/* Colors */
|
|
@@ -666,7 +666,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
666
666
|
--ac-floating-toolbar-background-color: var(--ac-global-color-grey-200);
|
|
667
667
|
--ac-floating-toolbar-border-color: var(--ac-global-color-grey-300);
|
|
668
668
|
}
|
|
669
|
-
`,
|
|
669
|
+
`,la=g`
|
|
670
670
|
:root,
|
|
671
671
|
.ac-theme--light {
|
|
672
672
|
/* Colors */
|
|
@@ -915,7 +915,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
915
915
|
--ac-floating-toolbar-background-color: var(--ac-global-color-grey-75);
|
|
916
916
|
--ac-floating-toolbar-border-color: var(--ac-global-color-grey-200);
|
|
917
917
|
}
|
|
918
|
-
`,
|
|
918
|
+
`,ra=l=>g`
|
|
919
919
|
:root,
|
|
920
920
|
.ac-theme--${l} {
|
|
921
921
|
// The primary color tint for the apps
|
|
@@ -973,7 +973,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
973
973
|
|
|
974
974
|
--ac-highlight-foreground: var(--ac-global-text-color-900);
|
|
975
975
|
--ac-highlight-background: var(--ac-global-color-primary-100);
|
|
976
|
-
--ac-hover-background: var(--ac-global-color-primary-
|
|
976
|
+
--ac-hover-background: var(--ac-global-color-primary-50);
|
|
977
977
|
--ac-focus-ring-color: var(--ac-global-color-primary-500);
|
|
978
978
|
|
|
979
979
|
// Text
|
|
@@ -1082,12 +1082,12 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
1082
1082
|
--ac-alias-single-line-height: var(--ac-global-dimension-size-400);
|
|
1083
1083
|
--ac-alias-single-line-width: var(--ac-global-dimension-size-2400);
|
|
1084
1084
|
}
|
|
1085
|
-
`,
|
|
1085
|
+
`,ca=g`
|
|
1086
1086
|
:root,
|
|
1087
1087
|
.ac-theme {
|
|
1088
1088
|
--ac-opacity-disabled: 0.6;
|
|
1089
1089
|
}
|
|
1090
|
-
`,
|
|
1090
|
+
`,ga=g`
|
|
1091
1091
|
body,
|
|
1092
1092
|
input,
|
|
1093
1093
|
button,
|
|
@@ -1221,7 +1221,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
1221
1221
|
--px-corpus-color: #92969c;
|
|
1222
1222
|
--px-corpus-color--transparent: #92969c63;
|
|
1223
1223
|
}
|
|
1224
|
-
`,
|
|
1224
|
+
`,ea=g`
|
|
1225
1225
|
.ac-theme--light {
|
|
1226
1226
|
.cm-editor {
|
|
1227
1227
|
background-color: rgba(255, 255, 255, 0.5) !important;
|
|
@@ -1238,7 +1238,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
1238
1238
|
background-color: rgba(0, 0, 0, 0.2) !important;
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
|
-
`,
|
|
1241
|
+
`,ba=g`
|
|
1242
1242
|
.ac-theme {
|
|
1243
1243
|
--chart-cartesian-grid-stroke-color: var(--ac-global-color-grey-300);
|
|
1244
1244
|
--chart-axis-stroke-color: var(--ac-global-color-grey-300);
|
|
@@ -1252,7 +1252,7 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
1252
1252
|
.ac-theme--light {
|
|
1253
1253
|
--chart-tooltip-cursor-fill-color: rgba(0, 0, 0, 0.05);
|
|
1254
1254
|
}
|
|
1255
|
-
`,
|
|
1255
|
+
`,na=g`
|
|
1256
1256
|
.font-default {
|
|
1257
1257
|
font-family: "Geist", sans-serif;
|
|
1258
1258
|
font-optical-sizing: auto;
|
|
@@ -1262,4 +1262,4 @@ import{l as g,j as o,d6 as f,eJ as v,eK as h,eL as y,m as c,cv as x,eM as a,r as
|
|
|
1262
1262
|
font-family: "Geist Mono", monospace;
|
|
1263
1263
|
font-optical-sizing: auto;
|
|
1264
1264
|
}
|
|
1265
|
-
`;function
|
|
1265
|
+
`;function ia(){const{theme:l="dark"}=R();return o(y,{styles:g(oa,Zo,l==="dark"?aa:la,ra(l),Yo,ca,ga,ea,ba,na)})}const sa=x(z(c(a,{path:"/",errorElement:o(n,{}),element:o(Bo,{}),children:[o(a,{path:"/v1/*",element:o(P,{to:"/",replace:!0})}),o(a,{path:"/login",element:o(E,{})}),o(a,{path:"/logout",element:o(I,{})}),o(a,{path:"/reset-password",element:o(A,{}),loader:j}),o(a,{path:"/reset-password-with-token",element:o(D,{})}),o(a,{path:"/forgot-password",element:o(F,{})}),o(a,{element:o(qo,{}),loader:T,children:c(a,{element:o(Wo,{}),children:[o(a,{path:"/profile",handle:{crumb:()=>"profile"},element:o(M,{})}),o(a,{index:!0,loader:G}),c(a,{path:"/model",handle:{crumb:()=>"model"},element:o(W,{}),children:[o(a,{index:!0,element:o(t,{})}),o(a,{element:o(t,{}),children:o(a,{path:"dimensions",children:o(a,{path:":dimensionId",element:o(_,{}),loader:O})})}),o(a,{path:"embeddings",children:o(a,{path:":embeddingDimensionId",element:o(N,{}),loader:V,handle:{crumb:l=>l.embedding.name}})})]}),c(a,{path:"/projects",handle:{crumb:()=>"Projects"},element:o(ao,{}),children:[o(a,{index:!0,element:o(q,{})}),c(a,{path:":projectId",loader:B,handle:{crumb:l=>l.project.name},element:o(oo,{}),children:[o(a,{index:!0,element:o(U,{})}),c(a,{element:o(Z,{}),children:[o(a,{path:"traces",element:o($,{}),children:o(a,{path:":traceId",element:o(d,{})})}),o(a,{path:"spans",element:o(K,{}),children:o(a,{path:":traceId",element:o(d,{})})}),o(a,{path:"sessions",element:o(J,{}),children:o(a,{path:":sessionId",element:o(H,{}),loader:Q})}),o(a,{path:"config",element:o(X,{})}),o(a,{path:"metrics",element:o(Y,{})})]})]})]}),c(a,{path:"/datasets",handle:{crumb:()=>"Datasets"},children:[o(a,{index:!0,element:o(lo,{})}),c(a,{path:":datasetId",loader:m,handle:{crumb:l=>l.dataset.name},children:[c(a,{element:o(io,{}),loader:m,children:[o(a,{index:!0,element:o(p,{})}),o(a,{path:"experiments",element:o(p,{})}),o(a,{path:"examples",element:o(go,{}),loader:ro,children:o(a,{path:":exampleId",element:o(co,{})})}),o(a,{path:"versions",element:o(bo,{}),loader:eo}),o(a,{path:"evaluators",element:o(no,{})})]}),o(a,{path:"compare",element:o(so,{}),handle:{crumb:()=>"compare"}})]})]}),c(a,{path:"/playground",handle:{crumb:()=>"Playground"},children:[o(a,{index:!0,element:o(to,{})}),o(a,{path:"spans/:spanId",element:o(po,{}),loader:mo,handle:{crumb:l=>l.span.__typename==="Span"?`span ${l.span.spanId}`:"span unknown"}})]}),c(a,{path:"/prompts",handle:{crumb:()=>"Prompts"},children:[o(a,{index:!0,element:o(fo,{}),loader:uo}),c(a,{path:":promptId",loader:vo,shouldRevalidate:()=>!0,handle:{crumb:l=>l.prompt.__typename==="Prompt"?l.prompt.name:"unknown"},children:[c(a,{element:o(ko,{}),children:[o(a,{index:!0,element:o(ho,{})}),o(a,{path:"versions",loader:yo,element:o(zo,{}),children:o(a,{path:":versionId",loader:u,element:o(xo,{})})}),o(a,{path:"config",element:o(Po,{}),loader:wo})]}),o(a,{path:"versions/:versionId",loader:u,handle:{crumb:l=>l==null?void 0:l.promptVersion.id},children:o(a,{path:"playground",element:o(v,{}),loader:f,handle:{crumb:()=>"playground"}})}),o(a,{path:"playground",element:o(v,{}),loader:f,handle:{crumb:()=>"playground"}})]})]}),o(a,{path:"/apis",element:o(So,{}),handle:{crumb:()=>"APIs"}}),o(a,{path:"/support",element:o(Lo,{}),handle:{crumb:()=>"Support"}}),c(a,{path:"/settings",element:o(Oo,{}),handle:{crumb:()=>"Settings"},children:[o(a,{path:"general",loader:Ro,element:o(Co,{}),handle:{crumb:()=>"General"}}),o(a,{path:"providers",loader:Eo,element:o(Io,{}),handle:{crumb:()=>"AI Providers"}}),o(a,{path:"models",loader:jo,element:o(Ao,{}),handle:{crumb:()=>"Models"}}),o(a,{path:"annotations",loader:Do,element:o(Fo,{}),handle:{crumb:()=>"Annotations"}}),o(a,{path:"data",element:o(Mo,{}),handle:{crumb:()=>"Data Retention"},loader:To}),o(a,{path:"prompts",element:o(Go,{}),handle:{crumb:()=>"Prompts"}})]}),o(a,{path:"/redirects/spans/:span_otel_id",loader:_o,errorElement:o(n,{})}),o(a,{path:"/redirects/traces/:trace_otel_id",loader:Vo,errorElement:o(n,{})}),o(a,{path:"/redirects/sessions/:session_id",loader:No,errorElement:o(n,{})})]})})]})),{basename:window.Config.basename});function ta(){return o(w,{router:sa})}function da(){return o(Uo,{children:o(Qo,{children:o(ma,{})})})}function ma(){const{theme:l}=Ho();return o(C,{theme:l,mountGlobalStyles:!1,children:c(S.RelayEnvironmentProvider,{environment:Jo,children:[o(ia,{}),o($o,{children:o(Xo,{children:o(Ko,{children:o(k.Suspense,{children:o(ta,{})})})})})]})})}const pa=document.getElementById("root"),ua=L.createRoot(pa);ua.render(o(da,{}));
|