Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Llama Index
Commits
4571b893
Unverified
Commit
4571b893
authored
1 year ago
by
Xander Song
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
remove exporter from arize-phoenix global callback handler (#10465)
parent
62d1a938
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llama_index/callbacks/arize_phoenix_callback.py
+0
-3
0 additions, 3 deletions
llama_index/callbacks/arize_phoenix_callback.py
with
0 additions
and
3 deletions
llama_index/callbacks/arize_phoenix_callback.py
+
0
−
3
View file @
4571b893
...
@@ -5,12 +5,9 @@ from llama_index.callbacks.base_handler import BaseCallbackHandler
...
@@ -5,12 +5,9 @@ from llama_index.callbacks.base_handler import BaseCallbackHandler
def
arize_phoenix_callback_handler
(
**
kwargs
:
Any
)
->
BaseCallbackHandler
:
def
arize_phoenix_callback_handler
(
**
kwargs
:
Any
)
->
BaseCallbackHandler
:
try
:
try
:
from
phoenix.trace.exporter
import
HttpExporter
from
phoenix.trace.llama_index
import
OpenInferenceTraceCallbackHandler
from
phoenix.trace.llama_index
import
OpenInferenceTraceCallbackHandler
except
ImportError
:
except
ImportError
:
raise
ImportError
(
raise
ImportError
(
"
Please install Arize Phoenix with `pip install -q arize-phoenix`
"
"
Please install Arize Phoenix with `pip install -q arize-phoenix`
"
)
)
if
"
exporter
"
not
in
kwargs
:
kwargs
=
{
"
exporter
"
:
HttpExporter
(),
**
kwargs
}
return
OpenInferenceTraceCallbackHandler
(
**
kwargs
)
return
OpenInferenceTraceCallbackHandler
(
**
kwargs
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment