AI interpolator based chat

Created on 21 November 2023, about 1 year ago

Problem/Motivation

AI interpolator is a very strong system to create https://workflows-of-ai.com/, it can be used to create flexible chat interface by using default node-comment relationship, but in our case making it aichat-comment relationship. This may be a lot quicker way to develop advanced features such as file uploads or implement very high customization level of forms/display.

Proposed resolution

  1. Utilize default 'comment' entity to save messages and do interpolations with.
  2. 'Comment' entity interpolator field has to accept 'system message' and have ability to gather sibling messages of parent aichat entity.
    1. 'system message' can be filled using token [comment:aichat:...] taking value of any aichat field. This way AI prompt engineering module can be integrated by using token similar to [comment:aichat:aiprompt:entity]
    2. Gather sibling comments
    3. Interpolator comment should have a frontend button called "Repeat" if interpolator did not finish.
    4. If interpolator saves a lot of intermediary data, to increase performance and efficiency, extra data has to be removed.
  3. Interpolator is a big architectural change for the aichat module. There could be a toggle on the backend to switch between previous and interpolator modes. Interpolator mode will use drupal comments UI instead of Chat UI. Both methods can be experimented side by side depending on anyone's preference. Maybe aichat_interpolator submodule can be created for this.

Remaining tasks

  1. Create a prototype

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024