context
Search for context data in the context processor
This endpoint sends a search request to the context processor to retrieve relevant context data based on the provided query.
post/api/v1/context/search
Query parameters
metadata'true' | 'false'
Controls whether metadata is included in the response:
- metadata=true → metadata will be included in each context item in the response.
- metadata=false (or omitted) → metadata will be excluded from the response for better performance.
mode'fast' | 'standard'
Controls the search mode:
- mode=fast → prioritizes speed over completeness.
- mode=standard → performs a comprehensive search (default if omitted).
Request body
Example request
{
"user_id": "user123",
"query": "search query for user preferences",
"similarity_threshold": 0.8,
"minimum_similarity_threshold": 0.5
}Response
Context search request successfully processed. Response structure varies based on metadata query parameter: if metadata=true, each context includes metadata; if metadata=false or omitted, metadata is excluded from the response.