longy2k / obsidian-bmo-chatbot

Generate and brainstorm ideas while creating your notes using Large Language Models (LLMs) from Ollama, LM Studio, Anthropic, Google Gemini, Mistral AI, OpenAI, and more for Obsidian.
https://ko-fi.com/longy2k
MIT License
368 stars 43 forks source link

One-time context field #23

Open twalderman opened 11 months ago

twalderman commented 11 months ago

Overviewhen chatting with a chatbot, you sometimes need to provide additional "context" for the bot to better understand your intent. But constantly supplying this context throughout the conversation is very redundant and wasteful.

The "one-time context field" feature allows you to enter a paragraph of contextual text that gets sent automatically at the start of each new conversation, BEFORE your first message.

After that initial payload, the context field will NOT be resent for the remainder of the conversation. This saves on unnecessary repeated payload.

When starting a new conversation, the context field is cleared so you can update it with new content.


User Story: As a user, I want to configure a context field that gets sent automatically to the AI at the start of every new conversation so that I can establish more in-depth context without repeated payload.

Acceptance Criteria:

  1. The system should allow me to enter customizable context in a configuration field
  2. When starting a brand-new conversation, the context field should automatically be sent as the first request payload before the system prompt
  3. The context field payload should only be sent once per conversation
  4. In subsequent user messages within the same conversation, the context field should no longer be sent
  5. This will reduce unnecessary repeated context in ongoing conversations
  6. The context field should be cleared when starting conversations to allow updating

Additional Details:

Allow Markdown formatting in the context field Indicate when context field payload was sent via UI notification Cache context field payload locally to persist between sessions Add toggle to enable/disable the context field feature