Seeds / Search

Search Seeds

Perform semantic search across your document library using natural language queries powered by vector embeddings. This endpoint uses Jina Embeddings v4 to convert your query into a 1024-dimensional vector and finds the most semantically similar content chunks. Results are ranked by similarity score and include the matching text content, source seed information, and relevance scores. Supports both text queries and image-based search through multimodal embeddings.

POST {baseAPIUrl}/seeds/query

Authentication

Required. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Query Parameters

ParameterTypeRequiredDescription
appIdstringRequiredApplication identifier
externalUserIdstringRequiredExternal user identifier for data isolation

Request Body

FieldTypeRequiredDescription
querystringRequiredNatural language search query
seedIdsstring[]OptionalLimit search to specific seed IDs (default: [])
limitnumberOptionalMax results to return (1-100, default: 30)
thresholdnumberOptionalSimilarity threshold (0-1, default: 0.5)
imageDatastringOptionalBase64-encoded image for image search

Understanding the Threshold Parameter

The threshold parameter controls the minimum similarity score required for results to be returned. Values range from 0 to 1.

  • Development (0.3): Use a lower threshold to see more results and understand search behavior.
  • Production (0.5): The default threshold filters out lower-quality matches for relevance.

Response

FieldTypeDescription
resultsarrayArray of search results
results[].seedIdstringID of the seed containing the match
results[].chunkIdstringID of the matching chunk
results[].contentstringContent of the matching chunk
results[].similaritynumberSimilarity score (0-1, higher is better)
totalnumberTotal matching results
queryTimenumberQuery execution time in seconds

Try It

Query Parameters

Application identifier

External user identifier for data isolation

Request Body

Natural language search query

Limit search to specific seed IDs

Max results to return (1-100)

Similarity threshold (0-1)