Memory implementation issues

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.

Hi Ilaye, welcome to the community! :waving_hand: 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 :tada: The platform abstracts persistence away so you can focus on your agent logic instead of infrastructure. Let me break down how memory works today:

:brain: 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.

:floppy_disk: Long-term memory → APS (Anna Persistent Storage)

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

  • KV storage :card_index_dividers: — 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 :file_folder: — 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. :sparkles:

:rocket: 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

:speech_balloon: 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! :folded_hands: We’re actively exploring platform-level memory capabilities, and real developer use cases like yours directly shape what we build next.

Happy building! :hammer_and_wrench::yellow_heart:

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.