Seeds / Generate Context

Generate Context

Generate a formatted context string from search results optimized for LLM consumption. Takes search results and formats them with source attribution, relevance scores, and proper structure for RAG (Retrieval-Augmented Generation) applications.

POST {baseAPIUrl}/seeds/generate-context

Authentication

Required. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Query Parameters

ParameterTypeRequiredDescription
appIdstringRequiredApplication identifier
externalUserIdstringRequiredExternal user identifier

Request Body

FieldTypeRequiredDescription
seedIdsstring[]OptionalSpecific seed IDs to include
bundleIdsstring[]OptionalBundle IDs to include all seeds from
modelstringOptionalTarget model for token limits

Try It

Query Parameters

Application identifier

External user identifier

Request Body

Specific seed IDs to include

Bundle IDs to include all seeds from

Target model for token limits (e.g., "gpt-4")