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

Fixes #152: Add background job for generating chat titles #165

Merged

Conversation

ahmad2b
Copy link
Contributor

@ahmad2b ahmad2b commented Oct 30, 2024

This PR implements the background job for generating chat titles.

Updates:

  • Implement a subgraph to run in the background for generating chat titles.
  • Update thread metadata with the new field thread_title.
  • Modify client-side code (ThreadHistory.tsx) to use the new thread_title field from metadata.
  • Ensure the subgraph executes at the end of a run if it was the first run in a thread.
  • Use gpt-4o-mini for title generation.

Please let me know if any changes or additional information is needed.

Fixes #152

thread metadata
2nd Message
chat history

Copy link

vercel bot commented Oct 30, 2024

@ahmad2b is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@bracesproul bracesproul left a comment

Choose a reason for hiding this comment

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

this is great!! thanks a ton for pushing this up

@bracesproul bracesproul changed the base branch from main to staging October 30, 2024 17:38
@bracesproul bracesproul merged commit b325a05 into langchain-ai:staging Oct 30, 2024
1 check failed
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.

Background job for generating titles of chats
2 participants