Skip to content

Thread history seems to include the conversation title #39

@ValorHeart

Description

@ValorHeart

At this line, we extract the thread history: https://github.com/slack-samples/bolt-js-assistant-template/blob/main/app.js#L188
As the conversation title is actually a message, it is being included in the threadHistory array, which makes the LLM confused.
We also update the title each time the user send a new message here: https://github.com/slack-samples/bolt-js-assistant-template/blob/main/app.js#L188
which makes it even worse for the LLM.

I currently solved it by adding threadHistory.shift(); to remove the first message in the history which is the 'title'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions