Embedding → hybrid vector search → optional reranking, returning ranked chunks with provenance.
No LLM generation is performed. Billing: 1 retrieval credit per request.
Reranking: applied by default (skip_rerank=false). Set skip_rerank=true for lower latency (omits score.reranking).
Scoping: use workspace_id and/or tag_id to narrow results, or file_id to target specific files. file_id cannot be combined with workspace_id or tag_id (422). A 403 is returned when filters resolve to no authorized resources. When no filters are provided, search runs across all documents authorized for the API key.
Modes:
text (default): hybrid text searchvision: VLM-embedded page image searchImages: set include_image=true to receive a base64-encoded page image with each result. In text mode the image is fetched from the VisionChunk covering the chunk’s start page (empty string if no vision index exists for that page).
Documentation Index
Fetch the complete documentation index at: https://developers.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Natural-language search query. Maximum 1500 characters.
1500Maximum number of chunks to return after reranking. Range: 1–50.
1 <= x <= 50Restrict search to these workspace IDs. Cannot combine with file_id.
Restrict to documents carrying any of these tag IDs (OR). Cannot combine with file_id.
Restrict to specific file IDs. Cannot combine with workspace_id or tag_id.
"text": hybrid keyword + vector search. "vision": VLM-embedded page image search.
text - textvision - visiontext, vision Skip reranking for lower latency. In the response, score.reranking will be null.
Append a base64-encoded page image to each result.
Ranked search results.
Ranked search results.