jan icon indicating copy to clipboard operation
jan copied to clipboard

feat: Thread titles should auto-summarize Topic

Open dan-menlo opened this issue 1 year ago • 7 comments

image

Our current Jan results in "New Thread" for each thread, as users don't title each thread manually.

We should find a way to implement a ChatGPT-style Thread Title summarizer, using the underlying LLM (prompt?)

dan-menlo avatar Dec 13 '23 13:12 dan-menlo

I thought about this before. But don't know how it should work. Maybe we can pre-download Tinyllama for users, and then we can use it as a title maker?

hahuyhoang411 avatar Dec 13 '23 16:12 hahuyhoang411

We can use the existing model for summarizing threads message after the first question/ answer pair and fill out the thread. Do not need to use another model.

hiro-v avatar Dec 17 '23 08:12 hiro-v

Hi @dan-jan, I'm taking on this task

0xgokuz avatar Jan 11 '24 11:01 0xgokuz

@0xgokuz Hi, can I check how's the progress of this task?

hantran-co avatar Jan 24 '24 07:01 hantran-co

@0xgokuz Hi, can I check how's the progress of this task?

Hi @imtuyethan - I'm going to clean up the solutions, and going through it one more time before requesting another PR. Hopefully I can get that sorted this week / next latest.

0xgokuz avatar Jan 24 '24 08:01 0xgokuz

hi @0xgokuz, thank you for your contribution,

While testing the generated thread title, occasionally the title is too long, which can cause inconvenience for users, could we establish a restriction on the thread titles generated to guarantee they are brief and user-friendly? (e.g. around 10 words, etc...)

image

cc: @louis-jan

Van-QA avatar Feb 13 '24 15:02 Van-QA

@Van-QA it's very dependent on the model that you're using actually. I noticed that the title is significantly cleaner if you're using GPT4. Try it out.

0xgokuz avatar Feb 14 '24 00:02 0xgokuz

Tested and looking good on Jan v0.4.6-273 ✅

Van-QA avatar Feb 18 '24 09:02 Van-QA