# Topic-based memory retrieval in SQLite now returns correct results

> We fixed an issue where filtering memories by topic could return incorrect results when using SQLite or AsyncSQLite backends.

- Published: 2025-11-22
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/topic-based-memory-retrieval-in-sqlite-now-returns-correct-results
- Markdown: https://agno-com-nine.vercel.app/articles/topic-based-memory-retrieval-in-sqlite-now-returns-correct-results.md

We fixed an issue where filtering memories by topic could return incorrect results when using SQLite or AsyncSQLite backends. Topic-based queries now behave predictably, improving the accuracy of agents and workflows that rely on segmented memory retrieval. No action is required — existing implementations will benefit immediately after upgrading.

**Details**

- Accurate topic filters for both SQLite and AsyncSQLite memory backends
- Reduces debugging and unexpected agent responses caused by misclassified results
- Improves determinism for evaluations, automation, and knowledge reuse

**Who this is for:** Teams using local SQLite storage for Memory, especially those organizing knowledge by topic for agents, offline/edge deployments, or deterministic test environments.
