Skip to content
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

Release candidate langsmith-pyo3 Python package #1254

Merged
merged 112 commits into from
Nov 26, 2024
Merged

Conversation

obi1kenobi
Copy link
Collaborator

Release candidate of a langsmith-pyo3 Python package aimed to speed up trace processing and submissions. Currently about 50% faster than the pure Python implementation, and likely that's just a starting point for further performance tuning.

Includes wheels for all operating systems and major platforms, and trusted publishing to PyPI with attestations.

I had to reduce the Python lower bound of the PyO3 bindings to 3.8 since Poetry refused to create a lockfile otherwise -- the langsmith project's own lower bound is 3.8.
This lets us defer string formatting until later, and aids batch-collection by tools such as Sentry. Otherwise we'll get a separate entry for each possible stack trace value here, which is not what we want.
Accept both strings and datetimes for `start_time` and `end_time` values.
@obi1kenobi obi1kenobi marked this pull request as ready for review November 26, 2024 21:59
@agola11 agola11 merged commit 64c0c68 into main Nov 26, 2024
16 checks passed
@agola11 agola11 deleted the pg/langsmith-pyo3-rc branch November 26, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants