arize-phoenix 9.4.0__py3-none-any.whl → 9.6.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 (28) hide show
  1. {arize_phoenix-9.4.0.dist-info → arize_phoenix-9.6.0.dist-info}/METADATA +4 -4
  2. {arize_phoenix-9.4.0.dist-info → arize_phoenix-9.6.0.dist-info}/RECORD +28 -24
  3. phoenix/db/README.md +1 -1
  4. phoenix/experiments/functions.py +11 -2
  5. phoenix/server/api/helpers/playground_clients.py +1 -1
  6. phoenix/server/api/routers/v1/datasets.py +11 -3
  7. phoenix/server/api/types/Project.py +126 -5
  8. phoenix/server/api/types/Span.py +49 -0
  9. phoenix/server/api/types/TokenCountPromptDetails.py +10 -0
  10. phoenix/server/cost_tracking/__init__.py +0 -0
  11. phoenix/server/cost_tracking/cost_lookup.py +255 -0
  12. phoenix/server/cost_tracking/model_cost_manifest.json +830 -0
  13. phoenix/server/main.py +1 -1
  14. phoenix/server/static/.vite/manifest.json +41 -41
  15. phoenix/server/static/assets/{components-DIphpoYn.js → components-BqMUivPb.js} +187 -190
  16. phoenix/server/static/assets/{index-RiEaQhz1.js → index-B6aQZkI9.js} +20 -11
  17. phoenix/server/static/assets/{pages-BPhRdaQm.js → pages-C9XLSuBO.js} +800 -674
  18. phoenix/server/static/assets/{vendor-BbE93T2A.css → vendor-WIZid84E.css} +1 -1
  19. phoenix/server/static/assets/{vendor-arizeai-CGce5406.js → vendor-arizeai-BhbMHqQs.js} +1 -1
  20. phoenix/server/static/assets/{vendor-codemirror-KgXtr1rz.js → vendor-codemirror-CeLHFooz.js} +1 -1
  21. phoenix/server/static/assets/{vendor-recharts-Cm-8_DB9.js → vendor-recharts-PlWJHgM9.js} +2 -2
  22. phoenix/server/static/assets/{vendor-shiki-BsLqKLvc.js → vendor-shiki-CPwL2jwA.js} +1 -1
  23. phoenix/version.py +1 -1
  24. {arize_phoenix-9.4.0.dist-info → arize_phoenix-9.6.0.dist-info}/WHEEL +0 -0
  25. {arize_phoenix-9.4.0.dist-info → arize_phoenix-9.6.0.dist-info}/entry_points.txt +0 -0
  26. {arize_phoenix-9.4.0.dist-info → arize_phoenix-9.6.0.dist-info}/licenses/IP_NOTICE +0 -0
  27. {arize_phoenix-9.4.0.dist-info → arize_phoenix-9.6.0.dist-info}/licenses/LICENSE +0 -0
  28. /phoenix/server/static/assets/{vendor-CHbwJtRJ.js → vendor-CToBXdDM.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as z,o as w,eD as P}from"./vendor-CHbwJtRJ.js";import{K as k,M as S}from"./vendor-arizeai-CGce5406.js";import{L,r as C,g as I,h as R,F as j,i as E,P as A,j as D,M as s,k as T,D as F,l as O,E as M,n as G,o as N,p as q,q as V,s as t,t as W,v as _,w as B,x as K,y as $,z as Z,B as H,C as J,G as Q,H as U,I as X,J as Y,K as d,N as m,O as p,Q as oo,U as lo,V as ao,W as ro,X as co,Y as go,Z as eo,_ as bo,$ as no,a0 as io,a1 as so,a2 as to,a3 as mo,a4 as po,a5 as uo,a6 as fo,a7 as yo,a8 as vo,a9 as ho,aa as xo,ab as zo,ac as wo,ad as Po,ae as ko,af as So,ag as Lo,ah as Co,ai as Io,aj as Ro,ak as jo,al as Eo,am as Ao,an as Do,ao as To,ap as Fo,aq as Oo,ar as Mo,as as Go,at as No}from"./pages-BPhRdaQm.js";import{en as qo,bZ as Vo,R as Wo,eo as _o,ep as Bo}from"./components-DIphpoYn.js";import"./vendor-three-C5WAXd5r.js";import"./vendor-codemirror-KgXtr1rz.js";import"./vendor-shiki-BsLqKLvc.js";import"./vendor-recharts-Cm-8_DB9.js";(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const g of c)if(g.type==="childList")for(const n of g.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function u(c){const g={};return c.integrity&&(g.integrity=c.integrity),c.referrerPolicy&&(g.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?g.credentials="include":c.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function i(c){if(c.ep)return;c.ep=!0;const g=u(c);fetch(c.href,g)}})();const Ko=e`
1
+ import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as a,r as z,o as w,eD as P}from"./vendor-CToBXdDM.js";import{K as k,M as S}from"./vendor-arizeai-BhbMHqQs.js";import{L,r as j,g as C,h as R,F as I,i as E,P as D,j as A,M as s,k as T,D as F,l as O,E as G,n as M,o as N,p as q,q as V,s as t,t as W,v as _,w as B,x as $,y as K,z as H,B as J,C as Q,G as U,H as X,I as Y,J as Z,K as oo,N as ao,O as lo,Q as ro,U as d,V as m,W as p,X as co,Y as go,Z as eo,_ as bo,$ as no,a0 as io,a1 as so,a2 as to,a3 as mo,a4 as po,a5 as uo,a6 as fo,a7 as yo,a8 as vo,a9 as ho,aa as xo,ab as zo,ac as wo,ad as Po,ae as ko,af as So,ag as Lo,ah as jo,ai as Co,aj as Ro,ak as Io,al as Eo,am as Do,an as Ao,ao as To,ap as Fo,aq as Oo,ar as Go,as as Mo,at as No,au as qo,av as Vo,aw as Wo,ax as _o}from"./pages-C9XLSuBO.js";import{en as Bo,b$ as $o,R as Ko,eo as Ho,ep as Jo}from"./components-BqMUivPb.js";import"./vendor-three-C5WAXd5r.js";import"./vendor-codemirror-CeLHFooz.js";import"./vendor-shiki-CPwL2jwA.js";import"./vendor-recharts-PlWJHgM9.js";(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const g of c)if(g.type==="childList")for(const n of g.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function u(c){const g={};return c.integrity&&(g.integrity=c.integrity),c.referrerPolicy&&(g.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?g.credentials="include":c.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function i(c){if(c.ep)return;c.ep=!0;const g=u(c);fetch(c.href,g)}})();const Qo=e`
2
2
  :root {
3
3
  --ac-global-dimension-scale-factor: 1;
4
4
  --ac-global-dimension-size-0: 0px;
@@ -53,7 +53,7 @@ import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
53
53
  --ac-global-dimension-size-5000: 400px;
54
54
  --ac-global-dimension-size-6000: 480px;
55
55
  }
56
- `,$o=e`
56
+ `,Uo=e`
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{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
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
- `,Zo=e`
66
+ `,Xo=e`
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{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
143
143
  --ac-global-dimension-font-size-1200: 50px;
144
144
  --ac-global-dimension-font-size-1300: 60px;
145
145
  }
146
- `,Ho=e`
146
+ `,Yo=e`
147
147
  :root,
148
148
  .ac-theme--dark {
149
149
  /* Colors */
@@ -648,7 +648,7 @@ import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
648
648
  --ac-global-link-color: rgb(114, 217, 255);
649
649
  --ac-global-link-color-visited: var(--ac-global-color-purple-900);
650
650
  }
651
- `,Jo=e`
651
+ `,Zo=e`
652
652
  :root,
653
653
  .ac-theme--light {
654
654
  /* Colors */
@@ -890,9 +890,9 @@ import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
890
890
  --ac-global-link-color: rgb(9, 105, 218);
891
891
  --ac-global-link-color-visited: var(--ac-global-color-purple-900);
892
892
  }
893
- `,Qo=a=>e`
893
+ `,oa=l=>e`
894
894
  :root,
895
- .ac-theme--${a} {
895
+ .ac-theme--${l} {
896
896
  // The primary color tint for the apps
897
897
  --ac-global-color-primary: var(--ac-global-color-grey-900);
898
898
  --ac-global-color-primary-900: rgba(
@@ -1035,11 +1035,11 @@ import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
1035
1035
  --ac-alias-single-line-height: var(--ac-global-dimension-size-400);
1036
1036
  --ac-alias-single-line-width: var(--ac-global-dimension-size-2400);
1037
1037
  }
1038
- `,Uo=e`
1038
+ `,aa=e`
1039
1039
  :root {
1040
1040
  --ac-opacity-disabled: 0.6;
1041
1041
  }
1042
- `,Xo=e`
1042
+ `,la=e`
1043
1043
  body {
1044
1044
  background-color: var(--ac-global-color-grey-75);
1045
1045
  color: var(--ac-global-text-color-900);
@@ -1155,7 +1155,7 @@ import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
1155
1155
  --px-corpus-color: #92969c;
1156
1156
  --px-corpus-color--transparent: #92969c63;
1157
1157
  }
1158
- `,Yo=e`
1158
+ `,ra=e`
1159
1159
  .ac-theme--light {
1160
1160
  .cm-editor {
1161
1161
  background-color: rgba(255, 255, 255, 0.5) !important;
@@ -1172,4 +1172,13 @@ import{E as e,j as o,cO as f,ez as y,eA as v,eB as h,l as r,bW as x,eC as l,r as
1172
1172
  background-color: rgba(0, 0, 0, 0.2) !important;
1173
1173
  }
1174
1174
  }
1175
- `;function ol(){const{theme:a="dark"}=k();return o(f,{styles:e(Zo,$o,a==="dark"?Ho:Jo,Qo(a),Ko,Uo,Xo,Yo)})}const ll=y(v(r(l,{path:"/",errorElement:o(Oo,{}),children:[o(l,{path:"/v1/*",element:o(x,{to:"/",replace:!0})}),o(l,{path:"/login",element:o(L,{})}),o(l,{path:"/reset-password",element:o(I,{}),loader:C}),o(l,{path:"/reset-password-with-token",element:o(R,{})}),o(l,{path:"/forgot-password",element:o(j,{})}),o(l,{element:o(Fo,{}),loader:E,children:r(l,{element:o(To,{}),children:[o(l,{path:"/profile",handle:{crumb:()=>"profile"},element:o(A,{})}),o(l,{index:!0,loader:D}),r(l,{path:"/model",handle:{crumb:()=>"model"},element:o(G,{}),children:[o(l,{index:!0,element:o(s,{})}),o(l,{element:o(s,{}),children:o(l,{path:"dimensions",children:o(l,{path:":dimensionId",element:o(F,{}),loader:T})})}),o(l,{path:"embeddings",children:o(l,{path:":embeddingDimensionId",element:o(M,{}),loader:O,handle:{crumb:a=>a.embedding.name}})})]}),r(l,{path:"/projects",handle:{crumb:()=>"projects"},element:o(Q,{}),children:[o(l,{index:!0,element:o(N,{})}),r(l,{path:":projectId",loader:q,handle:{crumb:a=>a.project.name},element:o(J,{}),children:[o(l,{index:!0,element:o(V,{})}),r(l,{element:o(H,{}),children:[o(l,{path:"traces",element:o(W,{}),children:o(l,{path:":traceId",element:o(t,{})})}),o(l,{path:"spans",element:o(_,{}),children:o(l,{path:":traceId",element:o(t,{})})}),o(l,{path:"sessions",element:o($,{}),children:o(l,{path:":sessionId",element:o(K,{}),loader:B})}),o(l,{path:"config",element:o(Z,{})})]})]})]}),r(l,{path:"/dashboards",handle:{crumb:()=>"dashboards"},children:[o(l,{index:!0,element:o(U,{})}),o(l,{path:":dashboardId",handle:{crumb:()=>"dashboard"},element:o(X,{})})]}),r(l,{path:"/datasets",handle:{crumb:()=>"datasets"},children:[o(l,{index:!0,element:o(Y,{})}),r(l,{path:":datasetId",loader:d,handle:{crumb:a=>a.dataset.name},children:[r(l,{element:o(ro,{}),loader:d,children:[o(l,{index:!0,element:o(p,{}),loader:m}),o(l,{path:"experiments",element:o(p,{}),loader:m}),o(l,{path:"examples",element:o(ao,{}),loader:oo,children:o(l,{path:":exampleId",element:o(lo,{})})})]}),o(l,{path:"compare",handle:{crumb:()=>"compare"},loader:co,element:o(go,{})})]})]}),r(l,{path:"/playground",handle:{crumb:()=>"Playground"},children:[o(l,{index:!0,element:o(eo,{})}),o(l,{path:"spans/:spanId",element:o(no,{}),loader:bo,handle:{crumb:a=>a.span.__typename==="Span"?`span ${a.span.spanId}`:"span unknown"}})]}),r(l,{path:"/prompts",handle:{crumb:()=>"prompts"},children:[o(l,{index:!0,element:o(so,{}),loader:io}),r(l,{path:":promptId",loader:to,shouldRevalidate:()=>!0,handle:{crumb:a=>a.prompt.__typename==="Prompt"?a.prompt.name:"unknown"},children:[r(l,{element:o(xo,{}),children:[o(l,{index:!0,element:o(mo,{})}),o(l,{path:"versions",loader:po,element:o(yo,{}),children:o(l,{path:":versionId",loader:uo,element:o(fo,{})})}),o(l,{path:"config",element:o(ho,{}),loader:vo})]}),o(l,{path:"playground",element:o(wo,{}),loader:zo,handle:{crumb:()=>"playground"}})]})]}),o(l,{path:"/apis",element:o(Po,{}),handle:{crumb:()=>"APIs"}}),o(l,{path:"/support",element:o(ko,{}),handle:{crumb:()=>"support"}}),r(l,{path:"/settings",element:o(Do,{}),handle:{crumb:()=>"settings"},children:[o(l,{path:"general",loader:So,element:o(Lo,{}),handle:{crumb:()=>"general"}}),o(l,{path:"providers",loader:Co,element:o(Io,{}),handle:{crumb:()=>"providers"}}),o(l,{path:"annotations",loader:Ro,element:o(jo,{}),handle:{crumb:()=>"annotations"}}),o(l,{path:"data",element:o(Ao,{}),handle:{crumb:()=>"data retention"},loader:Eo})]})]})})]})),{basename:window.Config.basename});function al(){return o(h,{router:ll})}function rl(){return o(Mo,{children:o(qo,{children:o(cl,{})})})}function cl(){const{theme:a}=Vo();return o(S,{theme:a,mountGlobalStyles:!1,children:r(w.RelayEnvironmentProvider,{environment:Wo,children:[o(ol,{}),o(Go,{children:o(_o,{children:o(No,{children:o(z.Suspense,{children:o(Bo,{children:o(al,{})})})})})})]})})}const gl=document.getElementById("root"),el=P.createRoot(gl);el.render(o(rl,{}));
1175
+ `,ca=e`
1176
+ .react-grid-item.react-grid-placeholder {
1177
+ // the placeholder doesn't look good
1178
+ background: var(--ac-global-color-blue-500);
1179
+ opacity: 0.1;
1180
+ }
1181
+ .ac-theme--dark .react-resizable-handle {
1182
+ filter: invert(1);
1183
+ }
1184
+ `;function ga(){const{theme:l="dark"}=k();return o(f,{styles:e(Xo,Uo,l==="dark"?Yo:Zo,oa(l),Qo,aa,la,ra,ca)})}const ea=y(v(r(a,{path:"/",errorElement:o(qo,{}),children:[o(a,{path:"/v1/*",element:o(x,{to:"/",replace:!0})}),o(a,{path:"/login",element:o(L,{})}),o(a,{path:"/reset-password",element:o(C,{}),loader:j}),o(a,{path:"/reset-password-with-token",element:o(R,{})}),o(a,{path:"/forgot-password",element:o(I,{})}),o(a,{element:o(No,{}),loader:E,children:r(a,{element:o(Mo,{}),children:[o(a,{path:"/profile",handle:{crumb:()=>"profile"},element:o(D,{})}),o(a,{index:!0,loader:A}),r(a,{path:"/model",handle:{crumb:()=>"model"},element:o(M,{}),children:[o(a,{index:!0,element:o(s,{})}),o(a,{element:o(s,{}),children:o(a,{path:"dimensions",children:o(a,{path:":dimensionId",element:o(F,{}),loader:T})})}),o(a,{path:"embeddings",children:o(a,{path:":embeddingDimensionId",element:o(G,{}),loader:O,handle:{crumb:l=>l.embedding.name}})})]}),r(a,{path:"/projects",handle:{crumb:()=>"projects"},element:o(U,{}),children:[o(a,{index:!0,element:o(N,{})}),r(a,{path:":projectId",loader:q,handle:{crumb:l=>l.project.name},element:o(Q,{}),children:[o(a,{index:!0,element:o(V,{})}),r(a,{element:o(J,{}),children:[o(a,{path:"traces",element:o(W,{}),children:o(a,{path:":traceId",element:o(t,{})})}),o(a,{path:"spans",element:o(_,{}),children:o(a,{path:":traceId",element:o(t,{})})}),o(a,{path:"sessions",element:o(K,{}),children:o(a,{path:":sessionId",element:o($,{}),loader:B})}),o(a,{path:"config",element:o(H,{})})]})]})]}),r(a,{path:"/dashboards",handle:{crumb:()=>"dashboards"},element:o(lo,{}),children:[o(a,{index:!0,element:o(Y,{}),loader:X}),o(a,{path:"projects/:projectId",element:o(oo,{}),loader:Z,handle:{crumb:l=>l.project.name}}),o(a,{path:":dashboardId",handle:{crumb:()=>"dashboard"},element:o(ao,{})})]}),r(a,{path:"/datasets",handle:{crumb:()=>"datasets"},children:[o(a,{index:!0,element:o(ro,{})}),r(a,{path:":datasetId",loader:d,handle:{crumb:l=>l.dataset.name},children:[r(a,{element:o(bo,{}),loader:d,children:[o(a,{index:!0,element:o(p,{}),loader:m}),o(a,{path:"experiments",element:o(p,{}),loader:m}),o(a,{path:"examples",element:o(eo,{}),loader:co,children:o(a,{path:":exampleId",element:o(go,{})})})]}),o(a,{path:"compare",handle:{crumb:()=>"compare"},loader:no,element:o(io,{})})]})]}),r(a,{path:"/playground",handle:{crumb:()=>"Playground"},children:[o(a,{index:!0,element:o(so,{})}),o(a,{path:"spans/:spanId",element:o(mo,{}),loader:to,handle:{crumb:l=>l.span.__typename==="Span"?`span ${l.span.spanId}`:"span unknown"}})]}),r(a,{path:"/prompts",handle:{crumb:()=>"prompts"},children:[o(a,{index:!0,element:o(uo,{}),loader:po}),r(a,{path:":promptId",loader:fo,shouldRevalidate:()=>!0,handle:{crumb:l=>l.prompt.__typename==="Prompt"?l.prompt.name:"unknown"},children:[r(a,{element:o(ko,{}),children:[o(a,{index:!0,element:o(yo,{})}),o(a,{path:"versions",loader:vo,element:o(zo,{}),children:o(a,{path:":versionId",loader:ho,element:o(xo,{})})}),o(a,{path:"config",element:o(Po,{}),loader:wo})]}),o(a,{path:"playground",element:o(Lo,{}),loader:So,handle:{crumb:()=>"playground"}})]})]}),o(a,{path:"/apis",element:o(jo,{}),handle:{crumb:()=>"APIs"}}),o(a,{path:"/support",element:o(Co,{}),handle:{crumb:()=>"support"}}),r(a,{path:"/settings",element:o(Go,{}),handle:{crumb:()=>"settings"},children:[o(a,{path:"general",loader:Ro,element:o(Io,{}),handle:{crumb:()=>"general"}}),o(a,{path:"providers",loader:Eo,element:o(Do,{}),handle:{crumb:()=>"providers"}}),o(a,{path:"annotations",loader:Ao,element:o(To,{}),handle:{crumb:()=>"annotations"}}),o(a,{path:"data",element:o(Oo,{}),handle:{crumb:()=>"data retention"},loader:Fo})]})]})})]})),{basename:window.Config.basename});function ba(){return o(h,{router:ea})}function na(){return o(Vo,{children:o(Bo,{children:o(ia,{})})})}function ia(){const{theme:l}=$o();return o(S,{theme:l,mountGlobalStyles:!1,children:r(w.RelayEnvironmentProvider,{environment:Ko,children:[o(ga,{}),o(Wo,{children:o(Ho,{children:o(_o,{children:o(z.Suspense,{children:o(Jo,{children:o(ba,{})})})})})})]})})}const sa=document.getElementById("root"),ta=P.createRoot(sa);ta.render(o(na,{}));