Skip to content

Conversation

@dtam
Copy link
Contributor

@dtam dtam commented Sep 26, 2024

Fixed an issue with telemetry initialization despite having enable_metrics=true in .rc it was not enabled
Fixed issues with async streaming erroring in several cases
Fixed issues with attributes being added to spans that had be closed already in the case of async streaming

JosephCatrambone and others added 5 commits September 25, 2024 14:11
… guardrails.hub install. (#1093)

* Fix for #1091. Make the install CLI function named install_cli (but keep the invocation as guardrails hub install) so people don't import it by mistake. Add warning for string passage.

* Fix typo in docs in install.py. Correct a reference.
* add missing awaits

* remove extra coroutine
validate_subschema=True,
stream=True,
)
# TODO why? how does it happen in the other places we handle streams
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nichwch any insights?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're asking about the None check on line 157, it might be a remnant of before we implemented generators all the way down. Before, it was possible for validation to return None of the validators haven't accumulated enough chunks to validate yet. For sync streaming, we've changed this so that the validation logic takes place in a generator and only emits results when enough chunks have been accumulated.

Looking into the async streaming code, it looks like we never changed that to use generators for the validation logic, so validators still emit Nones before they have accumulated enough chunks

@dtam
Copy link
Contributor Author

dtam commented Sep 30, 2024

requires guardrails-ai/interfaces#13

@dtam dtam changed the base branch from main to fix_server_export_mismatch September 30, 2024 21:59
@zsimjee zsimjee merged commit 618ad21 into fix_server_export_mismatch Sep 30, 2024
12 checks passed
@zsimjee zsimjee deleted the async_streaming_telem_updates_and_fixes branch September 30, 2024 22:28
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.

4 participants