Welcome to the ZenSearch AI documentation. This comprehensive guide will help you integrate and use our semantic search and RAG platform effectively.
ZenSearch AI is an enterprise-grade semantic search and knowledge management platform that combines advanced AI capabilities with intuitive content management tools. Our platform enables organizations to:
Our platform consists of three main components:
Centralized content management system for ingesting, processing, and managing your knowledge base content.
Advanced AI-powered search using hybrid semantic and keyword matching with RAG capabilities.
Comprehensive analytics and automated quality evaluation to ensure optimal performance.
Get started with ZenSearch AI in just a few steps:
Sign up for a free trial account and create your first team workspace.
Obtain your API credentials from the dashboard:
Upload or connect your content sources through the Content Hub interface or API.
Use our search API to find information in your knowledge base:
curl -X POST https://api.zensearch.zenous.ai/v1/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "How do we handle customer data privacy?",
"client_id": "your-client-id",
"max_results": 5
}'
ZenSearch AI uses JWT-based authentication with API keys for secure access to all endpoints.
Include your API key in the Authorization header of all requests:
Authorization: Bearer YOUR_API_KEY
Never expose your API keys in client-side code or public repositories. Always use environment variables or secure configuration management.
The Search API provides powerful semantic search capabilities across your knowledge base.
Perform semantic search across your content with advanced filtering and ranking.
{
"query": "string", // Search query (required)
"client_id": "string", // Client identifier (required)
"max_results": 10, // Maximum results to return (optional)
"filters": { // Content filters (optional)
"source": ["website", "docs"],
"date_range": {
"start": "2024-01-01",
"end": "2024-12-31"
}
},
"search_config": { // Search configuration (optional)
"use_semantic": true,
"use_keyword": true,
"boost_recent": false
}
}
{
"query": "How do we handle customer data privacy?",
"total_results": 25,
"results": [
{
"id": "doc_123",
"title": "Data Privacy Policy",
"content": "Our comprehensive data privacy framework...",
"source": "policies/data-privacy.pdf",
"relevance_score": 0.95,
"metadata": {
"author": "Legal Team",
"last_updated": "2024-01-15"
}
}
],
"request_id": "req_456",
"processing_time_ms": 245
}
The RAG (Retrieval-Augmented Generation) API provides AI-generated answers based on your content.
Generate contextual answers using retrieved content from your knowledge base.
{
"query": "What is our refund policy?",
"client_id": "your-client-id",
"context": {
"user_role": "customer_support",
"product": "enterprise"
},
"response_style": "professional", // professional, casual, technical
"include_sources": true,
"max_tokens": 500
}
{
"answer": "Based on our policies, here's our refund policy...",
"sources": [
{
"title": "Refund Policy Documentation",
"url": "https://...",
"relevance": 0.98
}
],
"confidence": 0.92,
"request_id": "rag_789",
"processing_time_ms": 1240
}
Manage your knowledge base content programmatically through our Content Management API.
Upload new content to your knowledge base.
curl -X POST https://api.zensearch.zenous.ai/v1/content/upload \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: multipart/form-data" \
-F "file=@document.pdf" \
-F "metadata={\"title\":\"Policy Document\",\"category\":\"policies\"}"
Retrieve a list of content in your knowledge base.
Update existing content metadata or replace content.
Remove content from your knowledge base.
ZenSearch AI includes advanced privacy protection features to automatically detect and protect sensitive information.
Analyze content for personally identifiable information (PII) and protected health information (PHI).
{
"content": "Patient John Doe (SSN: 123-45-6789) was treated...",
"detection_types": ["pii", "phi", "financial"],
"action": "redact", // "detect", "redact", "encrypt"
"preserve_format": true
}
{
"detections": [
{
"type": "pii_name",
"text": "John Doe",
"start": 8,
"end": 16,
"confidence": 0.98
},
{
"type": "pii_ssn",
"text": "123-45-6789",
"start": 23,
"end": 34,
"confidence": 0.99
}
],
"protected_content": "Patient [REDACTED] (SSN: [REDACTED]) was treated...",
"compliance_status": "hipaa_compliant"
}
All PII/PHI detection is performed in real-time during content ingestion. Detected sensitive information is automatically protected according to your organization's compliance requirements.
For optimal performance, batch multiple queries when possible and implement caching for frequently accessed content.
To ensure optimal performance for all users, ZenSearch AI implements rate limiting across all API endpoints.
Plan | Requests/Minute | Requests/Hour | Daily Limit |
---|---|---|---|
Starter | 60 | 1,000 | 10,000 |
Professional | 300 | 5,000 | 50,000 |
Enterprise | 1,000 | 20,000 | Unlimited |
All API responses include rate limit information in the headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200