Vanar | API Reference
Back to Console

Search Seeds

Perform semantic search across seeds using natural language queries with vector embeddings.

Endpoint

POST /seeds/query

Authentication

Required. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Query Parameters

ParameterTypeRequiredDescription
appIdstringYesApplication identifier
externalUserIdstringYesExternal user identifier for data isolation

Request Body

FieldTypeRequiredDescription
querystringYesNatural language search query
seedIdsstring[]NoLimit search to specific seed IDs (default: [])
limitnumberNoMax results to return (1-100, default: 30)
thresholdnumberNoSimilarity threshold (0-1, default: 0.5)
imageDatastringNoBase64-encoded image for image search (data:image/...)

Response Fields

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

Status Codes

CodeDescription
200Success - Search results returned
400Bad Request - Invalid query or parameters
401Unauthorized - Invalid API key
500Internal Server Error

Search Features

  • Jina Embeddings v4: Multimodal embeddings supporting both text and image search in unified vector space
  • Redis caching: Hot chunks cached for 10-50x faster subsequent queries
  • Seed filtering: Restrict search to specific seeds using seedIds parameter
  • Similarity threshold: Control result quality with threshold parameter
  • Image search: Search using images as input with imageData parameter

Base URL: All requests use https://api-development.myneutron.ai which adapts to your environment.