Learn how to build a comprehensive workplace search and AI assistant platform using Cortex APIs. This guide covers data ingestion, search capabilities, and AI-powered Q&A across multiple data sources.
Status: This guide is in progress.This guide will walk you through building an extremely powerful workplace search and AI assistant platform that rivals Glean using Cortex APIs. You’ll learn how to create a unified search experience across multiple data sources with AI-powered Q&A capabilities.
Note: All code examples in this guide are for demonstration purposes. They show the concepts and patterns you can use when building your own Glean-like application with Cortex APIs. You’ll need to adapt these examples to your specific use case, technology stack, and requirements.
Important: For optimal performance, limit each batch to a maximum of 20 app sources per request. Send multiple batch requests with an interval of 1 second between each request.
Best Practice: Always verify processing after upload using the /upload/verify_processing
endpoint to ensure your data is properly indexed.
Note: Cortex supports filtering bysource_title
andsource_type
using themetadata
parameter. Use these for targeted searches across specific data sources.
Advanced Features:
multi_step_reasoning
: Automatically decomposes complex queries into stepsauto_agent_routing
: Routes queries to the best suitable AI agentsearch_alpha
: Controls semantic vs keyword matching (0.0-1.0)recency_bias
: Prioritizes recent content (0.0-1.0)
user_name
and maintain consistent session_id
values. This allows your application to remember user preferences, past interactions, and behavioral patterns, making every search and interaction more relevant and efficient.
user_name
and maintain consistent session_id
values. This enables your Glean clone to:
/upload/verify_processing
search_alpha
and recency_bias
for fine-tuningsource_title
and source_type
for targeted searches