POST
/search
Search for visually similar tiles
Submit one or more queries (text, image, or embedding) and retrieve the top matching tiles from the index.
curl
curl -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '
'
Request
queries
Array of query objectsQuery[]textoptional
Text search querystringimageoptional
Base64-encoded imagestringembeddingoptional
Pre-computed embedding vectornumber[]n_docsoptional
Number of results to return (default: 20)numbernprobeoptional
FAISS nprobe overridenumbermin_tile_heightoptional
Filter out tiles shorter than thisnumberinstructionoptional
Custom embedding instructionstringResponse
results
One result per queryQueryResult[]hits
Ranked list of matchesHit[]score
Cosine similaritynumbervector_id
FAISS vector indexnumberarticle_id
Wikipedia article IDnumbertile_index
Which 8192px tilenumberchunk_index
Which 1024px chunk within tilenumbery_offset
Y position in page (px)numbertile_height
Chunk height (px)numberpath
Tile file path on serverstringurl
Wikipedia article slugstring