Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Teaching an AI assistant to forget a deleted Teams message

说明与用途

AI 助手在 Microsoft Teams 消息被删除后仍继续引用该消息,因为其知识图谱未更新。构建了 Cognee Teams 连接器,在检测到删除后从图谱中移除线程,防止助手继续引用。

问题

An AI assistant continued quoting a price from a Microsoft Teams message after the message was deleted, indicating it retained memory of non‑existent content.

结果

The connector successfully removes deleted Teams threads from the knowledge graph, ensuring the AI assistant no longer references removed content.

工作流

  • 1. Register an app in Microsoft Entra and grant it ChannelMessage.Read.All and Channel.ReadBasic.All permissions with admin consent.
  • 2. Use the Cognee Teams connector to fetch threads from selected teams and channels.
  • 3. Each thread becomes a document; edits or deletions rewrite the whole thread.
  • 4. The connector tracks changes via message modified timestamps, processing only newer threads.
  • 5. Deleted messages are detected by deletedDateTime and removed from the graph and vector store.
  • 6. Safety rules prevent accidental deletions on failed requests or empty channel lists.

证据

The connector feeds it from Teams channels. You pick the teams, and optionally the channels.

来源

Threads that are deleted are forgotten.

来源

Graph does not drop a deleted message. It keeps it in the list, with deletedDateTime set and an empty body.

来源

I added safety rules because a wrong delete is worse than a missed one: ... A failed request, a 403 or a rate limit never deletes anything.

来源

  • 记录日期: 2026-10-20T07:41:03.916Z