arize-phoenix 8.2.2__py3-none-any.whl → 8.4.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 (33) hide show
  1. {arize_phoenix-8.2.2.dist-info → arize_phoenix-8.4.0.dist-info}/METADATA +4 -3
  2. {arize_phoenix-8.2.2.dist-info → arize_phoenix-8.4.0.dist-info}/RECORD +33 -32
  3. phoenix/config.py +32 -5
  4. phoenix/db/models.py +1 -25
  5. phoenix/server/api/context.py +6 -2
  6. phoenix/server/api/dataloaders/__init__.py +4 -2
  7. phoenix/server/api/dataloaders/num_child_spans.py +35 -0
  8. phoenix/server/api/dataloaders/{span_fields.py → table_fields.py} +21 -19
  9. phoenix/server/api/helpers/playground_clients.py +4 -0
  10. phoenix/server/api/helpers/prompts/models.py +1 -0
  11. phoenix/server/api/queries.py +80 -20
  12. phoenix/server/api/types/Experiment.py +2 -4
  13. phoenix/server/api/types/ExperimentRun.py +2 -2
  14. phoenix/server/api/types/ExperimentRunAnnotation.py +2 -2
  15. phoenix/server/api/types/Project.py +67 -38
  16. phoenix/server/api/types/ProjectSession.py +2 -2
  17. phoenix/server/api/types/Span.py +35 -2
  18. phoenix/server/api/types/Trace.py +98 -30
  19. phoenix/server/app.py +6 -2
  20. phoenix/server/static/.vite/manifest.json +40 -40
  21. phoenix/server/static/assets/{components-MeFAEc1z.js → components-BgFPI6sn.js} +166 -167
  22. phoenix/server/static/assets/{index-BSRuZ-_J.js → index-CIkk8uHr.js} +9 -9
  23. phoenix/server/static/assets/{pages-NrL4hb9q.js → pages-CmDiPH1A.js} +660 -623
  24. phoenix/server/static/assets/{vendor-Cqfydjep.js → vendor-CRRq3WgM.js} +116 -116
  25. phoenix/server/static/assets/{vendor-arizeai-WnerlUPN.js → vendor-arizeai-Dq64X_0o.js} +1 -1
  26. phoenix/server/static/assets/{vendor-codemirror-D-ZZKLFq.js → vendor-codemirror-C1oevlym.js} +1 -1
  27. phoenix/server/static/assets/{vendor-recharts-KY97ZPfK.js → vendor-recharts-CPj01S89.js} +1 -1
  28. phoenix/server/static/assets/{vendor-shiki-D5K9GnFn.js → vendor-shiki-aY7rz1pm.js} +1 -1
  29. phoenix/version.py +1 -1
  30. {arize_phoenix-8.2.2.dist-info → arize_phoenix-8.4.0.dist-info}/WHEEL +0 -0
  31. {arize_phoenix-8.2.2.dist-info → arize_phoenix-8.4.0.dist-info}/entry_points.txt +0 -0
  32. {arize_phoenix-8.2.2.dist-info → arize_phoenix-8.4.0.dist-info}/licenses/IP_NOTICE +0 -0
  33. {arize_phoenix-8.2.2.dist-info → arize_phoenix-8.4.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
1
- import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F,e1 as L,e2 as l,v as C,e3 as E}from"./vendor-Cqfydjep.js";import{d as R,J as T,D as I,V as _,W as A}from"./vendor-arizeai-WnerlUPN.js";import{L as D,r as j,d as O,e as G,F as N,f as V,P as M,h as W,M as m,g as U,D as q,i as B,E as J,j as $,k as K,p as H,l as p,n as Y,s as Q,S as X,o as Z,q as oo,t as lo,v as u,w as f,x as y,y as ao,z as ro,A as co,B as go,C as eo,G as bo,H as no,I as io,J as so,K as to,N as mo,O as po,Q as uo,U as fo,V as yo,W as vo,X as ho,Y as xo,Z as zo,_ as wo,$ as Po,a0 as ko,a1 as So,a2 as Fo,a3 as Lo,a4 as Co,a5 as Eo,a6 as Ro,a7 as To,a8 as Io,a9 as _o}from"./pages-NrL4hb9q.js";import{W as Ao,dB as Do,b9 as jo,U as Oo,dC as Go,dD as No}from"./components-MeFAEc1z.js";import"./vendor-three-C-AGeJYv.js";import"./vendor-codemirror-D-ZZKLFq.js";import"./vendor-shiki-D5K9GnFn.js";import"./vendor-recharts-KY97ZPfK.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const g of r)if(g.type==="childList")for(const n of g.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&s(n)}).observe(document,{childList:!0,subtree:!0});function i(r){const g={};return r.integrity&&(g.integrity=r.integrity),r.referrerPolicy&&(g.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?g.credentials="include":r.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function s(r){if(r.ep)return;r.ep=!0;const g=i(r);fetch(r.href,g)}})();const v="arize-phoenix-feature-flags",d={__RESET__:!1};function Vo(){const a=localStorage.getItem(v);if(!a)return d;try{const e=JSON.parse(a);return Object.assign({},d,e)}catch{return d}}const h=t.createContext(null);function Mo(){const a=P.useContext(h);if(a===null)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider");return a}function Wo(a){const[e,i]=t.useState(Vo()),s=r=>{localStorage.setItem(v,JSON.stringify(r)),i(r)};return o(h.Provider,{value:{featureFlags:e,setFeatureFlags:s},children:o(Uo,{children:a.children})})}function Uo(a){const{children:e}=a,{featureFlags:i,setFeatureFlags:s}=Mo(),[r,g]=t.useState(!1);return z("ctrl+shift+f",()=>g(!0)),c(w,{children:[e,o(I,{type:"modal",isDismissable:!0,onDismiss:()=>g(!1),children:r&&o(R,{title:"Feature Flags",children:o(Ao,{height:"size-1000",padding:"size-100",children:Object.keys(i).map(n=>o(T,{isSelected:i[n],onChange:x=>s({...i,[n]:x}),children:n},n))})})})]})}const qo=b`
1
+ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,cm as k,e1 as S,e2 as F,e3 as L,e4 as l,v as C,e5 as E}from"./vendor-CRRq3WgM.js";import{d as R,J as I,D as T,V as j,W as _}from"./vendor-arizeai-Dq64X_0o.js";import{L as A,r as D,d as O,e as G,F as N,f as V,P as M,h as W,M as m,g as U,D as q,i as B,E as J,j as K,k as $,p as H,l as Y,n as p,o as Q,q as X,s as Z,S as oo,t as lo,v as ao,w as ro,x as co,y as u,z as f,A as y,B as go,C as eo,G as bo,H as no,I as io,J as so,K as to,N as mo,O as po,Q as uo,U as fo,V as yo,W as ho,X as vo,Y as xo,Z as zo,_ as wo,$ as Po,a0 as ko,a1 as So,a2 as Fo,a3 as Lo,a4 as Co,a5 as Eo,a6 as Ro,a7 as Io,a8 as To,a9 as jo,aa as _o,ab as Ao,ac as Do}from"./pages-CmDiPH1A.js";import{W as Oo,dB as Go,b9 as No,U as Vo,dC as Mo,dD as Wo}from"./components-BgFPI6sn.js";import"./vendor-three-C-AGeJYv.js";import"./vendor-codemirror-C1oevlym.js";import"./vendor-shiki-aY7rz1pm.js";import"./vendor-recharts-CPj01S89.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const g of r)if(g.type==="childList")for(const n of g.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&s(n)}).observe(document,{childList:!0,subtree:!0});function i(r){const g={};return r.integrity&&(g.integrity=r.integrity),r.referrerPolicy&&(g.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?g.credentials="include":r.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function s(r){if(r.ep)return;r.ep=!0;const g=i(r);fetch(r.href,g)}})();const h="arize-phoenix-feature-flags",d={__RESET__:!1};function Uo(){const a=localStorage.getItem(h);if(!a)return d;try{const e=JSON.parse(a);return Object.assign({},d,e)}catch{return d}}const v=t.createContext(null);function qo(){const a=P.useContext(v);if(a===null)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider");return a}function Bo(a){const[e,i]=t.useState(Uo()),s=r=>{localStorage.setItem(h,JSON.stringify(r)),i(r)};return o(v.Provider,{value:{featureFlags:e,setFeatureFlags:s},children:o(Jo,{children:a.children})})}function Jo(a){const{children:e}=a,{featureFlags:i,setFeatureFlags:s}=qo(),[r,g]=t.useState(!1);return z("ctrl+shift+f",()=>g(!0)),c(w,{children:[e,o(T,{type:"modal",isDismissable:!0,onDismiss:()=>g(!1),children:r&&o(R,{title:"Feature Flags",children:o(Oo,{height:"size-1000",padding:"size-100",children:Object.keys(i).map(n=>o(I,{isSelected:i[n],onChange:x=>s({...i,[n]:x}),children:n},n))})})})]})}const Ko=b`
2
2
  :root {
3
3
  --ac-global-dimension-scale-factor: 1;
4
4
  --ac-global-dimension-size-0: 0px;
@@ -53,7 +53,7 @@ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F
53
53
  --ac-global-dimension-size-5000: 400px;
54
54
  --ac-global-dimension-size-6000: 480px;
55
55
  }
56
- `,Bo=b`
56
+ `,$o=b`
57
57
  :root {
58
58
  // static colors
59
59
  --ac-global-static-color-white-900: rgba(255, 255, 255, 0.9);
@@ -63,7 +63,7 @@ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F
63
63
  --ac-global-static-color-black-700: rgba(0, 0, 0, 0.7);
64
64
  --ac-global-static-color-black-300: rgba(0, 0, 0, 0.3);
65
65
  }
66
- `,Jo=b`
66
+ `,Ho=b`
67
67
  :root {
68
68
  --ac-global-dimension-static-size-0: 0px;
69
69
  --ac-global-dimension-static-size-10: 1px;
@@ -143,7 +143,7 @@ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F
143
143
  --ac-global-dimension-font-size-1200: 50px;
144
144
  --ac-global-dimension-font-size-1300: 60px;
145
145
  }
146
- `,$o=b`
146
+ `,Yo=b`
147
147
  :root,
148
148
  .ac-theme--dark {
149
149
  /* Colors */
@@ -662,7 +662,7 @@ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F
662
662
  --ac-global-text-color-500: rgba(255, 255, 255, 0.5);
663
663
  --ac-global-text-color-300: rgba(255, 255, 255, 0.3);
664
664
  }
665
- `,Ko=b`
665
+ `,Qo=b`
666
666
  :root,
667
667
  .ac-theme--light {
668
668
  /* Colors */
@@ -908,7 +908,7 @@ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F
908
908
  --ac-global-text-color-500: rgba(0, 0, 0, 0.5);
909
909
  --ac-global-text-color-300: rgba(0, 0, 0, 0.3);
910
910
  }
911
- `,Ho=a=>b`
911
+ `,Xo=a=>b`
912
912
  :root,
913
913
  .ac-theme--${a} {
914
914
  --ac-global-background-color-default: var(--ac-global-color-grey-100);
@@ -1004,9 +1004,9 @@ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F
1004
1004
  --ac-alias-single-line-height: var(--ac-global-dimension-size-400);
1005
1005
  --ac-alias-single-line-width: var(--ac-global-dimension-size-2400);
1006
1006
  }
1007
- `,Yo=b`
1007
+ `,Zo=b`
1008
1008
  --ac-opacity-disabled: 0.6;
1009
- `,Qo=b`
1009
+ `,ol=b`
1010
1010
  body {
1011
1011
  background-color: var(--ac-global-color-grey-75);
1012
1012
  color: var(--ac-global-text-color-900);
@@ -1122,4 +1122,4 @@ import{r as t,j as o,ba as z,l as c,O as w,R as P,E as b,ck as k,d$ as S,e0 as F
1122
1122
  --px-corpus-color: #92969c;
1123
1123
  --px-corpus-color--transparent: #92969c63;
1124
1124
  }
1125
- `;function Xo(){const{theme:a="dark"}=_();return o(k,{styles:b(Jo,Bo,a==="dark"?$o:Ko,Ho(a),qo,Yo,Qo)})}const Zo=S(F(c(l,{path:"/",errorElement:o(To,{}),children:[o(l,{path:"/login",element:o(D,{})}),o(l,{path:"/reset-password",element:o(O,{}),loader:j}),o(l,{path:"/reset-password-with-token",element:o(G,{})}),o(l,{path:"/forgot-password",element:o(N,{})}),o(l,{element:o(Ro,{}),loader:V,children:c(l,{element:o(Eo,{}),children:[o(l,{path:"/profile",handle:{crumb:()=>"profile"},element:o(M,{})}),o(l,{index:!0,loader:W}),c(l,{path:"/model",handle:{crumb:()=>"model"},element:o($,{}),children:[o(l,{index:!0,element:o(m,{})}),o(l,{element:o(m,{}),children:o(l,{path:"dimensions",children:o(l,{path:":dimensionId",element:o(q,{}),loader:U})})}),o(l,{path:"embeddings",children:o(l,{path:":embeddingDimensionId",element:o(J,{}),loader:B,handle:{crumb:a=>a.embedding.name}})})]}),c(l,{path:"/projects",handle:{crumb:()=>"projects"},element:o(oo,{}),children:[o(l,{index:!0,element:o(K,{})}),c(l,{path:":projectId",element:o(Z,{}),loader:H,handle:{crumb:a=>a.project.name},children:[o(l,{index:!0,element:o(p,{})}),c(l,{element:o(p,{}),children:[o(l,{path:"traces/:traceId",element:o(Y,{})}),o(l,{path:"sessions/:sessionId",element:o(X,{}),loader:Q})]})]})]}),c(l,{path:"/datasets",handle:{crumb:()=>"datasets"},children:[o(l,{index:!0,element:o(lo,{})}),c(l,{path:":datasetId",loader:u,handle:{crumb:a=>a.dataset.name},children:[c(l,{element:o(go,{}),loader:u,children:[o(l,{index:!0,element:o(y,{}),loader:f}),o(l,{path:"experiments",element:o(y,{}),loader:f}),o(l,{path:"examples",element:o(co,{}),loader:ao,children:o(l,{path:":exampleId",element:o(ro,{})})})]}),o(l,{path:"compare",handle:{crumb:()=>"compare"},loader:eo,element:o(bo,{})})]})]}),c(l,{path:"/playground",handle:{crumb:()=>"Playground"},children:[o(l,{index:!0,element:o(no,{})}),o(l,{path:"spans/:spanId",element:o(so,{}),loader:io,handle:{crumb:a=>a.span.__typename==="Span"?`span ${a.span.context.spanId}`:"span unknown"}})]}),c(l,{path:"/prompts",handle:{crumb:()=>"prompts"},children:[o(l,{index:!0,element:o(mo,{}),loader:to}),c(l,{path:":promptId",loader:po,shouldRevalidate:()=>!0,handle:{crumb:a=>a.prompt.__typename==="Prompt"?a.prompt.name:"unknown"},children:[c(l,{element:o(wo,{}),children:[o(l,{index:!0,element:o(uo,{})}),o(l,{path:"versions",loader:fo,element:o(ho,{}),children:o(l,{path:":versionId",loader:yo,element:o(vo,{})})}),o(l,{path:"config",element:o(zo,{}),loader:xo})]}),o(l,{path:"playground",element:o(ko,{}),loader:Po,handle:{crumb:()=>"playground"}})]})]}),o(l,{path:"/apis",element:o(So,{}),handle:{crumb:()=>"APIs"}}),o(l,{path:"/support",element:o(Fo,{}),handle:{crumb:()=>"support"}}),o(l,{path:"/settings",element:o(Co,{}),loader:Lo,handle:{crumb:()=>"settings"}})]})})]})),{basename:window.Config.basename});function ol(){return o(L,{router:Zo})}function ll(){return o(Io,{children:o(Do,{children:o(al,{})})})}function al(){const{theme:a}=jo();return o(A,{theme:a,mountGlobalStyles:!1,children:c(C.RelayEnvironmentProvider,{environment:Oo,children:[o(Xo,{}),o(Wo,{children:o(Go,{children:o(_o,{children:o(t.Suspense,{children:o(No,{children:o(ol,{})})})})})})]})})}const rl=document.getElementById("root"),cl=E.createRoot(rl);cl.render(o(ll,{}));
1125
+ `;function ll(){const{theme:a="dark"}=j();return o(k,{styles:b(Ho,$o,a==="dark"?Yo:Qo,Xo(a),Ko,Zo,ol)})}const al=S(F(c(l,{path:"/",errorElement:o(_o,{}),children:[o(l,{path:"/login",element:o(A,{})}),o(l,{path:"/reset-password",element:o(O,{}),loader:D}),o(l,{path:"/reset-password-with-token",element:o(G,{})}),o(l,{path:"/forgot-password",element:o(N,{})}),o(l,{element:o(jo,{}),loader:V,children:c(l,{element:o(To,{}),children:[o(l,{path:"/profile",handle:{crumb:()=>"profile"},element:o(M,{})}),o(l,{index:!0,loader:W}),c(l,{path:"/model",handle:{crumb:()=>"model"},element:o(K,{}),children:[o(l,{index:!0,element:o(m,{})}),o(l,{element:o(m,{}),children:o(l,{path:"dimensions",children:o(l,{path:":dimensionId",element:o(q,{}),loader:U})})}),o(l,{path:"embeddings",children:o(l,{path:":embeddingDimensionId",element:o(J,{}),loader:B,handle:{crumb:a=>a.embedding.name}})})]}),c(l,{path:"/projects",handle:{crumb:()=>"projects"},element:o(ro,{}),children:[o(l,{index:!0,element:o($,{})}),c(l,{path:":projectId",loader:H,handle:{crumb:a=>a.project.name},children:[o(l,{index:!0,element:o(Y,{})}),c(l,{element:o(ao,{}),children:[o(l,{path:"traces",element:o(Q,{}),children:o(l,{path:":traceId",element:o(p,{})})}),o(l,{path:"spans",element:o(X,{}),children:o(l,{path:":traceId",element:o(p,{})})}),o(l,{path:"sessions",element:o(lo,{}),children:o(l,{path:":sessionId",element:o(oo,{}),loader:Z})})]})]})]}),c(l,{path:"/datasets",handle:{crumb:()=>"datasets"},children:[o(l,{index:!0,element:o(co,{})}),c(l,{path:":datasetId",loader:u,handle:{crumb:a=>a.dataset.name},children:[c(l,{element:o(no,{}),loader:u,children:[o(l,{index:!0,element:o(y,{}),loader:f}),o(l,{path:"experiments",element:o(y,{}),loader:f}),o(l,{path:"examples",element:o(bo,{}),loader:go,children:o(l,{path:":exampleId",element:o(eo,{})})})]}),o(l,{path:"compare",handle:{crumb:()=>"compare"},loader:io,element:o(so,{})})]})]}),c(l,{path:"/playground",handle:{crumb:()=>"Playground"},children:[o(l,{index:!0,element:o(to,{})}),o(l,{path:"spans/:spanId",element:o(po,{}),loader:mo,handle:{crumb:a=>a.span.__typename==="Span"?`span ${a.span.spanId}`:"span unknown"}})]}),c(l,{path:"/prompts",handle:{crumb:()=>"prompts"},children:[o(l,{index:!0,element:o(fo,{}),loader:uo}),c(l,{path:":promptId",loader:yo,shouldRevalidate:()=>!0,handle:{crumb:a=>a.prompt.__typename==="Prompt"?a.prompt.name:"unknown"},children:[c(l,{element:o(So,{}),children:[o(l,{index:!0,element:o(ho,{})}),o(l,{path:"versions",loader:vo,element:o(wo,{}),children:o(l,{path:":versionId",loader:xo,element:o(zo,{})})}),o(l,{path:"config",element:o(ko,{}),loader:Po})]}),o(l,{path:"playground",element:o(Lo,{}),loader:Fo,handle:{crumb:()=>"playground"}})]})]}),o(l,{path:"/apis",element:o(Co,{}),handle:{crumb:()=>"APIs"}}),o(l,{path:"/support",element:o(Eo,{}),handle:{crumb:()=>"support"}}),o(l,{path:"/settings",element:o(Io,{}),loader:Ro,handle:{crumb:()=>"settings"}})]})})]})),{basename:window.Config.basename});function rl(){return o(L,{router:al})}function cl(){return o(Ao,{children:o(Go,{children:o(gl,{})})})}function gl(){const{theme:a}=No();return o(_,{theme:a,mountGlobalStyles:!1,children:c(C.RelayEnvironmentProvider,{environment:Vo,children:[o(ll,{}),o(Bo,{children:o(Mo,{children:o(Do,{children:o(t.Suspense,{children:o(Wo,{children:o(rl,{})})})})})})]})})}const el=document.getElementById("root"),bl=E.createRoot(el);bl.render(o(cl,{}));