langchain-ai / langsmith-sdk

LangSmith Client SDK Implementations
https://docs.smith.langchain.com/
MIT License
412 stars 79 forks source link

Issue: Langsmith thread UI is empty #926

Closed JustinLeeGrab closed 1 month ago

JustinLeeGrab commented 2 months ago

Issue you'd like to raise.

Hi, I have multiple runs (traces) that belong to the same thread. Each trace is valid - contains all the LLM & tools information (Screenshot 1). But when I click the thread, nothing seems to be there (Screenshot 2).

This is consistently replicable. This only happens when I invoke the langgraph from my streamlit app, but when I use postman to directly invoke the langgraph then there is no issue.

Screenshot 1: Valid Trace

Screenshot 2024-08-16 at 2 50 51 PM

Screenshot 2: Empty thread

Screenshot 2024-08-16 at 2 51 36 PM

Screenshot 3: UI shows that the thread contains traces

Screenshot 2024-08-16 at 2 52 01 PM

Please help, thank you very much in advance

Suggestion:

No response

hinthornw commented 2 months ago

So just to clarify to make sure I understand, the issue is that the threadUI view is empty despite having the row in the "threads" tab show that 2 traces are within that thread?

Initially I though perhaps it's because the thread_id needs to be in metadata not in inputs, but if ^^ is true then I'd assume it's in the metadata as well, but the metadata isn't shown in any of the screenshots.

If there are any network errors you could share, they'd help us narrow this down and fix it.

Will flag to the team

hinthornw commented 1 month ago

Closing as stale - feel free to re-open