Skip to main content
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

string
required
Your API key for authentication
string
required
Must be application/json

Body Parameters

string | array
required
Search query text or vector array. For text queries, you can include metadata and keyword filters using #key:value and #keyword syntax.
array
required
Array of namespace names to search in. All namespaces must be of the same type (text or vector).
number
Number of top relevant chunks for your query across given namespaces. Default is 10.
boolean
Enable kiosk mode to filter chunks below certain relevance. When kiosk mode is on, threshold is required.
number
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”
Filters must be placed at the END of your query. Use hyphens instead of spaces in filter values.

ITS Scoring System

Results are scored using Information Theoretic Similarity (ITS), providing nuanced relevance measurements:

Response Fields

Search Results

array
Array of search results ordered by ITS score (descending)
string
Unique identifier for the document
number
ITS (Information Theoretic Similarity) score between 0 and 1
string
Human-readable relevance label based on ITS score
string
Original text content (only for text namespaces)
object
Additional metadata associated with the document

Performance Information

number
Total time taken to process the search in seconds
object
Detailed timing breakdown for each search phase
object
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