Skip to main content

Data model

Each document has an id and text (plus optional metadata). Use moss-minilm as the default model.

Examples

Local-first indexing (sessions)

createIndex / create_index builds an index through the cloud (then keeps it usable locally). When you need to index during a live interaction - adding transcript turns mid-call or building a per-user working set - use a session instead. A session indexes documents locally in real time with no cloud round trip, embedding each document on-device, and lets you optionally push the result to the cloud when you’re done.
See Sessions for the full create-resume-query-push lifecycle.

Notes

  • createIndex / create_index will sync indexes to cloud (if enabled) while remaining usable locally
  • Supports multiple indexes per project; pick the model per index:
    • moss-minilm: fast, lightweight (default)
    • moss-mediumlm: higher accuracy, still efficient
    • Use moss-minilm for speed-first, edge/offline use; use moss-mediumlm when you need higher recall/precision

Chunking tips

  • Aim for ~200-500 tokens per chunk
  • Overlap 10-20% to preserve context
  • Normalize whitespace and strip boilerplate