Skip to main content

Advanced Search

ZenSearch provides powerful search capabilities combining semantic understanding with precise filtering. Master these features to find exactly what you need.

Search Architecture

ZenSearch uses a hybrid approach combining:

Dense Embeddings

  • Semantic understanding: Finds conceptually similar content
  • Meaning over keywords: "car" matches "automobile"
  • Context awareness: Understands intent behind queries

Sparse Embeddings

  • Keyword precision: Exact term matching
  • Technical terms: Catches specific jargon
  • Names and codes: Finds exact identifiers

Fusion

Results from both methods are combined using sophisticated ranking algorithms to provide the best of both worlds.

Retrieval Pipeline

Query

Intent Classification

Query Expansion (optional)

Permission Filtering

Hybrid Search (Dense + Sparse)

Faceted Filtering

Cross-Encoder Reranking

Context Enrichment

Results

Query Types

Natural Language Questions

Ask questions as you would to a colleague:

"What is our policy on remote work?"
"How do I configure the database connection?"
"Who is responsible for the Q4 budget?"

Keyword Searches

Use specific terms for precision:

"API authentication token"
"error code 5001"
"employee handbook 2024"

Combined Queries

Mix natural language with specific terms:

"How do I fix error ERR_CONNECTION_REFUSED?"
"What are the steps to deploy version 2.3.1?"

Query Expansion

ZenSearch can automatically expand your query to improve results:

How It Works

  1. Your query is analyzed
  2. Alternative phrasings are generated
  3. Multiple searches run in parallel
  4. Results are merged and deduplicated

Example

Original: "How to fix login issues"

Expanded:
- "login issues troubleshooting"
- "authentication problems resolution"
- "sign in errors fix"
- "login failure solutions"

Available Facets

FacetDescriptionExample Values
TopicsContent categoriesTechnology, Finance, HR
DepartmentsOrganizational unitsEngineering, Sales, Marketing
LanguagesDocument languageEnglish, Spanish, French
SentimentsContent tonePositive, Neutral, Negative
Date RangeCreation/modificationLast 7/30/90 days, Custom

Using Facets

  1. Perform a search
  2. View facets in the sidebar
  3. Click to filter by facet values
  4. Combine multiple facets
  5. Clear filters to broaden results

Dynamic Facets

Facets update based on current results:

  • Counts reflect filtered results
  • Unavailable facets are hidden
  • Values sorted by relevance

Cross-Encoder Reranking

What Is Reranking?

After initial retrieval, a cross-encoder model reranks results for better precision:

  1. Initial retrieval: Fast, broad search
  2. Reranking: Deep analysis of top candidates
  3. Final order: Most relevant results first

Benefits

  • More accurate relevance scores
  • Better handling of complex queries
  • Improved result ordering

Coverage Information

Understanding Coverage

Search results include coverage metrics showing completeness:

  • Full coverage: All relevant content found
  • Partial coverage: Some content may be missing
  • Warnings: Potential gaps in results

Coverage Indicators

Results: 15 documents found
Coverage: 94% (3 semantic units pending indexing)

⚠️ Some content from GitHub connector is still syncing

Search Modes

Chat Mode

Best for:

  • Questions needing synthesized answers
  • Multi-turn conversations
  • Research and exploration

Features:

  • AI-generated responses
  • Source citations
  • Follow-up capability

Search Mode

Best for:

  • Finding specific documents
  • Browsing available content
  • Detailed filtering

Features:

  • Document list results
  • Faceted filtering
  • Preview snippets

Scope and Collections

Collection Scoping

Control search boundaries:

ScopeUse Case
All CollectionsCompany-wide search
Single CollectionDepartment-specific search
Multiple CollectionsCross-functional research

Setting Scope

  1. Click the Scope dropdown
  2. Select collections to include
  3. View document counts
  4. Search within selection

Answer Shape

Query Classification

ZenSearch classifies queries to optimize responses:

ShapeDescriptionExample
EnumerativeList of items"What tools do we use?"
ProceduralStep-by-step"How do I submit expenses?"
ExploratoryOpen-ended"Tell me about our products"
ComparativeComparison"Compare Plan A vs Plan B"

Response Formatting

Responses are formatted based on query shape:

  • Enumerative: Bulleted lists
  • Procedural: Numbered steps
  • Exploratory: Comprehensive overview
  • Comparative: Tables and comparisons

Meta-Questions

About Your Knowledge Base

Ask meta-questions about your indexed content:

"What topics are covered in our documentation?"
"Give me an overview of the engineering wiki"
"What data sources are connected?"
"Show me statistics about our content"

Meta-Question Indicators

Meta-questions are indicated with badges:

  • Overview
  • Topics
  • Data Sources
  • Statistics
  • Capabilities

Search Tips

Effective Queries

StrategyExample
Be specific"Q4 2024 sales report" vs "sales"
Add context"Python API authentication" vs "authentication"
Use timeframes"last quarter", "2024", "recent"
Name specificsInclude project, team, or person names

Refining Results

  1. Start broad, then narrow with facets
  2. Try alternative phrasings
  3. Use both chat and search modes
  4. Check suggested related queries

Interpreting Results

IndicatorMeaning
High relevanceStrong match to query
Multiple citationsSynthesized from several sources
Recent dateCurrent information
Verified sourceFrom authoritative connector

Permissions and Access

Search-Time Filtering

ZenSearch enforces permissions at search time:

  1. Query is received
  2. User's access rights are checked
  3. Only accessible documents are searched
  4. Results exclude unauthorized content

Permission Types

TypeDescription
UserIndividual access rights
GroupTeam or group membership
TeamWorkspace access
DomainOrganization-wide
PublicNo restrictions

Performance

Speed Optimization

ZenSearch optimizes for fast results:

  • Cached embeddings
  • Indexed metadata
  • Parallel searches
  • Incremental updates

Large Result Sets

For queries with many results:

  • Pagination available
  • "Load more" functionality
  • Result count displayed
  • Coverage information shown

Troubleshooting

No Results

  1. Check collection scope
  2. Broaden search terms
  3. Remove filters
  4. Verify content is indexed

Irrelevant Results

  1. Add more specific terms
  2. Use facet filters
  3. Try different phrasing
  4. Check query intent

Slow Searches

  1. Narrow collection scope
  2. Simplify complex queries
  3. Check for large pending syncs
  4. Use specific filters

Next Steps