Microsoft Teams
The teams datasource indexes Microsoft Teams messages archived locally by teamscrawl. teamscrawl reads the New Microsoft Teams desktop client's local Chromium IndexedDB cache on disk without Microsoft Graph, OAuth, Azure app registration, or tenant admin consent, and cumulatively upserts messages into ~/.teamscrawl/teamscrawl.db.
Because AutoRAG attaches that SQLite archive read-only through its chat sidecar, Teams automatically gets BM25 ranking, exact-match grep (path="/teams"), and incremental semantic embeddings using your shared AutoRAG embedding backend (inl / MinSync).
Prerequisites
- Sign in to the New Microsoft Teams desktop client on macOS or Windows at least once so its local IndexedDB cache exists on disk.
- Install the
teamscrawlbinary on yourPATH(or pointconnector.binaryPathat it). - Run an initial sync to populate
~/.teamscrawl/teamscrawl.db:
bash
teamscrawl --json syncConfiguration
Add a teams entry under datasources in ~/.autorag/config.json:
json
{
"datasources": {
"teams": {
"type": "teams",
"instanceId": "default",
"description": "Work Microsoft Teams chats and channels.",
"connector": {
"databasePath": "~/.teamscrawl/teamscrawl.db"
}
}
}
}Optional connector fields
binaryPath: Explicit path to theteamscrawlexecutable when it is not onPATH.databasePath: Custom SQLite archive path (defaults to~/.teamscrawl/teamscrawl.db).leveldbPath/sourcePath: Explicit Teams IndexedDB LevelDB directory instead of auto-discovery.profile: Specific WebView2 profile folder name when multiple profiles exist.account: Restrict sync and sidecar search to onetenantId:userIdaccount key.sidecar: Enabled by default (falsedisables BM25/semantic sidecar;{ "semantic": false }keeps lexical BM25 only).
Indexing and search behavior
autorag refreshrunsteamscrawl --json syncto pull new or edited messages from the local Teams cache intoteamscrawl.db, then incrementally embeds only newly inserted or edited rows into the workspace sidecar (sidecar.sqlite).- Messages that Teams later evicts from its local cache remain preserved and searchable in
teamscrawl.db. - Sources are exposed as opaque virtual paths (
/teams/<instance>/chunks/<id>). - For hybrid search details across chat archives, see Hybrid search for chat archives.
