Skip to main content
POST
Search Chunks Handler

Headers

authorization
string | null

Cookies

ks_uat
string | null

Body

application/json

Request body for chunk search (dense vector, full-text BM25, or hybrid).

query
string
required

Search query text

Minimum string length: 1
search_type
enum<string>
default:dense_only

Search type: dense_only (semantic) or full_text (BM25 keyword), or hybrid (weighted dense+BM25)

Available options:
dense_only,
full_text,
hybrid
hybrid_profile
enum<string>
default:hybrid

Hybrid weighting preset: hybrid, dense, or sparse

Available options:
hybrid,
dense,
sparse
dense_weight
number | null

Optional explicit weight for the dense branch. Must be provided together with sparse_weight and overrides hybrid_profile.

sparse_weight
number | null

Optional explicit weight for the sparse branch. Must be provided together with dense_weight and overrides hybrid_profile.

parent_path_ids
string<uuid>[] | null

Path part IDs to search within (non-CHUNK types). Defaults to tenant's /shared.

tag_ids
string<uuid>[] | null

Filter by tag IDs (AND logic — chunks must have ALL specified tags)

chunk_types
enum<string>[] | null

Filter by chunk types (TEXT, TABLE, IMAGE, HTML, UNKNOWN). Only chunks matching one of the listed types are returned.

Minimum array length: 1

Type of chunk content.

Available options:
TEXT,
TABLE,
IMAGE,
HTML,
UNKNOWN
ingestion_time_after
string<date-time> | null

Only chunks ingested after this timestamp

active_version_only
boolean
default:true

Only return chunks from the active document version

top_k
integer
default:5

Number of results (1-50)

Required range: 1 <= x <= 50
score_threshold
number
default:0.3

Minimum similarity score

with_document
boolean
default:false

Include ancestor document_id and document_version_id in each result

Response

Successful Response

id
string<uuid>
required

Chunk ID

path_part_id
string<uuid>
required

PathPart ID

content_id
string<uuid>
required

ChunkContent ID

content
string
required

Chunk text content

chunk_type
enum<string>
required

Type of chunk content

Available options:
TEXT,
TABLE,
IMAGE,
HTML,
UNKNOWN
chunk_metadata
ChunkMetadata · object
required

Chunk metadata

parent_path_id
string<uuid>
required

Parent PathPart ID

materialized_path
string
required

Full materialized path from root

system_managed
boolean
required

Whether this chunk is system-managed

tenant_id
string<uuid>
required

Tenant ID

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

score
number
required

Search ranking score returned by Qdrant

num_tokens
integer | null

Number of tokens in chunk content

prev_sibling_path_id
string<uuid> | null

Previous sibling PathPart ID

next_sibling_path_id
string<uuid> | null

Next sibling PathPart ID

asset_s3_urls
string[]

Presigned URLs to download the chunk's visual assets (6-hour validity)

document
ChunkDocumentResponse · object | null

Ancestor document info (populated when with_document=true)

document_version
ChunkDocumentVersionResponse · object | null

Ancestor document version info (populated when with_document=true)