arize-phoenix 12.0.0__py3-none-any.whl → 12.3.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.

Files changed (44) hide show
  1. {arize_phoenix-12.0.0.dist-info → arize_phoenix-12.3.0.dist-info}/METADATA +1 -1
  2. {arize_phoenix-12.0.0.dist-info → arize_phoenix-12.3.0.dist-info}/RECORD +43 -38
  3. phoenix/db/insertion/document_annotation.py +1 -1
  4. phoenix/db/insertion/session_annotation.py +1 -1
  5. phoenix/db/insertion/span_annotation.py +1 -1
  6. phoenix/db/insertion/trace_annotation.py +1 -1
  7. phoenix/db/insertion/types.py +0 -4
  8. phoenix/db/models.py +22 -1
  9. phoenix/server/api/auth_messages.py +46 -0
  10. phoenix/server/api/context.py +2 -0
  11. phoenix/server/api/dataloaders/__init__.py +2 -0
  12. phoenix/server/api/dataloaders/dataset_labels.py +36 -0
  13. phoenix/server/api/helpers/playground_clients.py +1 -0
  14. phoenix/server/api/mutations/__init__.py +2 -0
  15. phoenix/server/api/mutations/dataset_label_mutations.py +291 -0
  16. phoenix/server/api/mutations/dataset_split_mutations.py +38 -2
  17. phoenix/server/api/queries.py +21 -0
  18. phoenix/server/api/routers/auth.py +5 -5
  19. phoenix/server/api/routers/oauth2.py +53 -51
  20. phoenix/server/api/types/Dataset.py +8 -0
  21. phoenix/server/api/types/DatasetExample.py +7 -0
  22. phoenix/server/api/types/DatasetLabel.py +23 -0
  23. phoenix/server/api/types/Prompt.py +18 -1
  24. phoenix/server/app.py +12 -12
  25. phoenix/server/cost_tracking/model_cost_manifest.json +54 -54
  26. phoenix/server/oauth2.py +2 -4
  27. phoenix/server/static/.vite/manifest.json +39 -39
  28. phoenix/server/static/assets/{components-Dl9SUw1U.js → components-Bs8eJEpU.js} +699 -378
  29. phoenix/server/static/assets/{index-CqQS0dTo.js → index-C6WEu5UP.js} +3 -3
  30. phoenix/server/static/assets/{pages-DKSjVA_E.js → pages-D-n2pkoG.js} +1149 -1142
  31. phoenix/server/static/assets/vendor-D2eEI-6h.js +914 -0
  32. phoenix/server/static/assets/{vendor-arizeai-D-lWOwIS.js → vendor-arizeai-kfOei7nf.js} +15 -24
  33. phoenix/server/static/assets/{vendor-codemirror-BRBpy3_z.js → vendor-codemirror-1bq_t1Ec.js} +3 -3
  34. phoenix/server/static/assets/{vendor-recharts--KdSwB3m.js → vendor-recharts-DQ4xfrf4.js} +1 -1
  35. phoenix/server/static/assets/{vendor-shiki-CvRzZnIo.js → vendor-shiki-GGmcIQxA.js} +1 -1
  36. phoenix/server/templates/index.html +1 -0
  37. phoenix/server/utils.py +74 -0
  38. phoenix/session/session.py +25 -5
  39. phoenix/version.py +1 -1
  40. phoenix/server/static/assets/vendor-CtbHQYl8.js +0 -903
  41. {arize_phoenix-12.0.0.dist-info → arize_phoenix-12.3.0.dist-info}/WHEEL +0 -0
  42. {arize_phoenix-12.0.0.dist-info → arize_phoenix-12.3.0.dist-info}/entry_points.txt +0 -0
  43. {arize_phoenix-12.0.0.dist-info → arize_phoenix-12.3.0.dist-info}/licenses/IP_NOTICE +0 -0
  44. {arize_phoenix-12.0.0.dist-info → arize_phoenix-12.3.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
1
- 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 z,aF as w,eN as P}from"./vendor-CtbHQYl8.js";import{u as k,r as S}from"./vendor-arizeai-D-lWOwIS.js";import{L,g as C,r as R,h as E,i as I,F as j,j as A,P as D,k as F,M as t,l as T,D as M,n as G,E as _,o as O,p as N,q as V,s as q,t as d,v as W,w as B,x as U,y as $,z as K,B as J,C as H,G as Q,H as X,I as Y,J as Z,K as m,N as p,O as oo,Q as ao,U as lo,V as ro,W as co,X as go,Y as eo,Z as bo,_ as no,$ as io,a0 as so,a1 as to,a2 as mo,a3 as po,a4 as uo,a5 as fo,a6 as vo,a7 as ho,a8 as yo,a9 as xo,aa as zo,ab as wo,ac as Po,ad as ko,ae as So,af as Lo,ag as Co,ah as Ro,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 _o,as as Oo,at as No,au as n,av as Vo,aw as qo,ax as Wo,ay as Bo,az as Uo,aA as $o,aB as Ko}from"./pages-DKSjVA_E.js";import{f$ as Jo,cU as Ho,U as Qo,g0 as Xo,g1 as Yo}from"./components-Dl9SUw1U.js";import"./vendor-three-BLWp5bic.js";import"./vendor-codemirror-BRBpy3_z.js";import"./vendor-shiki-CvRzZnIo.js";import"./vendor-recharts--KdSwB3m.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 u(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=u(r);fetch(r.href,e)}})();const Zo=g`
1
+ import{U as g,j as o,db as y,eO as x,eP as z,eQ as w,V as c,cB as P,eR as a,r as k,o as S,eS as L}from"./vendor-D2eEI-6h.js";import{u as R,q as C}from"./vendor-arizeai-kfOei7nf.js";import{L as E,h as I,r as j,i as D,j as A,F,k as T,P as M,l as G,M as t,n as O,D as _,o as V,E as W,p as q,q as N,s as B,t as U,v as d,w as $,x as K,y as Q,z as H,B as J,C as X,G as Y,H as Z,I as oo,J as ao,K as lo,N as m,O as p,Q as ro,U as co,V as go,W as eo,X as bo,Y as no,Z as io,_ as so,$ as to,a0 as mo,a1 as po,a2 as uo,a3 as fo,a4 as vo,a5 as ho,a6 as yo,a7 as u,a8 as xo,a9 as zo,aa as wo,ab as Po,ac as ko,ad as f,ae as v,af as So,ag as Lo,ah as Ro,ai as Co,aj as Eo,ak as Io,al as jo,am as Do,an as Ao,ao as Fo,ap as To,aq as Mo,ar as Go,as as Oo,at as _o,au as Vo,av as n,aw as Wo,ax as qo,ay as No,az as Bo,aA as Uo,aB as $o,aC as Ko,aD as Qo}from"./pages-D-n2pkoG.js";import{g3 as Ho,cW as Jo,W as Xo,g4 as Yo}from"./components-Bs8eJEpU.js";import"./vendor-three-BLWp5bic.js";import"./vendor-codemirror-1bq_t1Ec.js";import"./vendor-shiki-GGmcIQxA.js";import"./vendor-recharts-DQ4xfrf4.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 Zo=g`
2
2
  :root,
3
3
  .ac-theme {
4
4
  --ac-global-dimension-scale-factor: 1;
@@ -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-100);
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
@@ -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 sa(){const{theme:l="dark"}=k();return o(f,{styles:g(aa,oa,l==="dark"?la:ra,ca(l),Zo,ga,ea,ba,na,ia)})}const ta=v(h(c(a,{path:"/",errorElement:o(n,{}),children:[o(a,{path:"/v1/*",element:o(x,{to:"/",replace:!0})}),o(a,{path:"/login",element:o(L,{})}),o(a,{path:"/logout",element:o(C,{})}),o(a,{path:"/reset-password",element:o(E,{}),loader:R}),o(a,{path:"/reset-password-with-token",element:o(I,{})}),o(a,{path:"/forgot-password",element:o(j,{})}),o(a,{element:o(Bo,{}),loader:A,children:c(a,{element:o(Wo,{}),children:[o(a,{path:"/profile",handle:{crumb:()=>"profile"},element:o(D,{})}),o(a,{index:!0,loader:F}),c(a,{path:"/model",handle:{crumb:()=>"model"},element:o(O,{}),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(M,{}),loader:T})})}),o(a,{path:"embeddings",children:o(a,{path:":embeddingDimensionId",element:o(_,{}),loader:G,handle:{crumb:l=>l.embedding.name}})})]}),c(a,{path:"/projects",handle:{crumb:()=>"Projects"},element:o(Y,{}),children:[o(a,{index:!0,element:o(N,{})}),c(a,{path:":projectId",loader:V,handle:{crumb:l=>l.project.name},element:o(X,{}),children:[o(a,{index:!0,element:o(q,{})}),c(a,{element:o(Q,{}),children:[o(a,{path:"traces",element:o(W,{}),children:o(a,{path:":traceId",element:o(d,{})})}),o(a,{path:"spans",element:o(B,{}),children:o(a,{path:":traceId",element:o(d,{})})}),o(a,{path:"sessions",element:o(K,{}),children:o(a,{path:":sessionId",element:o($,{}),loader:U})}),o(a,{path:"config",element:o(J,{})}),o(a,{path:"metrics",element:o(H,{})})]})]})]}),c(a,{path:"/datasets",handle:{crumb:()=>"Datasets"},children:[o(a,{index:!0,element:o(Z,{})}),c(a,{path:":datasetId",loader:m,handle:{crumb:l=>l.dataset.name},children:[c(a,{element:o(eo,{}),loader:m,children:[o(a,{index:!0,element:o(p,{})}),o(a,{path:"experiments",element:o(p,{})}),o(a,{path:"examples",element:o(lo,{}),loader:oo,children:o(a,{path:":exampleId",element:o(ao,{})})}),o(a,{path:"versions",element:o(co,{}),loader:ro}),o(a,{path:"evaluators",element:o(go,{})})]}),o(a,{path:"compare",element:o(no,{}),loader:bo,handle:{crumb:()=>"compare"}})]})]}),c(a,{path:"/playground",handle:{crumb:()=>"Playground"},children:[o(a,{index:!0,element:o(io,{})}),o(a,{path:"spans/:spanId",element:o(to,{}),loader:so,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(po,{}),loader:mo}),c(a,{path:":promptId",loader:uo,shouldRevalidate:()=>!0,handle:{crumb:l=>l.prompt.__typename==="Prompt"?l.prompt.name:"unknown"},children:[c(a,{element:o(Po,{}),children:[o(a,{index:!0,element:o(fo,{})}),o(a,{path:"versions",loader:vo,element:o(xo,{}),children:o(a,{path:":versionId",loader:ho,element:o(yo,{})})}),o(a,{path:"config",element:o(wo,{}),loader:zo})]}),o(a,{path:"playground",element:o(So,{}),loader:ko,handle:{crumb:()=>"playground"}})]})]}),o(a,{path:"/apis",element:o(Lo,{}),handle:{crumb:()=>"APIs"}}),o(a,{path:"/support",element:o(Co,{}),handle:{crumb:()=>"Support"}}),c(a,{path:"/settings",element:o(Oo,{}),handle:{crumb:()=>"Settings"},children:[o(a,{path:"general",loader:Ro,element:o(Eo,{}),handle:{crumb:()=>"General"}}),o(a,{path:"providers",loader:Io,element:o(jo,{}),handle:{crumb:()=>"AI Providers"}}),o(a,{path:"models",loader:Ao,element:o(Do,{}),handle:{crumb:()=>"Models"}}),o(a,{path:"annotations",loader:Fo,element:o(To,{}),handle:{crumb:()=>"Annotations"}}),o(a,{path:"data",element:o(Go,{}),handle:{crumb:()=>"Data Retention"},loader:Mo}),o(a,{path:"prompts",element:o(_o,{}),handle:{crumb:()=>"Prompts"}})]}),o(a,{path:"/redirects/spans/:span_otel_id",loader:No,errorElement:o(n,{})}),o(a,{path:"/redirects/traces/:trace_otel_id",loader:Vo,errorElement:o(n,{})}),o(a,{path:"/redirects/sessions/:session_id",loader:qo,errorElement:o(n,{})})]})})]})),{basename:window.Config.basename});function da(){return o(y,{router:ta})}function ma(){return o(Uo,{children:o(Jo,{children:o(pa,{})})})}function pa(){const{theme:l}=Ho();return o(S,{theme:l,mountGlobalStyles:!1,children:c(w.RelayEnvironmentProvider,{environment:Qo,children:[o(sa,{}),o($o,{children:o(Xo,{children:o(Ko,{children:o(z.Suspense,{children:o(Yo,{children:o(da,{})})})})})})]})})}const ua=document.getElementById("root"),fa=P.createRoot(ua);fa.render(o(ma,{}));
1265
+ `;function sa(){const{theme:l="dark"}=R();return o(y,{styles:g(aa,oa,l==="dark"?la:ra,ca(l),Zo,ga,ea,ba,na,ia)})}const ta=x(z(c(a,{path:"/",errorElement:o(n,{}),element:o(Uo,{}),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(D,{}),loader:j}),o(a,{path:"/reset-password-with-token",element:o(A,{})}),o(a,{path:"/forgot-password",element:o(F,{})}),o(a,{element:o(Bo,{}),loader:T,children:c(a,{element:o(No,{}),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(q,{}),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(W,{}),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(N,{})}),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(_o,{}),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(Do,{}),handle:{crumb:()=>"Models"}}),o(a,{path:"datasets",element:o(Ao,{}),handle:{crumb:()=>"Datasets"}}),o(a,{path:"annotations",loader:Fo,element:o(To,{}),handle:{crumb:()=>"Annotations"}}),o(a,{path:"data",element:o(Go,{}),handle:{crumb:()=>"Data Retention"},loader:Mo}),o(a,{path:"prompts",element:o(Oo,{}),handle:{crumb:()=>"Prompts"}})]}),o(a,{path:"/redirects/spans/:span_otel_id",loader:Vo,errorElement:o(n,{})}),o(a,{path:"/redirects/traces/:trace_otel_id",loader:Wo,errorElement:o(n,{})}),o(a,{path:"/redirects/sessions/:session_id",loader:qo,errorElement:o(n,{})})]})})]})),{basename:window.Config.basename});function da(){return o(w,{router:ta})}function ma(){return o($o,{children:o(Ho,{children:o(pa,{})})})}function pa(){const{theme:l}=Jo();return o(C,{theme:l,mountGlobalStyles:!1,children:c(S.RelayEnvironmentProvider,{environment:Xo,children:[o(sa,{}),o(Ko,{children:o(Yo,{children:o(Qo,{children:o(k.Suspense,{children:o(da,{})})})})})]})})}const ua=document.getElementById("root"),fa=L.createRoot(ua);fa.render(o(ma,{}));