Documents
Add documents to your Context Repo workspace by typing content, uploading files in 75+ formats, or scraping web pages — then listen, search, version, and discover related content.
Documents are your knowledge base in Context Repo. You can add content three ways — type it directly, upload a file, or scrape a web page — and then edit, version, listen to, and discover related documents from your workspace.
Each document gets its own detail page with four tabs: Preview, Editor, Versioning, and Similar Docs.
Creating Documents
The documents toolbar offers three ways to add content to your workspace.
Manual Entry
Click Paste Content in the toolbar to open the creation dialog. This is the fastest way to add text or markdown content directly.
| Field | Required | Description |
|---|---|---|
| Title | Yes | A descriptive name for your document |
| Content | Yes | The document text — plain text or markdown are both supported |
| Tags | No | Keywords to help organize and find this document later |
| Collections | No | Assign to one or more collections right away |
Click Create Document to save. You'll be taken directly to the document detail page.
File Upload
Click Upload Files to open the upload dialog. You can drag and drop files, click to browse, or even capture a photo with your device's camera.
Context Repo supports 75+ file formats across six categories:
| Category | Popular Formats |
|---|---|
| Documents | PDF, DOCX, DOC, RTF, Pages |
| Presentations | PPTX, PPT, Keynote, ODP |
| Spreadsheets | XLSX, XLS, CSV, TSV, Numbers |
| Images | JPG, PNG, GIF, SVG, WebP (with OCR text extraction) |
| E-Books | EPUB |
| Web Content | HTML, HTM |
You can upload multiple files at once. Each file gets its own title, tags, and collection assignments — or you can apply the same collections to all files with the Apply to all toggle.
Processing Options
Expand the Processing Options section for fine-grained control over how your files are processed:
- Document Language — Select the primary language (15 languages supported including English, Spanish, French, Chinese, Japanese, and more)
- Parsing Mode — Choose the quality-vs-speed tradeoff:
- Default (Auto-detect) — Balanced processing for most documents
- Fast Mode — Quicker processing, lower credit cost
- Premium Mode — Highest quality extraction, uses more credits
- LLM Mode — AI-enhanced parsing for complex documents
- Document Type Preset — Optimize parsing for specific types like emails, resumes, financial reports, or research papers
- OCR Settings — Control text extraction from images and scanned PDFs:
- Auto-detect (recommended) — Enables OCR only when needed
- Always enabled — Extracts text from all documents
- Disabled — Skips OCR for faster processing
Click View all supported formats in the upload dialog for a complete list of every file type, organized by category.
Web Scraping
Click Scrape Page to extract content from any web page. Enter a URL and Context Repo pulls the page content into a document for you.
| Field | Required | Description |
|---|---|---|
| URL | Yes | The web page address to scrape — https:// is added automatically if you don't include it |
| Collections | No | Assign the scraped content to collections |
Advanced Scraping Options
Expand the Advanced Options section for more control over how the page is extracted:
| Option | Default | Description |
|---|---|---|
| Only main content | On | Strips navigation, headers, footers, and sidebars so you get just the article or page body |
| Include screenshot | Off | Captures a visual snapshot of the page alongside the text content |
| Wait before scraping | 0 seconds | Set a delay (0–30 seconds) before scraping to let dynamic content load — useful for pages that render with JavaScript |
| Extract structured data | Off | Pull specific data points from the page using a natural language prompt. For example, enter "Extract the product name, price, and description" to get structured fields from a product page |
Editing and Preview
Open any document to see its detail page. The Preview tab shows your content rendered as formatted markdown, along with metadata like source URL, author, and usage stats (views, shares, exports).
Switch to the Editor tab to make changes:
- Click the Edit button in the top-right corner
- Update the title, content, or collection assignments
- Click Save Changes when you're done
The editor supports full markdown with a live editing experience. If you change your mind, click Cancel to discard your edits.
For uploaded files, the Editor tab also displays processing information — the language detected, parsing mode used, OCR status, pages processed, and credits consumed (see Credit Calculation below).
Version History
Every time you save changes to a document, Context Repo automatically creates a new version. This works the same way as prompt versioning — no extra steps required.
What's Tracked
Each version records:
- The full document content at that point in time
- A change log describing what was updated
- A timestamp
- A line-by-line diff compared to the previous version, shown in both content and metadata tabs
Restoring a Previous Version
Switch to the Versioning tab to see the full timeline. Click the expand arrow on any version to view its diff, then click Restore to roll back. Restoring creates a new version with the old content — your history is never lost.
Similar Documents
The Similar Docs tab finds documents in your workspace that are conceptually related to the one you're viewing, using semantic similarity rather than keyword matching. Results are displayed in a table with relevance scores, making it easy to discover connections you might not have noticed.
Click any result to jump to that document's detail page.
Credit Calculation
When you upload a file, Context Repo displays a credit breakdown on the document's Editor tab. This shows how many processing credits were used and the estimated cost based on the parsing mode:
| Parsing Mode | Credits per Page |
|---|---|
| Fast Mode | 1 credit |
| Default (Auto-detect) | 3 credits |
| Premium Mode | 45 credits |
| LLM Mode | 45 credits |
OCR adds 3 credits per page when enabled. If a document was already processed and cached, re-processing costs zero credits.
Credit calculation only applies to uploaded files. Manual text entries and scraped web pages don't use processing credits.
Managing Documents
Actions Menu
The actions menu (three-dot icon) on any document detail page gives you quick access to:
- Copy content — Copies the title and content to your clipboard
- Export — Download as Markdown or JSON
- Share — Copy a shareable link
- Archive / Unarchive — Hide from your main list without deleting
- Delete — Permanently remove the document and all its versions
Deleting a document removes it and all its version history permanently. If you might need it later, consider archiving instead.
Related Pages
Prompts
Create reusable AI prompt templates with variables and versioning.
Collections
Group documents and prompts into organized workspaces.
Search
Find documents, prompts, and collections with semantic or keyword search.
MCP Tools Reference
Manage documents programmatically with the 7 document MCP tools.