agnaistic/agnai

[bug]: User embeds are inserted in the prompt each time the chat is opened.

codedealer opened this issue · 0 comments

Describe the bug
User specified embeddings are inserted in the prompt each time the chat is opened resulting in duplication and context waste.

To Reproduce
Steps to reproduce the behavior:

  1. Create a simple text embed
  2. Start a new chat and use the embedding
  3. Use sidebar navigation to go to any other page
  4. Return to the chat
  5. After generating a new message, embedding content now doubles.
  6. Repeat steps 3-5, each time a new duplicate appears

Expected behavior
Embedding content is only ever used once in the prompt.

Screenshots

Test embed

image

Embed content doubling

image