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

py tracer fixes #5377

Merged
merged 8 commits into from
May 31, 2023
Merged

py tracer fixes #5377

merged 8 commits into from
May 31, 2023

Conversation

agola11
Copy link
Collaborator

@agola11 agola11 commented May 28, 2023

Not merging yet due to two issues:

  • LLM/Chat Models inputs and outputs not showing up correctly rendered
  • LLM/Chat Models extra showing up twice (one in rendered format, one in json format)

cc @vowelparrot

@agola11 agola11 marked this pull request as ready for review May 29, 2023 00:06
raise_for_status_with_text(response)
response = None
try:
response = requests.get(endpoint_ + "/tenants", headers=headers_)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be removed, or is that another PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -72,6 +119,8 @@ def __init__(
self.example_id = example_id
self.session_name = session_name or os.getenv("LANGCHAIN_SESSION", "default")
self.session_extra = session_extra
# set max_workers to 1 to process tasks in order
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does order matter? Can we rely on every user of the api being as strict about order as we are being here?

Copy link
Contributor

Choose a reason for hiding this comment

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

It'll fail if a child run gets posted before a parent run at least, right? (parent_run_id not found)

run_dict = run.dict()
del run_dict["child_runs"]
run_create = RunCreate(**run_dict, session_id=session.id)
run.reference_example_id = self.example_id
Copy link
Contributor

Choose a reason for hiding this comment

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

For this, (I think) we should be only assigning if there is no parent_run_id, otherwise it links all the nested child runs to an example

@agola11 agola11 changed the title [wip] py tracer fixes py tracer fixes May 31, 2023
@agola11 agola11 merged commit 1671c2a into master May 31, 2023
@agola11 agola11 deleted the ankush/py-tracer branch May 31, 2023 01:47
vowelparrot pushed a commit that referenced this pull request May 31, 2023
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
This was referenced Jun 25, 2023
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