llamaindex-retrieval-api
llamaindex-retrieval-api copied to clipboard
Add an HTTPException for the /query endpoint if the engine fails.
In the query.py file add a FastAPI HTTPException if the engine class fails to initialize or something else happens...
I'm searching for relevant snippets in your repository.
Code Snippets Found
https://github.com/Haste171/llamaindex-retrieval-api/blob/9cd5c37e745e52e3b1eba66d885992d34be0be64/routers/loaders/pdf.py#L0-L24
https://github.com/Haste171/llamaindex-retrieval-api/blob/9cd5c37e745e52e3b1eba66d885992d34be0be64/LICENSE#L0-L15
https://github.com/Haste171/llamaindex-retrieval-api/blob/9cd5c37e745e52e3b1eba66d885992d34be0be64/LICENSE#L15-L30
https://github.com/Haste171/llamaindex-retrieval-api/blob/9cd5c37e745e52e3b1eba66d885992d34be0be64/routers/loaders/ipynb.py#L0-L25
https://github.com/Haste171/llamaindex-retrieval-api/blob/9cd5c37e745e52e3b1eba66d885992d34be0be64/README.md#L0-L15