Core Concept: Spaces
Knowledge Spaces (or Spaces for short) are Rephlo's document-grounded context stores. They let you "teach" the AI about your specific projects, documents, or style guides. When a Space is active, Rephlo retrieves from it to produce answers that are grounded in your files.
What is a Space?
Think of a Space as a folder of reference materials with a token budget.
- Without a Space: The AI relies only on its general training (e.g., "Write a contract").
- With a Space: The AI uses your files (e.g., "Write a contract using the terms in my uploaded PDF").
Each Space can carry a small bit of visual identity:
- Emoji icon — a single emoji for quick recognition in the UI.
- Color (
#RRGGBBhex, e.g.#3B82F6) — used for theming the Space's card and badges.
Supported Data Types
You add files to a Space; Rephlo extracts and stores their text. Supported file types and their per-file size limits:
| Type | Extension | Max size |
|---|---|---|
.pdf | 50 MB | |
| Word | .docx | 50 MB |
| Plain text | .txt | 10 MB |
| Markdown | .md | 10 MB |
| CSV | .csv | 20 MB |
Each ingested file's extracted text is stored along with its raw token count, and (when compacted) a compact token count.
Scanned PDFs work too. If a PDF has no text layer — it came from a scanner, a photo, or an export — Rephlo recognizes the text on your computer before indexing it, so it becomes searchable like any other document. Very long scanned documents are indexed up to a 200-page limit and marked with a Partial OCR badge so you know some pages aren't in the search results. See How Rephlo Reads Your Files.
How It Works
- Ingestion — You add files. Rephlo extracts and stores their text content.
- Injection — When you run a Command with the Space attached, Rephlo composes the Space content into the prompt sent to the AI.
- Generation — The AI reads that context and answers based on your documents.
Local retrieval (RAG): Rephlo can build a local index of your raw Space content so it retrieves the most relevant sections instead of sending everything. The local index works with raw text only — which is why Smart Search (raw content) is the default data mode for new Spaces (see below).
Token Budget
LLMs have a limit on how much text they can read at once (the context window). Each Space tracks its size against a token budget:
- Token budget — default 100,000 tokens; minimum 1,000, maximum 1,000,000.
- Raw token count — total tokens across all items using raw content.
- Compact token count — total tokens across all items using compact (summarized) content.
These two counts are tracked independently so you can see what a Space costs in each mode. Each file carries its own raw and compact (summarized) token counts, and the Space sums them.
Data modes, AI retrieval (RAG), and token cost
A Space can serve its content to the AI in a few ways. Which one you use matters more for token cost than the raw size of the Space.
Data modes
Each Space has a default data mode (Commands can override it per run):
- 🔍 Smart Search (default) — sends your raw content and is free. For a small Space it sends the full text; once the Space grows, it retrieves only the most relevant parts.