# Retriever Microservice API Reference ## Health Check Endpoint: ``` GET /v1/retrieval/health ``` Description: Checks the health status of the microservice. Response: - 200 OK: ``` { "status": "healthy" } ``` - 500 Internal Server Error: ``` { "detail": "Health check failed: " } ``` ## Retrieval Endpoint: ``` POST /v1/retrieval ``` Description: Performs a retrieval task using the provided text query and optional filters. Request Body: ``` { "query": "", "filter": { "": "" }, "max_num_results": 10 } ``` - query: The text query for retrieval. - filter: Optional dictionary to refine search results. - max_num_results: Maximum number of results to return (default: 10). Response: - 200 OK: ``` { "results": [ { "id": "", "distance": , "meta": { "": "" } }, ... ] } ``` - 500 Internal Server Error: ``` { "detail": "Error during retrieval: " } ```