Search
Perform a semantic search across project documents
Authentication
AuthorizationBearer
API key with tr_ prefix (e.g., tr_abc123)
Path parameters
projectId
Project ID to search within
Request
This endpoint expects an object.
query
Search query text (max 2048 tokens)
retrieval_strategy
Allowed values:
expand_query
Generate query variations to improve recall
rerank
Rerank results using Cohere for improved relevance
generate_answer
Generate a natural-language answer
include_sources
Include source documents in response. Set false to reduce payload when only the answer is needed.
limit
Maximum results to return
Response
Search results
retrieval_contents
completion
AI-generated answer (when generate_answer is true)
