-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(python): dspy lm instrumentation #126
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
WIP WIP get completions working
83c377d
to
4c04d94
Compare
python/instrumentation/openinference-instrumentation-dspy/examples/requirements.txt
Outdated
Show resolved
Hide resolved
python/instrumentation/openinference-instrumentation-dspy/examples/requirements.txt
Outdated
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Outdated
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Outdated
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Outdated
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Outdated
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Outdated
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Outdated
Show resolved
Hide resolved
…ples/requirements.txt Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
…openinference/instrumentation/dspy/__init__.py Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
…openinference/instrumentation/dspy/__init__.py Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
…openinference/instrumentation/dspy/__init__.py Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
…ples/requirements.txt Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
…openinference/instrumentation/dspy/__init__.py Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
…openinference/instrumentation/dspy/__init__.py Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
|
||
# DSPy produced files | ||
assertion.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Might make sense to move to the .gitignore for dspy
python/instrumentation/openinference-instrumentation-dspy/examples/.gitignore
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Outdated
Show resolved
Hide resolved
...tation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy/__init__.py
Show resolved
Hide resolved
SpanAttributes.OUTPUT_VALUE: json.dumps( | ||
self._prediction_to_output_dict(prediction, signature) | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
...inference-instrumentation-dspy/tests/openinference/instrumentation/dspy/test_instrumentor.py
Show resolved
Hide resolved
…openinference/instrumentation/dspy/__init__.py Co-authored-by: Xander Song <axiomofjoy@gmail.com>
resolves #124
Adds DSPy instrumentation for all
LM
sub-classes (language models) as well as anything that inherits aSignature
so we can track LLM calls below the signatures.