Retrieval agents need to handle multiple data types because real-world knowledge is rarely just text

Reddit r/AI_Agents Tools

Summary

文章论述检索型智能体不应将所有数据压平为文本块,而应暴露 KB、DB、Graph、Skills、Memory 等多类型数据界面,由检索代理按需选择最小充分集合,并已在 OpenDCAI/DataMind 中实现。

Most retrieval assistants assume that context can be converted into text chunks and placed in a vector database. Real-world data is messier: documentation may live in Markdown or PDFs, operational data in SQL tables, dependencies in graphs, procedures in SOPs, and user-specific decisions in persistent memory. Flattening all of this into one retrieval format creates predictable problems: Tables lose their schema and become difficult to filter or aggregate. Relationships become isolated text fragments instead of traversable paths. Procedures are mixed with factual knowledge. User preferences and project decisions lose their scope. Updates can leave multiple representations out of sync. A better approach is to expose several typed data surfaces: KB for documents, notes, and hybrid semantic/keyword retrieval. DB for structured records, filters, joins, and aggregations. Graph for entities, dependencies, and bounded traversal. Skills for reusable procedures and operational instructions. Memory for scoped facts, preferences, and decisions. On the retrieval side, an agent should select the smallest sufficient set of surfaces for each request. Document questions go to the KB, numerical questions to the DB, relationship questions to the Graph, while compound tasks can merge evidence from several surfaces. The storage path should remain separate. A store agent can route each input according to its structure and meaning, preserve source metadata, and return receipts containing the affected surface, revision, and write result. One source may be projected into several representations, such as searchable document chunks in the KB and extracted relationships in the Graph, without treating every surface as interchangeable. This is currently implemented in OpenDCAI/DataMind. Not sure whether there is real demand for this kind of architecture.
Original Article

Similar Articles

@yibie: Recommend this article. The teams from SJTU and Tsinghua systematically evaluated 12 agent memory systems. It's not one of those "our model is better" papers but rather breaks down how to choose memory systems from a data management perspective—when to use RAG, when to use vector databases, when to use knowledge graphs. Long-term memory for agents...

X AI KOLs Timeline

This paper from SJTU and Tsinghua systematically evaluates 12 agent memory systems from a data management perspective, decomposing memory into four modules and providing guidelines on when to use RAG, vector databases, or knowledge graphs for long-term agent memory.

For agents using knowledge bases, maybe clean the data first

Reddit r/AI_Agents

The article discusses the importance of data preparation for AI agents to ensure reliable knowledge retrieval, advocating for cleaning and structuring data before integrating with knowledge bases. It highlights the exploration of this approach in the OpenDCAI/DataFlow project and seeks community feedback.

Fixing Data Before Retrieval

Reddit r/AI_Agents

The article argues that fixing underlying data quality is more critical than improving retrieval methods for AI agents, and introduces a platform that continuously audits knowledge bases to serve as a single source of truth via an API.