arize-phoenix 4.26.0__py3-none-any.whl → 4.27.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-4.26.0.dist-info → arize_phoenix-4.27.0.dist-info}/METADATA +2 -3
- {arize_phoenix-4.26.0.dist-info → arize_phoenix-4.27.0.dist-info}/RECORD +18 -18
- phoenix/inferences/fixtures.py +14 -8
- phoenix/server/api/routers/v1/experiments.py +55 -1
- phoenix/server/api/routers/v1/utils.py +2 -2
- phoenix/server/app.py +149 -26
- phoenix/server/main.py +71 -7
- phoenix/server/static/.vite/manifest.json +9 -9
- phoenix/server/static/assets/{components-1Ahruijo.js → components-1MfQimGx.js} +3 -3
- phoenix/server/static/assets/index-B263sE2x.js +100 -0
- phoenix/server/static/assets/{pages-CFS6mPnW.js → pages-CqZDVx20.js} +180 -171
- phoenix/session/client.py +17 -1
- phoenix/trace/dsl/helpers.py +3 -1
- phoenix/trace/fixtures.py +47 -4
- phoenix/version.py +1 -1
- phoenix/server/static/assets/index-BEE_RWJx.js +0 -100
- {arize_phoenix-4.26.0.dist-info → arize_phoenix-4.27.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-4.26.0.dist-info → arize_phoenix-4.27.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-4.26.0.dist-info → arize_phoenix-4.27.0.dist-info}/licenses/LICENSE +0 -0
phoenix/server/main.py
CHANGED
|
@@ -48,6 +48,7 @@ from phoenix.trace.fixtures import (
|
|
|
48
48
|
TRACES_FIXTURES,
|
|
49
49
|
get_dataset_fixtures,
|
|
50
50
|
get_evals_from_fixture,
|
|
51
|
+
get_trace_fixtures_by_project_name,
|
|
51
52
|
load_example_traces,
|
|
52
53
|
reset_fixture_span_ids_and_timestamps,
|
|
53
54
|
send_dataset_fixtures,
|
|
@@ -135,7 +136,7 @@ if __name__ == "__main__":
|
|
|
135
136
|
parser.add_argument("--export_path")
|
|
136
137
|
parser.add_argument("--host", type=str, required=False)
|
|
137
138
|
parser.add_argument("--port", type=int, required=False)
|
|
138
|
-
parser.add_argument("--read-only",
|
|
139
|
+
parser.add_argument("--read-only", action="store_true", required=False) # Default is False
|
|
139
140
|
parser.add_argument("--no-internet", action="store_true")
|
|
140
141
|
parser.add_argument("--umap_params", type=str, required=False, default=DEFAULT_UMAP_PARAMS_STR)
|
|
141
142
|
parser.add_argument("--debug", action="store_true")
|
|
@@ -144,6 +145,43 @@ if __name__ == "__main__":
|
|
|
144
145
|
parser.add_argument("--no-ui", action="store_true")
|
|
145
146
|
subparsers = parser.add_subparsers(dest="command", required=True)
|
|
146
147
|
serve_parser = subparsers.add_parser("serve")
|
|
148
|
+
serve_parser.add_argument(
|
|
149
|
+
"--with-fixture",
|
|
150
|
+
type=str,
|
|
151
|
+
required=False,
|
|
152
|
+
default="",
|
|
153
|
+
help=("Name of an inference fixture. Example: 'fixture1'"),
|
|
154
|
+
)
|
|
155
|
+
serve_parser.add_argument(
|
|
156
|
+
"--with-trace-fixtures",
|
|
157
|
+
type=str,
|
|
158
|
+
required=False,
|
|
159
|
+
default="",
|
|
160
|
+
help=(
|
|
161
|
+
"Comma separated list of tracing fixture names (spaces are ignored). "
|
|
162
|
+
"Example: 'fixture1, fixture2'"
|
|
163
|
+
),
|
|
164
|
+
)
|
|
165
|
+
serve_parser.add_argument(
|
|
166
|
+
"--with-projects",
|
|
167
|
+
type=str,
|
|
168
|
+
required=False,
|
|
169
|
+
default="",
|
|
170
|
+
help=(
|
|
171
|
+
"Comma separated list of project names (spaces are ignored). "
|
|
172
|
+
"Example: 'project1, project2'"
|
|
173
|
+
),
|
|
174
|
+
)
|
|
175
|
+
serve_parser.add_argument(
|
|
176
|
+
"--force-fixture-ingestion",
|
|
177
|
+
action="store_true", # default is False
|
|
178
|
+
required=False,
|
|
179
|
+
help=(
|
|
180
|
+
"Whether or not to check the database age before adding the fixtures. "
|
|
181
|
+
"Default is False, i.e., fixtures will only be added if the "
|
|
182
|
+
"database is new."
|
|
183
|
+
),
|
|
184
|
+
)
|
|
147
185
|
datasets_parser = subparsers.add_parser("datasets")
|
|
148
186
|
datasets_parser.add_argument("--primary", type=str, required=True)
|
|
149
187
|
datasets_parser.add_argument("--reference", type=str, required=False)
|
|
@@ -151,12 +189,14 @@ if __name__ == "__main__":
|
|
|
151
189
|
datasets_parser.add_argument("--trace", type=str, required=False)
|
|
152
190
|
fixture_parser = subparsers.add_parser("fixture")
|
|
153
191
|
fixture_parser.add_argument("fixture", type=str, choices=[fixture.name for fixture in FIXTURES])
|
|
154
|
-
fixture_parser.add_argument("--primary-only",
|
|
192
|
+
fixture_parser.add_argument("--primary-only", action="store_true") # Default is False
|
|
155
193
|
trace_fixture_parser = subparsers.add_parser("trace-fixture")
|
|
156
194
|
trace_fixture_parser.add_argument(
|
|
157
195
|
"fixture", type=str, choices=[fixture.name for fixture in TRACES_FIXTURES]
|
|
158
196
|
)
|
|
159
|
-
trace_fixture_parser.add_argument(
|
|
197
|
+
trace_fixture_parser.add_argument(
|
|
198
|
+
"--simulate-streaming", action="store_true"
|
|
199
|
+
) # Default is False
|
|
160
200
|
demo_parser = subparsers.add_parser("demo")
|
|
161
201
|
demo_parser.add_argument("fixture", type=str, choices=[fixture.name for fixture in FIXTURES])
|
|
162
202
|
demo_parser.add_argument(
|
|
@@ -164,10 +204,12 @@ if __name__ == "__main__":
|
|
|
164
204
|
)
|
|
165
205
|
demo_parser.add_argument("--simulate-streaming", action="store_true")
|
|
166
206
|
args = parser.parse_args()
|
|
207
|
+
|
|
167
208
|
db_connection_str = (
|
|
168
209
|
args.database_url if args.database_url else get_env_database_connection_str()
|
|
169
210
|
)
|
|
170
211
|
export_path = Path(args.export_path) if args.export_path else EXPORT_DIR
|
|
212
|
+
force_fixture_ingestion = False
|
|
171
213
|
if args.command == "datasets":
|
|
172
214
|
primary_inferences_name = args.primary
|
|
173
215
|
reference_inferences_name = args.reference
|
|
@@ -202,7 +244,26 @@ if __name__ == "__main__":
|
|
|
202
244
|
)
|
|
203
245
|
trace_dataset_name = args.trace_fixture
|
|
204
246
|
simulate_streaming = args.simulate_streaming
|
|
205
|
-
|
|
247
|
+
elif args.command == "serve":
|
|
248
|
+
# We use sets to avoid duplicates
|
|
249
|
+
tracing_fixture_names = set()
|
|
250
|
+
if args.with_fixture:
|
|
251
|
+
primary_inferences, reference_inferences, corpus_inferences = get_inferences(
|
|
252
|
+
str(args.with_fixture),
|
|
253
|
+
args.no_internet,
|
|
254
|
+
)
|
|
255
|
+
if args.with_trace_fixtures:
|
|
256
|
+
tracing_fixture_names.update(
|
|
257
|
+
[name.strip() for name in args.with_trace_fixtures.split(",")]
|
|
258
|
+
)
|
|
259
|
+
if args.with_projects:
|
|
260
|
+
project_names = [name.strip() for name in args.with_projects.split(",")]
|
|
261
|
+
tracing_fixture_names.update(
|
|
262
|
+
fixture.name
|
|
263
|
+
for name in project_names
|
|
264
|
+
for fixture in get_trace_fixtures_by_project_name(name)
|
|
265
|
+
)
|
|
266
|
+
force_fixture_ingestion = args.force_fixture_ingestion
|
|
206
267
|
host: Optional[str] = args.host or get_env_host()
|
|
207
268
|
display_host = host or "localhost"
|
|
208
269
|
# If the host is "::", the convention is to bind to all interfaces. However, uvicorn
|
|
@@ -260,6 +321,9 @@ if __name__ == "__main__":
|
|
|
260
321
|
engine = create_engine_and_run_migrations(db_connection_str)
|
|
261
322
|
instrumentation_cleanups = instrument_engine_if_enabled(engine)
|
|
262
323
|
factory = DbSessionFactory(db=_db(engine), dialect=engine.dialect.name)
|
|
324
|
+
corpus_model = (
|
|
325
|
+
None if corpus_inferences is None else create_model_from_inferences(corpus_inferences)
|
|
326
|
+
)
|
|
263
327
|
# Print information about the server
|
|
264
328
|
msg = _WELCOME_MESSAGE.format(
|
|
265
329
|
version=version("arize-phoenix"),
|
|
@@ -278,9 +342,7 @@ if __name__ == "__main__":
|
|
|
278
342
|
model=model,
|
|
279
343
|
authentication_enabled=authentication_enabled,
|
|
280
344
|
umap_params=umap_params,
|
|
281
|
-
corpus=
|
|
282
|
-
if corpus_inferences is None
|
|
283
|
-
else create_model_from_inferences(corpus_inferences),
|
|
345
|
+
corpus=corpus_model,
|
|
284
346
|
debug=args.debug,
|
|
285
347
|
dev=args.dev,
|
|
286
348
|
serve_ui=not args.no_ui,
|
|
@@ -291,6 +353,8 @@ if __name__ == "__main__":
|
|
|
291
353
|
startup_callbacks=[lambda: print(msg)],
|
|
292
354
|
shutdown_callbacks=instrumentation_cleanups,
|
|
293
355
|
secret=secret,
|
|
356
|
+
tracing_fixture_names=tracing_fixture_names,
|
|
357
|
+
force_fixture_ingestion=force_fixture_ingestion,
|
|
294
358
|
)
|
|
295
359
|
server = Server(config=Config(app, host=host, port=port, root_path=host_root_path)) # type: ignore
|
|
296
360
|
Thread(target=_write_pid_file_when_ready, args=(server,), daemon=True).start()
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_components-
|
|
3
|
-
"file": "assets/components-
|
|
2
|
+
"_components-1MfQimGx.js": {
|
|
3
|
+
"file": "assets/components-1MfQimGx.js",
|
|
4
4
|
"name": "components",
|
|
5
5
|
"imports": [
|
|
6
6
|
"_vendor-aSQri0vz.js",
|
|
7
7
|
"_vendor-arizeai-CsdcB1NH.js",
|
|
8
|
-
"_pages-
|
|
8
|
+
"_pages-CqZDVx20.js",
|
|
9
9
|
"_vendor-three-DwGkEfCM.js",
|
|
10
10
|
"_vendor-codemirror-CYHkhs7D.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
-
"_pages-
|
|
14
|
-
"file": "assets/pages-
|
|
13
|
+
"_pages-CqZDVx20.js": {
|
|
14
|
+
"file": "assets/pages-CqZDVx20.js",
|
|
15
15
|
"name": "pages",
|
|
16
16
|
"imports": [
|
|
17
17
|
"_vendor-aSQri0vz.js",
|
|
18
|
-
"_components-
|
|
18
|
+
"_components-1MfQimGx.js",
|
|
19
19
|
"_vendor-arizeai-CsdcB1NH.js",
|
|
20
20
|
"_vendor-recharts-B0sannek.js",
|
|
21
21
|
"_vendor-codemirror-CYHkhs7D.js"
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"name": "vendor-three"
|
|
62
62
|
},
|
|
63
63
|
"index.tsx": {
|
|
64
|
-
"file": "assets/index-
|
|
64
|
+
"file": "assets/index-B263sE2x.js",
|
|
65
65
|
"name": "index",
|
|
66
66
|
"src": "index.tsx",
|
|
67
67
|
"isEntry": true,
|
|
68
68
|
"imports": [
|
|
69
69
|
"_vendor-aSQri0vz.js",
|
|
70
70
|
"_vendor-arizeai-CsdcB1NH.js",
|
|
71
|
-
"_pages-
|
|
72
|
-
"_components-
|
|
71
|
+
"_pages-CqZDVx20.js",
|
|
72
|
+
"_components-1MfQimGx.js",
|
|
73
73
|
"_vendor-three-DwGkEfCM.js",
|
|
74
74
|
"_vendor-recharts-B0sannek.js",
|
|
75
75
|
"_vendor-codemirror-CYHkhs7D.js"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as je,p as Dt,d as qe,r as p,j as n,R as W,n as Fn,a as we,C as De,b as U,s as Et,e as Ft,f as ie,g as Se,h as Ke,i as Te,k as Le,l as Vt,m as _t,o as ae,q as Pt,t as Nt,u as Rt,v as s,w as m,x as Fe,$ as P,L as Vn,y as Ot,z as Kt,A as At,B as zt,D as cn,F as Ve,E as se,G as $t,H as Gt,I as _n,S as Bt,J as Qt,Q as dn,K as Ht,M as Ut,N as Zt,P as Ae,O as Pn,T as jt,U as qt,V as Wt,W as Jt,X as Xt,Y as Yt,Z as ea,_ as na,a0 as ta,a1 as We,a2 as Q,a3 as Nn,a4 as aa,a5 as ra,a6 as ia,a7 as la,a8 as oa}from"./vendor-aSQri0vz.js";import{u as sa,_ as q,a as _e,b as $,c as N,T as R,F as Rn,d as Z,I,e as w,f as G,A as ca,g as On,h as C,i as D,j as z,k as da,l as ua,P as ma,R as H,m as Pe,n as pa,o as ga,L as Je,p as J,q as X,r as Ne,s as ha,t as Kn,E as An,v as fa,w as La,x as ya,y as va,z as ba,B as Ca}from"./vendor-arizeai-CsdcB1NH.js";import{u as ka}from"./pages-
|
|
1
|
+
import{c as je,p as Dt,d as qe,r as p,j as n,R as W,n as Fn,a as we,C as De,b as U,s as Et,e as Ft,f as ie,g as Se,h as Ke,i as Te,k as Le,l as Vt,m as _t,o as ae,q as Pt,t as Nt,u as Rt,v as s,w as m,x as Fe,$ as P,L as Vn,y as Ot,z as Kt,A as At,B as zt,D as cn,F as Ve,E as se,G as $t,H as Gt,I as _n,S as Bt,J as Qt,Q as dn,K as Ht,M as Ut,N as Zt,P as Ae,O as Pn,T as jt,U as qt,V as Wt,W as Jt,X as Xt,Y as Yt,Z as ea,_ as na,a0 as ta,a1 as We,a2 as Q,a3 as Nn,a4 as aa,a5 as ra,a6 as ia,a7 as la,a8 as oa}from"./vendor-aSQri0vz.js";import{u as sa,_ as q,a as _e,b as $,c as N,T as R,F as Rn,d as Z,I,e as w,f as G,A as ca,g as On,h as C,i as D,j as z,k as da,l as ua,P as ma,R as H,m as Pe,n as pa,o as ga,L as Je,p as J,q as X,r as Ne,s as ha,t as Kn,E as An,v as fa,w as La,x as ya,y as va,z as ba,B as Ca}from"./vendor-arizeai-CsdcB1NH.js";import{u as ka}from"./pages-CqZDVx20.js";import{V as xa}from"./vendor-three-DwGkEfCM.js";import{j as zn,E as $n,l as Gn,a as Bn,R as Xe,n as Ye,p as wa}from"./vendor-codemirror-CYHkhs7D.js";const Sa=e=>{const t=a=>({markdownDisplayMode:"text",setMarkdownDisplayMode:r=>{a({markdownDisplayMode:r})},traceStreamingEnabled:!0,setTraceStreamingEnabled:r=>{a({traceStreamingEnabled:r})},showSpanAside:!0,setShowSpanAside:r=>{a({showSpanAside:r})},showMetricsInTraceTree:!0,setShowMetricsInTraceTree:r=>{a({showMetricsInTraceTree:r})},...e});return je()(Dt(qe(t),{name:"arize-phoenix-preferences"}))},Qn=p.createContext(null);function Rl({children:e,...t}){const a=p.useRef();return a.current||(a.current=Sa(t)),n(Qn.Provider,{value:a.current,children:e})}function be(e,t){const a=W.useContext(Qn);if(!a)throw new Error("Missing PreferencesContext.Provider in the tree");return Fn(a,e,t)}var A=(e=>(e.primary="primary",e.reference="reference",e.corpus="corpus",e))(A||{});function V(e){throw new Error("Unreachable")}function en(e){return typeof e=="number"||e===null}function Ma(e){return typeof e=="string"||e===null}function Ol(e){return Array.isArray(e)?e.every(t=>typeof t=="string"):!1}function Ta(e){return typeof e=="object"&&e!==null}const nn=p.createContext(null);function Re(){const e=W.useContext(nn);if(e===null)throw new Error("useInferences must be used within a InferencesProvider");return e}function Kl(e){return n(nn.Provider,{value:{primaryInferences:e.primaryInferences,referenceInferences:e.referenceInferences,corpusInferences:e.corpusInferences,getInferencesNameByRole:t=>{var a,r;switch(t){case A.primary:return e.primaryInferences.name;case A.reference:return((a=e.referenceInferences)==null?void 0:a.name)??"reference";case A.corpus:return((r=e.corpusInferences)==null?void 0:r.name)??"corpus";default:V()}}},children:e.children})}const Hn=function(){var e={defaultValue:null,kind:"LocalArgument",name:"clusters"},t={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},a={defaultValue:null,kind:"LocalArgument",name:"fetchDataQualityMetric"},r={defaultValue:null,kind:"LocalArgument",name:"fetchPerformanceMetric"},i={defaultValue:null,kind:"LocalArgument",name:"performanceMetric"},l=[{alias:null,args:null,kind:"ScalarField",name:"primaryValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"referenceValue",storageKey:null}],o=[{alias:null,args:[{kind:"Variable",name:"clusters",variableName:"clusters"}],concreteType:"Cluster",kind:"LinkedField",name:"clusters",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"eventIds",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"driftRatio",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"primaryToCorpusRatio",storageKey:null},{condition:"fetchDataQualityMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"columnName",variableName:"dataQualityMetricColumnName"},{kind:"Literal",name:"metric",value:"mean"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"dataQualityMetric",plural:!1,selections:l,storageKey:null}]},{condition:"fetchPerformanceMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"metric",variableName:"performanceMetric"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"performanceMetric",plural:!1,selections:l,storageKey:null}]}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,a,r,i],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:o,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,a,t,r,i],kind:"Operation",name:"pointCloudStore_clusterMetricsQuery",selections:o},params:{cacheID:"86666967012812887ac0a0149d2d2535",id:null,metadata:{},name:"pointCloudStore_clusterMetricsQuery",operationKind:"query",text:`query pointCloudStore_clusterMetricsQuery(
|
|
2
2
|
$clusters: [ClusterInput!]!
|
|
3
3
|
$fetchDataQualityMetric: Boolean!
|
|
4
4
|
$dataQualityMetricColumnName: String
|
|
@@ -1064,7 +1064,7 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
|
|
|
1064
1064
|
&:hover {
|
|
1065
1065
|
color: var(--ac-global-color-primary);
|
|
1066
1066
|
}
|
|
1067
|
-
`,children:n(I,{svg:e.isExpanded?n(w.ChevronDownOutline,{}):n(w.ChevronRightOutline,{})})})}function wl(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 305.92 350.13",width:
|
|
1067
|
+
`,children:n(I,{svg:e.isExpanded?n(w.ChevronDownOutline,{}):n(w.ChevronRightOutline,{})})})}function wl(e){const{size:t=28}=e;return s("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 305.92 350.13",width:t,height:t,css:m`
|
|
1068
1068
|
.cls-1 {
|
|
1069
1069
|
fill: url(#linear-gradient);
|
|
1070
1070
|
}
|
|
@@ -1217,4 +1217,4 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
|
|
|
1217
1217
|
right: var(--ac-global-dimension-size-100);
|
|
1218
1218
|
z-index: 1;
|
|
1219
1219
|
}
|
|
1220
|
-
`,children:[n(mr,{text:t}),n(Ll,{value:t})]})}function to({sequenceNumber:e}){return s(Je,{color:"yellow-1000",children:["#",e]})}export{g1 as $,pe as A,e1 as B,v1 as C,Ra as D,E1 as E,ve as F,gt as G,de as H,D1 as I,m1 as J,an as K,dr as L,o1 as M,p1 as N,h1 as O,Wl as P,$l as Q,xe as R,re as S,ql as T,zl as U,Gl as V,Bl as W,s1 as X,f1 as Y,i1 as Z,u1 as _,qa as a,ar as a$,L1 as a0,d1 as a1,er as a2,x1 as a3,I1 as a4,dt as a5,nr as a6,l1 as a7,me as a8,Ei as a9,c1 as aA,Ul as aB,Yl as aC,B1 as aD,lt as aE,Q1 as aF,rl as aG,H1 as aH,G1 as aI,Y1 as aJ,W1 as aK,q1 as aL,X1 as aM,Z1 as aN,U1 as aO,j1 as aP,J1 as aQ,Ql as aR,Kl as aS,$1 as aT,eo as aU,t1 as aV,no as aW,Ka as aX,A1 as aY,Di as aZ,to as a_,Ti as aa,Zl as ab,_i as ac,Pi as ad,Vi as ae,Ni as af,F1 as ag,mr as ah,Xa as ai,n1 as aj,z1 as ak,Cl as al,fl as am,be as an,K1 as ao,P1 as ap,Ol as aq,tl as ar,N1 as as,O1 as at,R1 as au,_1 as av,V1 as aw,kl as ax,Ii as ay,Ya as az,Jl as b,or as b0,Xl as b1,Al as b2,
|
|
1220
|
+
`,children:[n(mr,{text:t}),n(Ll,{value:t})]})}function to({sequenceNumber:e}){return s(Je,{color:"yellow-1000",children:["#",e]})}export{g1 as $,pe as A,e1 as B,v1 as C,Ra as D,E1 as E,ve as F,gt as G,de as H,D1 as I,m1 as J,an as K,dr as L,o1 as M,p1 as N,h1 as O,Wl as P,$l as Q,xe as R,re as S,ql as T,zl as U,Gl as V,Bl as W,s1 as X,f1 as Y,i1 as Z,u1 as _,qa as a,ar as a$,L1 as a0,d1 as a1,er as a2,x1 as a3,I1 as a4,dt as a5,nr as a6,l1 as a7,me as a8,Ei as a9,c1 as aA,Ul as aB,Yl as aC,B1 as aD,lt as aE,Q1 as aF,rl as aG,H1 as aH,G1 as aI,Y1 as aJ,W1 as aK,q1 as aL,X1 as aM,Z1 as aN,U1 as aO,j1 as aP,J1 as aQ,Ql as aR,Kl as aS,$1 as aT,eo as aU,t1 as aV,no as aW,Ka as aX,A1 as aY,Di as aZ,to as a_,Ti as aa,Zl as ab,_i as ac,Pi as ad,Vi as ae,Ni as af,F1 as ag,mr as ah,Xa as ai,n1 as aj,z1 as ak,Cl as al,fl as am,be as an,K1 as ao,P1 as ap,Ol as aq,tl as ar,N1 as as,O1 as at,R1 as au,_1 as av,V1 as aw,kl as ax,Ii as ay,Ya as az,Jl as b,or as b0,Xl as b1,Al as b2,wl as b3,jl as b4,Rl as b5,Hl as b6,a1 as c,B as d,Na as e,y as f,nt as g,V as h,pr as i,w1 as j,S1 as k,M1 as l,C1 as m,k1 as n,T1 as o,Ue as p,b1 as q,y1 as r,Cn as s,ot as t,Re as u,Dr as v,Er as w,qn as x,Rr as y,r1 as z};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import{r as d,j as e,d3 as P,v as s,F,R as v,w as E,aP as S,d4 as L,d5 as R,d6 as a,d7 as w,d8 as z,b as A,d9 as j}from"./vendor-aSQri0vz.js";import{S as C,j as k,Z as $,U as _,t as I,a4 as O}from"./vendor-arizeai-CsdcB1NH.js";import{E as T,L as D,a as N,h as G,M,b as m,D as U,d as B,c as q,e as J,P as K,f as W,T as H,p as V,g,i as Y,j as Z,k as u,l as Q,m as h,n as b,o as X,q as ee,r as re,s as ae,t as te,A as oe,S as ne,F as se}from"./pages-CqZDVx20.js";import{b4 as ie,d as le,R as ce,b5 as de,b6 as pe}from"./components-1MfQimGx.js";import"./vendor-three-DwGkEfCM.js";import"./vendor-recharts-B0sannek.js";import"./vendor-codemirror-CYHkhs7D.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))c(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function l(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(t){if(t.ep)return;t.ep=!0;const o=l(t);fetch(t.href,o)}})();const x="arize-phoenix-feature-flags",p={__CLEAR__:!0};function me(){const r=localStorage.getItem(x);if(!r)return p;try{const n=JSON.parse(r);return Object.assign({},p,n)}catch{return p}}const f=d.createContext(null);function ge(){const r=v.useContext(f);if(r===null)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider");return r}function ue(r){const[n,l]=d.useState(me()),c=t=>{localStorage.setItem(x,JSON.stringify(t)),l(t)};return e(f.Provider,{value:{featureFlags:n,setFeatureFlags:c},children:e(he,{children:r.children})})}function he(r){const{children:n}=r,{featureFlags:l,setFeatureFlags:c}=ge(),[t,o]=d.useState(!1);return P("ctrl+shift+f",()=>o(!0)),s(F,{children:[n,e(_,{type:"modal",isDismissable:!0,onDismiss:()=>o(!1),children:t&&e(C,{title:"Feature Flags",children:e(k,{height:"size-1000",padding:"size-100",children:Object.keys(l).map(i=>e($,{isSelected:l[i],onChange:y=>c({...l,[i]:y}),children:i},i))})})})]})}function be(){return e(S,{styles:r=>E`
|
|
2
|
+
body {
|
|
3
|
+
background-color: var(--ac-global-color-grey-75);
|
|
4
|
+
color: var(--ac-global-text-color-900);
|
|
5
|
+
font-family: "Roboto";
|
|
6
|
+
font-size: ${r.typography.sizes.medium.fontSize}px;
|
|
7
|
+
margin: 0;
|
|
8
|
+
#root,
|
|
9
|
+
#root > div[data-overlay-container="true"],
|
|
10
|
+
#root > div[data-overlay-container="true"] > .ac-theme {
|
|
11
|
+
height: 100vh;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Remove list styling */
|
|
16
|
+
ul {
|
|
17
|
+
display: block;
|
|
18
|
+
list-style-type: none;
|
|
19
|
+
margin-block-start: none;
|
|
20
|
+
margin-block-end: 0;
|
|
21
|
+
padding-inline-start: 0;
|
|
22
|
+
margin-block-start: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* A reset style for buttons */
|
|
26
|
+
.button--reset {
|
|
27
|
+
background: none;
|
|
28
|
+
border: none;
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
/* this css class is added to html via modernizr @see modernizr.js */
|
|
32
|
+
.no-hiddenscroll {
|
|
33
|
+
/* Works on Firefox */
|
|
34
|
+
* {
|
|
35
|
+
scrollbar-width: thin;
|
|
36
|
+
scrollbar-color: var(--ac-global-color-grey-300)
|
|
37
|
+
var(--ac-global-color-grey-400);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Works on Chrome, Edge, and Safari */
|
|
41
|
+
*::-webkit-scrollbar {
|
|
42
|
+
width: 14px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
*::-webkit-scrollbar-track {
|
|
46
|
+
background: var(--ac-global-color-grey-100);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
*::-webkit-scrollbar-thumb {
|
|
50
|
+
background-color: var(--ac-global-color-grey-75);
|
|
51
|
+
border-radius: 8px;
|
|
52
|
+
border: 1px solid var(--ac-global-color-grey-300);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:root {
|
|
57
|
+
--px-blue-color: ${r.colors.arizeBlue};
|
|
58
|
+
|
|
59
|
+
--px-flex-gap-sm: ${r.spacing.margin4}px;
|
|
60
|
+
--px-flex-gap-sm: ${r.spacing.margin8}px;
|
|
61
|
+
|
|
62
|
+
--px-section-background-color: ${r.colors.gray500};
|
|
63
|
+
|
|
64
|
+
/* An item is a typically something in a list */
|
|
65
|
+
--px-item-background-color: ${r.colors.gray800};
|
|
66
|
+
--px-item-border-color: ${r.colors.gray600};
|
|
67
|
+
|
|
68
|
+
--px-spacing-sm: ${r.spacing.padding4}px;
|
|
69
|
+
--px-spacing-med: ${r.spacing.padding8}px;
|
|
70
|
+
--px-spacing-lg: ${r.spacing.padding16}px;
|
|
71
|
+
|
|
72
|
+
--px-border-radius-med: ${r.borderRadius.medium}px;
|
|
73
|
+
|
|
74
|
+
--px-font-size-sm: ${r.typography.sizes.small.fontSize}px;
|
|
75
|
+
--px-font-size-med: ${r.typography.sizes.medium.fontSize}px;
|
|
76
|
+
--px-font-size-lg: ${r.typography.sizes.large.fontSize}px;
|
|
77
|
+
|
|
78
|
+
--px-gradient-bar-height: 8px;
|
|
79
|
+
|
|
80
|
+
--px-nav-collapsed-width: 45px;
|
|
81
|
+
--px-nav-expanded-width: 200px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ac-theme--dark {
|
|
85
|
+
--px-primary-color: #9efcfd;
|
|
86
|
+
--px-primary-color--transparent: rgb(158, 252, 253, 0.2);
|
|
87
|
+
--px-reference-color: #baa1f9;
|
|
88
|
+
--px-reference-color--transparent: #baa1f982;
|
|
89
|
+
--px-corpus-color: #92969c;
|
|
90
|
+
--px-corpus-color--transparent: #92969c63;
|
|
91
|
+
}
|
|
92
|
+
.ac-theme--light {
|
|
93
|
+
--px-primary-color: #00add0;
|
|
94
|
+
--px-primary-color--transparent: rgba(0, 173, 208, 0.2);
|
|
95
|
+
--px-reference-color: #4500d9;
|
|
96
|
+
--px-reference-color--transparent: rgba(69, 0, 217, 0.2);
|
|
97
|
+
--px-corpus-color: #92969c;
|
|
98
|
+
--px-corpus-color--transparent: #92969c63;
|
|
99
|
+
}
|
|
100
|
+
`})}const xe=L(R(s(a,{path:"/",errorElement:e(T,{}),children:[e(a,{path:"/login",element:e(D,{})}),s(a,{element:e(N,{}),children:[e(a,{index:!0,loader:G}),s(a,{path:"/model",handle:{crumb:()=>"model"},element:e(M,{}),children:[e(a,{index:!0,element:e(m,{})}),e(a,{element:e(m,{}),children:e(a,{path:"dimensions",children:e(a,{path:":dimensionId",element:e(U,{}),loader:B})})}),e(a,{path:"embeddings",children:e(a,{path:":embeddingDimensionId",element:e(q,{}),loader:J,handle:{crumb:r=>r.embedding.name}})})]}),s(a,{path:"/projects",handle:{crumb:()=>"projects"},element:e(K,{}),children:[e(a,{index:!0,element:e(W,{})}),s(a,{path:":projectId",element:e(H,{}),loader:V,handle:{crumb:r=>r.project.name},children:[e(a,{index:!0,element:e(g,{})}),e(a,{element:e(g,{}),children:e(a,{path:"traces/:traceId",element:e(Y,{})})})]})]}),s(a,{path:"/datasets",handle:{crumb:()=>"datasets"},children:[e(a,{index:!0,element:e(Z,{})}),s(a,{path:":datasetId",loader:u,handle:{crumb:r=>r.dataset.name},children:[s(a,{element:e(Q,{}),loader:u,children:[e(a,{index:!0,element:e(h,{}),loader:b}),e(a,{path:"experiments",element:e(h,{}),loader:b}),e(a,{path:"examples",element:e(X,{}),loader:ee,children:e(a,{path:":exampleId",element:e(re,{})})})]}),e(a,{path:"compare",handle:{crumb:()=>"compare"},loader:ae,element:e(te,{})})]})]}),e(a,{path:"/apis",element:e(oe,{}),handle:{crumb:()=>"APIs"}}),e(a,{path:"/settings",element:e(ne,{}),handle:{crumb:()=>"Settings"}})]})]})),{basename:window.Config.basename});function fe(){return e(w,{router:xe})}function ye(){return e(se,{children:e(ie,{children:e(Pe,{})})})}function Pe(){const{theme:r}=le();return e(O,{theme:r,children:e(z,{theme:I,children:s(A.RelayEnvironmentProvider,{environment:ce,children:[e(be,{}),e(ue,{children:e(de,{children:e(d.Suspense,{children:e(pe,{children:e(fe,{})})})})})]})})})}const Fe=document.getElementById("root"),ve=j.createRoot(Fe);ve.render(e(ye,{}));
|