Spaces
A Space is a logical container for related documents. Think of it as a folder with superpowers - it not only organizes your content but also provides semantic context for searches.Why Spaces Matter
Better Accuracy
Searching a focused space yields more relevant results than searching everything.
Organization
Keep different topics separate - product docs, support articles, research papers.
Access Control
All org members can manage spaces; API keys require explicit permissions.
AI Context
AI assistants can understand what each space contains and search appropriately.
Space Properties
| Property | Description |
|---|---|
id | Unique identifier (e.g., spc_abc123) |
name | Human-readable name |
description | Explains what the space contains - used by Smart Query |
slug | URL-friendly identifier |
icon | Optional emoji icon |
metadata | Custom key-value pairs for filtering and organization |
isArchived | Soft-delete flag |
Space Metadata
Attach custom metadata to spaces for categorization and filtering:Best Practices
- Keep spaces focused - A space for “Product Documentation” is better than “Everything”
- Use descriptive names - Make it obvious what content lives there
- Write good descriptions - Help AI understand the space’s purpose
- Use metadata for categorization - Tag spaces with team, region, or project info for easy filtering
- Archive, don’t delete - Archiving preserves data while hiding the space
Documents
A Document is a piece of content within a space. When you upload a document, Orchata automatically:- Chunks the content into smaller pieces
- Embeds each chunk using AI models
- Indexes the embeddings for fast similarity search
Supported Content
Currently, Orchata supports:- Word documents
- Excel documents
- PowerPoint documents
- Markdown files
- Plain text files
- Images
Orchata automatically detects scanned PDFs and uses OCR to extract text content.
Document Properties
| Property | Description |
|---|---|
id | Unique identifier (e.g., doc_xyz789) |
spaceId | Parent space ID |
filename | Original filename |
status | Processing status: pending, processing, completed, failed |
metadata | Custom key-value pairs |
chunkCount | Number of chunks after processing |
Document Status
Metadata
Attach custom metadata to documents for filtering and organization:- List documents - Filter by any metadata key-value pair:
GET /documents?spaceId=spc_123&metadata={"author":"engineering"} - Query - Only search documents matching specific metadata:
POST /querywithmetadata: { category: "technical" }
Queries
Orchata provides two types of queries for searching your knowledge base.Standard Query
Search for semantically similar content within specific spaces.Natural language search query.
One or more space IDs to search.
Maximum number of results (1-100).
Minimum similarity score (0-1). Higher values return more relevant but fewer results.