Search
Find prompts, documents, and collections across your workspace using AI-powered semantic search or fast keyword matching.
Search helps you find anything in your workspace — prompts, documents, and collections — all from one place. You can choose between two search modes, filter by content type, and explore document contents with progressive disclosure, all without leaving the search page.
Search Modes
Context Repo offers two ways to search, and you can switch between them at any time using the toggle next to the search bar.
Semantic Search
Semantic search is the default mode. It uses AI embeddings to find content that's conceptually related to your query — even if the exact words don't match.
For example, searching "machine learning tutorials" could surface a document titled "Neural Network Training Guide" because the concepts are related. Semantic results include a relevance score (0 to 1) that indicates how closely each result matches your query. Higher scores mean stronger matches.
Semantic search works best for natural language queries and exploratory searches. Ask a question or describe what you're looking for in your own words.
Semantic search also enables two additional features that aren't available in keyword mode:
- Progressive disclosure — expand document results to preview content chunks without navigating away
- Find Similar — discover documents related to a specific result
Keyword Search
Keyword search performs fast, case-insensitive substring matching across your workspace content. It checks titles and descriptions — so typing part of a name or a word from a description is enough to surface a match. It's ideal when you know the name (or part of the name) of what you're looking for.
Keyword results don't include relevance scores or progressive disclosure. You'll see matching items organized by type.
Type Filters
Filter your results by content type using the tabs above the results list. Each tab shows a count of matching items:
| Filter | What It Shows |
|---|---|
| All | Every matching prompt, document, and collection grouped by type |
| Documents | Only document results |
| Prompts | Only prompt results |
| Collections | Only collection results |
Changing the type filter re-runs your search to fetch results for that specific content type. The result counts update in each tab so you can see at a glance where your matches are concentrated.
Search Results
Results appear as cards grouped by type. Each card shows different information depending on the content type and search mode.
Document Results
Document cards display:
- Title — the document name, linked to the full document view
- Relevance score — a color-coded badge (semantic mode only). Green indicates high relevance (above 0.80), amber indicates medium (0.50–0.80), and gray indicates lower relevance
- Highlight snippet — a brief excerpt showing where your query matched (semantic mode only)
- Expand button — reveals a progressive disclosure panel with the document's content hierarchy (semantic mode only, see Progressive Disclosure below)
- Find Similar button — shows up to 5 documents with related content, each with their own relevance score
Prompt Results
Prompt cards display:
- Title — the prompt name, linked to the full prompt view
- Description — the prompt's description text
- Engine badge — the target AI model, if one was set
- Relevance score — color-coded badge (semantic mode only)
Collection Results
Collection cards display:
- Name — the collection name with its color indicator, linked to the collection view
- Matched items — the number of items in the collection that matched your query (semantic mode)
- Description — the collection's description text (keyword mode)
- Relevance score — color-coded badge (semantic mode only)
Progressive Disclosure
When you're searching in semantic mode, document result cards include an Expand button. Clicking it opens a progressive disclosure panel directly below the card, letting you preview the document's content without navigating to the full document page.
The panel shows:
- Content chunk — a relevant excerpt from the document, displayed with a truncation toggle for longer passages
- Level badge — indicates the chunk's position in the document hierarchy: Document (top-level), Section, or Paragraph
- Section breadcrumbs — a path showing where the chunk sits within the document (e.g., "Document Title > Section Name > Paragraph chunk #3")
- Relevance score — how closely this specific chunk matches your query
Navigating the Document Hierarchy
The progressive disclosure panel includes five navigation buttons that let you explore the document's structure:
| Button | Direction | What It Does |
|---|---|---|
| ↑ Up | Parent | Moves to the parent chunk (e.g., from a paragraph to its section) |
| ↓ Down | Children | Shows child chunks below the current level |
| ← Previous | Sibling | Jumps to the previous chunk at the same level |
| → Next | Sibling | Jumps to the next chunk at the same level |
| Layers | Surrounding | Shows a context window of nearby chunks |
You can click Reset at any time to return to the original search result chunk. Navigation buttons are automatically disabled when you reach a boundary — for example, the Up button is disabled at the document level since there's no parent above it.
Show More Results
After your initial results load, a Show more results button appears at the bottom of the list. Clicking it fetches additional matches that weren't included in the first batch.
Each "show more" request returns deduplicated results — you won't see items that already appeared in previous batches. New document results appear below the existing ones, complete with their own progressive disclosure panels.
When there are no more results to load, you'll see a "No more results" message instead of the button.
Tips for Better Searches
- Use semantic mode for exploration — describe what you need in natural language, like "API rate limiting strategies" or "customer onboarding checklist"
- Switch to keyword mode when you know the name — if you're looking for a specific document or prompt by title, keyword mode is faster
- Filter by type to narrow down — if you know you're looking for a prompt, switch to the Prompts tab to cut through the noise
- Expand document results — the progressive disclosure panel can save you time by letting you preview content right from the search page
- Use Show More to dig deeper — the first batch of results might not include everything. Click "Show more results" to surface additional matches
Related Pages
Prompts
Create and manage reusable AI prompt templates with variables and versioning.
Documents
Upload files and scrape webpages to build your knowledge base.
Collections
Organize prompts and documents into themed groups.
MCP Tools Reference
Search programmatically with the find_items and Deep Search MCP tools.