RocketChat / RocketChat/Apps.QuickReplies

[Feat] : Adding context of prev message in AI prompt

Open
#43 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
7
Forks
21
PR merge metrics
No merged PRs in 30d

Description

What do we need?

Right now the AI generated replies are created on the basis of the prev message only
The idea i propose is adding some chunk of chat history as a context in the prompt with the reply to create

This will help to improve -

  • Relevance (with the help of context the replies will not be detached)
  • Coherence & better personalization (with the history ai can understand the flow of messages and tonality of prev replies)
Acceptance Criteria
  • Fetching last 10 messages shared in the room
  • managing storage of the history
  • Addition of context in the prompt for all the ai handlers

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the AI handlers, the room message access, and the prompt construction; then trace how history could be retrieved and stored. Done means the last 10 room messages are available as context and are included in prompts for all AI handlers.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.