Enhanced RAG

Hybrid Search

Enhanced search endpoint using hybrid retrieval strategies.

Accepts EITHER a Clerk session OR an org-scoped API key (vio_...), so server-to-server callers (e.g. the agency-os strategy agents) can ground against a specific org's context. org_id is taken from the auth context — an API key is bound to exactly one org, so retrieval stays tenant-isolated.

post/api/rag/search

Request

  • Base URL: https://voyant.io (the document declares no server; this is the origin it was published from)
  • URL: https://voyant.io/api/rag/search
  • Auth: none declared

Headers

Authorizationstring nullable

Request body

querystring required

Search query

strategy'hybrid' | 'semantic' | 'keyword' | 'domain'

Search strategy to use

top_kinteger

Number of results to return

domainstring nullable

Filter by specific domain

content_typestring nullable

Filter by content type

Response

Successful Response

querystring required
resultsobject[] required
retrieval_statsobject required
timestampstring required
strategy_usedstring required

Changes

No recorded changes to this operation across all 1 revision of this API.