Context Awareness #7

Closed
opened 2025-05-11 13:51:30 -04:00 by milo · 1 comment
Owner

🧠 Context Awareness – Feature Scope

🔬 What This Isn't (Yet)

  • Not long-term memory across sessions

    (That will be handled by User Awareness) #8

  • Not vector-embedded retrieval like OpenWebUI's knowledge bases

    (That comes later with embeddings + vector DB support)

  • Not model fine-tuning

    (We’re just feeding smart context via prompt engineering)


Scope for Context Awareness v1

  • Capture X previous messages in the channel before Delta is mentioned
  • Format those messages into a readable text block
  • Inject context above user prompt like:
    [Recent Conversation]
    - Miguel: what's the plan today?
    - Aria: nothing productive, probably
    - Miguel: maybe Delta can help
    
  • Filter out:
    • Messages from other bots
    • Empty lines or emojis-only
  • ~[ ] Respect token budget (1000 tokens max) Moved to its own issue #35
  • Optional: toggle via settings.yml or future admin command

🔁 Upgrade Path for Future Versions

Feature Upgrade
Persistent long-term memory Save context to DB and fetch per user or thread
Vector-based retrieval Use embeddings + vector store (e.g. ChromaDB)
Knowledge base integration Add OpenWebUI-style document linking
Context-based personality shift Adjust tone/style based on chat theme
Summarized thread memory Store previous thread summary for reuse in future chats
Context summarization Compress long histories into a short-form preamble
## 🧠 Context Awareness – Feature Scope ### 🔬 What This _Isn't_ (Yet) - ❌ Not long-term memory across sessions > (That will be handled by `User Awareness`) #8 - ❌ Not vector-embedded retrieval like OpenWebUI's knowledge bases > (That comes later with embeddings + vector DB support) - ❌ Not model fine-tuning > (We’re just feeding smart context via prompt engineering) --- ### ✅ Scope for `Context Awareness v1` - [x] Capture X previous messages in the channel before Delta is mentioned - [x] Format those messages into a readable text block - [x] Inject context above user prompt like: ``` [Recent Conversation] - Miguel: what's the plan today? - Aria: nothing productive, probably - Miguel: maybe Delta can help ``` - [x] Filter out: - Messages from other bots - Empty lines or emojis-only - ~~[ ] Respect token budget (~1000 tokens max)~~ Moved to its own issue #35 - [x] Optional: toggle via `settings.yml` or future admin command --- ### 🔁 Upgrade Path for Future Versions | Feature | Upgrade | |-------------------------------|---------| | Persistent long-term memory | Save context to DB and fetch per user or thread | | Vector-based retrieval | Use embeddings + vector store (e.g. ChromaDB) | | Knowledge base integration | Add OpenWebUI-style document linking | | Context-based personality shift | Adjust tone/style based on chat theme | | Summarized thread memory | Store previous thread summary for reuse in future chats | | Context summarization | Compress long histories into a short-form preamble |
milo added the
enhancement
label 2025-05-11 13:51:30 -04:00
milo self-assigned this 2025-05-11 13:51:30 -04:00
milo added this to the Polishing Phase project 2025-05-11 13:51:30 -04:00
milo changed reference from main to main 2025-05-11 14:14:42 -04:00
milo added the
High Priority
label 2025-05-11 14:14:46 -04:00
milo added
💡feature
and removed
enhancement
labels 2025-05-11 14:30:37 -04:00
milo added this to the Alpha Build Ready milestone 2025-05-11 17:48:18 -04:00
milo added the
Upgrade Path
label 2025-05-14 18:38:17 -04:00
milo referenced this issue from a commit 2025-05-14 20:29:40 -04:00
Author
Owner

Implemented 👍

Has room for improvement but base feature is working well.

## Implemented 👍 Has room for improvement but base feature is working well.
milo closed this issue 2025-05-14 22:14:48 -04:00
Sign in to join this conversation.
No description provided.