# Memory implementation issues

**URL:** <https://forum.anna.partners/t/memory-implementation-issues/281>\
**Category:** Developers\
**Created:** [September 1, 2026, 8:46pm UTC](https://forum.anna.partners/t/memory-implementation-issues/281 "2026-09-01T20:46:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilaye](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@Ilaye](https://forum.anna.partners/u/Ilaye)\
**Post date:** [September 1, 2026, 8:46pm UTC](https://forum.anna.partners/t/memory-implementation-issues/281/1 "2026-09-01T20:46:22Z")

</div>

Hello everyone, My name is Ilaye and I build AI agents using langgraph and langchain using Python.

When building agents in order to store the conversation history and allow my agent learn about my users. It means I have to connect the agent to a database and knowing the type of database is how I would write my code. Can I please be clarified on the type of database the Anna ecosystem uses eg postgres, qdrant or something else, I tried read the documentation about it and I was confused. Also if anyone has encountered the same issue please tell me how you went about it.

---

<div class="post-metadata">

**Author:** ![hunter](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.anna.partners/hunter/32/8_2.png) [@hunter](https://forum.anna.partners/u/hunter)\
**Post date:** [September 4, 2026, 6:26am UTC](https://forum.anna.partners/t/memory-implementation-issues/281/2 "2026-09-04T06:26:36Z")

</div>

Hi Ilaye, welcome to the community! 👋 Great question — and you’re definitely not alone in thinking about memory for agents.

Here’s the good news: **on Anna, you don’t need to know (or manage) the underlying database at all** 🎉 The platform abstracts persistence away so you can focus on your agent logic instead of infrastructure. Let me break down how memory works today:

## 🧠 Session-level memory → Agent Sessions

If what you need is conversation history within an ongoing interaction, **Agent Sessions** already handle this for you. Multiple `run()` calls within the same session share context — no database wiring required. You can also set a `system_prompt` per session to shape how the agent behaves throughout.

## 💾 Long-term memory → APS (Anna Persistent Storage)

For things that should survive across sessions — user preferences, learned facts, profiles — use **APS** :

- **KV storage** 🗂 — perfect for structured data like user profiles or preferences. It supports etag-based read-modify-write, so you can safely append/update without race conditions.
- **File storage** 📁 — for larger blobs (documents, exports, etc.).

Your app just calls the storage APIs; the platform takes care of where and how it’s stored. No connection strings, no schema migrations, no picking between Postgres vs. Qdrant. ✨

## 🚀 A typical pattern

1. Use an Agent Session for the live conversation (short-term memory, free!)
2. At meaningful moments, distill what you’ve learned about the user into a compact profile and save it to APS KV
3. On the next session, load that profile and inject it via the session’s `system_prompt`

## 💬 We’d love to hear more!

If your use case needs something beyond this — e.g., semantic/vector retrieval over long histories, or automatic memory summarization — please share more details about your scenario! 🙏 We’re actively exploring platform-level memory capabilities, and real developer use cases like yours directly shape what we build next.

Happy building! 🛠💛

---

<div class="post-metadata">

**Author:** ![Ilaye](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@Ilaye](https://forum.anna.partners/u/Ilaye)\
**Post date:** [September 10, 2026, 10:43am UTC](https://forum.anna.partners/t/memory-implementation-issues/281/3 "2026-09-10T10:43:32Z")

</div>

I’m building a YouTube research assistant as an Anna App. A core part of the experience is playing cited video moments directly inside the app window — users jump to specific timestamps the AI references, without leaving the conversation.

Currently, ui.csp\_overrides accepts connect-src, img-src, media-src, font-src, style-src, and script-src, but not frame-src — meaning no App can embed a YouTube (or any) player iframe, even from an explicitly-declared, developer-controlled origin.

Request: allow frame-src in csp\_overrides, scoped the same way external\_origins already scopes connect-src/img-src — an explicit allowlist of origins, not an open directive. This wouldn’t broadly relax security; it would extend the same “developer declares specific trusted origins” pattern you already use elsewhere to one more directive.

Alternatively, a native host-mediated video-playback component (similar in spirit to image.generate/image.edit) would solve this without touching CSP at all.  
Without one of these, any App built around embedded media playback — not just mine — has no path to working in-window.
