Context RepoContext Repo Docs
Dashboard

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 is the default mode. It understands the meaning of your query and surfaces conceptually related content — even if the exact words don't match. (Under the hood, it uses AI embeddings to compare meaning rather than just keywords.)

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 performs fast, case-insensitive substring matching across your workspace content. It checks titles, descriptions, and previews — and for documents it also matches indexed body text via hierarchical chunks, so an exact phrase from deep inside a document is enough to surface it. Body matching is full-body literal matching, eventually consistent with chunking; title and preview matches appear immediately. It's ideal when you know the name — or an exact phrase — from the content you're looking for.

Keyword results don't include relevance scores or progressive disclosure, but document results do include a highlight snippet showing where your query matched, with the matched query shown in bold. You'll see matching items organized by type.

Multi-word keyword queries match as an exact phrase — searching for deployment guide only surfaces content containing that contiguous text, not items that mention "deployment" and "guide" separately.

Type Filters

Filter your results by content type using the tabs above the results list. Each tab shows a count of matching items:

FilterWhat It Shows
AllEvery matching prompt, document, and collection grouped by type
DocumentsOnly document results
PromptsOnly prompt results
CollectionsOnly 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. In keyword mode, occurrences of your query in the snippet are shown in bold
  • 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
  • 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:

  • Excerpt — a relevant passage from the document, displayed with a truncation toggle for longer text
  • Level badge — indicates the excerpt's position in the document hierarchy: Document (top-level), Section, or Paragraph
  • Section breadcrumbs — a path showing where the excerpt sits within the document (e.g., "Document Title > Section Name > Paragraph 3")
  • Relevance score — how closely this specific excerpt matches your query

The progressive disclosure panel includes five navigation buttons that let you explore the document's structure:

ButtonDirectionWhat It Does
↑ UpParentMoves to the parent chunk (e.g., from a paragraph to its section)
↓ DownChildrenShows child chunks below the current level
← PreviousSiblingJumps to the previous chunk at the same level
→ NextSiblingJumps to the next chunk at the same level
LayersSurroundingShows 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