Skip to content

Add customizable "Merge Instruction" for Beam Mode to AI Persona #933

@Slava-256

Description

@Slava-256

What's happening?

Problem:

Standard Merge options in Beam Mode do not take into account AI Persona Chat System Instruction. This may result in a loss of additional steering and context provided by AI Persona when performing merges.

It is understandable that proper incorporation of AI Persona system prompt into merge instruction may be difficult to do in an automated way, as AI Persona instruction may conflict with merge instruction and lead to unpredictable results.

Even if some decent solutions are found to resolve these conflicts without significantly diminishing the quality of the merge or the effectiveness of guidance provided by AI Persona Chat Instruction, there is bound to be some level of compromise in those solutions.

So there will always be a place for manual control over this important piece of functionality in Big-AGI.

Currently there is an option to do "Custom" merge in Beam Mode, but this customization is performed on a per-merge or per chat-turn basis at best. If my earlier request to make edits to Custom merge instructions in Beam Mode persistent (#929) is implemented, that would improve the usability of this feature as a way of experimenting with custom merges, but I think proper integration of AI Persona with merge instruction is both important, as well as very common type of merge customization, that it will benefit from a targeted solution.

Proposed Solution:

I can think of 3 ways to address this:

  1. Allow AI Persona modify Fusion merge instruction.

Pros: Simplest to implement. Simplest UI.
Cons: Users will loose access to standard/default Fusion functionality. Reduced clarity about what "Fuse" button means. Confusion as to why Fusion is customized but Guided and Compare modes are not.

  1. Allow AI Persona modify Fuse/Guided/Compare merge instructions.

Pros: Consistency due to all Merge modes being customizable.
Cons: Bulky UI in AI Persona editing dialog. Users will loose access to standard/default Fuse/Guided/Compare functionality. Reduced clarity about what Fuse/Guided/Compare buttons mean. More code needed to handle more interface elements and more variables that are customized and need to be piped through.

  1. Allow AI Persona so specify AI Persona's merge instruction as a separate merge mode (and a new button) in addition to Fuse/Guided/Compare/Custom modes currently available.

Pros: UI Clarity
Cons: May be somewhat more difficult to implement if you want to dynamically add or remove AI Persona's merge mode button depending on whether it was customized by AI Persona or not.

Overall I think option 3 strikes better balance between UI simplicity, clarity, and implementation difficulty.

I propose the following:

  • In AI Personas->Editing dialog, rename "Instruction" tab into "Chat Instruction".

  • Add "Merge Instruction" tab that allows specifying "System Instruction:" and "User Instruction:" similar to the window you see when you add Custom merge in Beam Mode. Additional text on the "Merge Instruction" tab can explain the purpose of these instructions.

  • In Beam Mode, alongside Fuse/Guided/Compare/Custom buttons, add a button titled "<AI Persona's Name> Merge" and place it between "Compare" and "Custom" buttons.

  • If it is not too difficult, make "<AI Persona's Name> Merge" button appear only if Merge Instruction was specified for current AI Persona.

Where does this happen?

Big-AGI Pro (big-agi.com)

Impact on your workflow

Medium - Workaround exists

Environment (if applicable)

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions