Search & Discovery
Search
Perform advanced semantic searches across one or multiple namespaces using text queries or vector embeddings with ITS scoring.
POST
Overview
The Search API allows you to perform advanced semantic searches across one or multiple namespaces using text queries or vector embeddings. The API uses ITS (Information Theoretic Similarity) scoring to provide highly accurate relevance rankings with human-readable labels.The Search API supports both text and vector namespaces, with automatic embedding generation for text queries and advanced binarization techniques for optimal performance.
Authentication
Your API key for authentication
Must be
application/jsonBody Parameters
Search query text or vector array. For text queries, you can include metadata and keyword filters using #key:value and #keyword syntax.
Array of namespace names to search in. All namespaces must be of the same type (text or vector).
Number of top relevant chunks for your query across given namespaces. Default is 10.
Enable kiosk mode to filter chunks below certain relevance. When kiosk mode is on, threshold is required.
Minimum relevance score threshold (0-1) to filter out chunks below this relevance level. Required when kiosk_mode is true.
Advanced Filtering
Metadata Filters
Use#key:value format to filter by document metadata:
#category:tech- Find documents with category = “tech”#priority:high- Find high-priority documents#author:john- Find documents by author “john”
Keyword Filters
Use#keyword format to search within text content:
#important- Find documents containing “important”#urgent- Find documents containing “urgent”
Combined Filters
Combine semantic search with multiple filters:authentication #category:security #important- Security docs about authentication containing “important”
ITS Scoring System
Results are scored using Information Theoretic Similarity (ITS), providing nuanced relevance measurements:| Label | Score Range | Description |
|---|---|---|
| Close Match | score ≥ 0.894 | Near-perfect relevance to the query |
| Very High Relevance | 0.632 ≤ score < 0.894 | Strongly related content |
| High Relevance | 0.447 ≤ score < 0.632 | Significantly related content |
| Good Relevance | 0.316 ≤ score < 0.447 | Moderately related content |
| Low Relevance | 0.224 ≤ score < 0.316 | Minimally related content |
| Very Low Relevance | 0.1 ≤ score < 0.224 | Barely related content |
| Irrelevant | score < 0.1 | No meaningful relation to the query |
Response Fields
Search Results
Array of search results ordered by ITS score (descending)
Unique identifier for the document
ITS (Information Theoretic Similarity) score between 0 and 1
Human-readable relevance label based on ITS score
Original text content (only for text namespaces)
Additional metadata associated with the document
Performance Information
Total time taken to process the search in seconds
Detailed timing breakdown for each search phase
Information about the search optimization strategy used
Use Cases
- Document Retrieval: Find relevant documents across knowledge bases
- Content Discovery: Explore related content with semantic understanding
- Customer Support: Find relevant answers from support documentation
- Research & Analysis: Search through research papers and technical documents
- E-commerce: Product similarity and recommendation engines
- Filtered Search: Combine semantic search with metadata and keyword filters
Related Endpoints
- Upload Text Data - Add searchable text documents
- Upload Vector Data - Add searchable vector embeddings
- List Namespaces - View available namespaces for searching