mRAG_search
Search and answer questions over the USER'S OWN mosadd data (messages, emails, calls, notes) with a private per-user RAG index — hybrid vector + keyword retrieval, reranked, grounded in cited sources (no fabrication). Use it to recall 'what did X say about Y', summarize a thread, or pull facts the user has received. Returns an answer plus the source snippets it used. This is agent memory (mRAG = RAG over your own data) over the user's communications, available outside the mosadd app. NOTE: RAG requires content to be indexed server-side in plaintext, so anything searchable here is NOT covered by the zero-knowledge / E2EE guarantee — only data the user has explicitly opted into indexing is searchable. See docs/security/e2ee-posture.md.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language question to answer from the user's own indexed messages/emails/calls/notes. | |
| top_k | No | Max number of source chunks to retrieve and ground the answer in. Default 8. | |
| thread_id | No | Optional: restrict retrieval to a single thread id (e.g. a dm:/chat: thread). | |
| source_types | No | Restrict retrieval to these source types. Omit to search everything. 'file' covers anything added with mRAG_ingest (its default, and where 'note' ingests land); 'ptt' covers push-to-talk transcripts ingested by mTALK_ingest_ptt. |