Semantic search

Runs a vector similarity search over the corpus using a natural language query. Returns the most semantically relevant comments, ranked by cosine similarity. Optionally narrow results with metadata filters applied after the vector match.

Request

This endpoint expects an object.
querystringRequired
Natural language query to search for semantically similar comments.
limitintegerOptional1-50Defaults to 10
Number of results to return.
thresholddoubleOptional0-1Defaults to 0.4

Minimum cosine similarity score (0–1). Lower values return broader, less precise results.

emotional_registerenumOptional
The dominant emotional tone of a comment.
life_stageenumOptional
The inferred life stage of the commenter.
productstringOptional
Only return results mentioning this product.

Response

Semantically matched comments with similarity scores
resultslist of objects

Errors

400
Bad Request Error
500
Internal Server Error