Documents you can still reach offline
Collections and document metadata are stored in IndexedDB, so the workspace keeps working through network loss. When a deployment has the ingestion pipeline, documents are also parsed, chunked and embedded server-side.
Ingestion, when the backend is present
Ingestion is a Storage trigger, not a polling loop: the pipeline starts when a document object is finalised in the bucket.
- Parse and chunk
- Text is extracted and split into chunks with page and source metadata kept alongside each chunk.
- Embed, when a provider exists
- Embeddings are produced by the configured provider. With no provider, the corpus is still indexed lexically.
- Index before it is searchable
- A collection becomes retrievable after its index is ready; the ingestion state is visible rather than assumed.
Retrieval says which mode it used
retrieveKnowledge returns the ranking mode, a degraded flag and a reason. Lexical is a first-class result, not an error.
| Mode | When | Reported |
|---|---|---|
| lexical | No embeddings exist for the corpus, or semantic was not requested. | mode: lexical, degraded: true, reason: embeddings_unavailable |
| semantic | Every candidate has an embedding. | mode: semantic, degraded: false |
| semantic (partial) | Some candidates lack embeddings. | mode: semantic, degraded: true, reason: partial_embeddings |
The lexical baseline is BM25 over chunk text. Requesting semantic retrieval without embeddings raises an explicit error instead of returning silently weaker results.
Where the bytes go
Storage rules allow exactly seven prefixes. There is no public bucket and no anonymous read.
| Prefix | Writer | Limit |
|---|---|---|
| orgs/{orgId}/documents/{documentId}/{fileName} | Contributor in the org | 50 MiB |
| orgs/{orgId}/voice/{fileName} | Contributor, audio only | 25 MiB |
| orgs/{orgId}/images/{documentId}/{fileName} | Contributor, png/jpeg/webp | 20 MiB |
| orgs/{orgId}/videos/{documentId}/{fileName} | Contributor, mp4/webm | 200 MiB |
| orgs/{orgId}/collections/{collectionId}/{batch} | Server only | — |
| users/{uid}/avatars/{fileName} | Self, images | 2 MiB |
| orgs/{orgId}/exports/{exportId} | Server only | — |
Open a collection
The workspace shows collection state, including the case where a backend index does not exist yet.