🚀 Alchemyst is now the Pareto Frontier for AI Context! Learn more
curl --request POST \
--url https://platform-backend.getalchemystai.com/api/v1/context/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What did the customer ask about pricing for the Scale plan?",
"similarity_threshold": 0.8,
"minimum_similarity_threshold": 0.5,
"scope": "internal"
}
'{
"contexts": [
{
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"metadata": {},
"content": "<string>",
"score": 1.001
}
]
}This endpoint sends a search request to the context processor to retrieve relevant context data based on the provided query.
curl --request POST \
--url https://platform-backend.getalchemystai.com/api/v1/context/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What did the customer ask about pricing for the Scale plan?",
"similarity_threshold": 0.8,
"minimum_similarity_threshold": 0.5,
"scope": "internal"
}
'{
"contexts": [
{
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"metadata": {},
"content": "<string>",
"score": 1.001
}
]
}Documentation Index
Fetch the complete documentation index at: https://getalchemystai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Controls whether metadata is included in the response:
true, false Controls the search mode:
fast, standard The search query used to search for context data
"search query for user preferences"
Maximum similarity threshold (must be >= minimum_similarity_threshold)
0 <= x <= 10.8
Minimum similarity threshold
0 <= x <= 10.5
The ID of the user making the request
"user123"
Search scope
internal, external Additional metadata for the search
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.
Show child attributes