It is a Recipe Recommendation API (PoC) based on the supplied list of ingredients using RAG with generative AI.
- Unzip the project directory.
- Set up the following env variables:
export OPENAI_API_KEY=<your-openai-api-key> export RECIPE_URL=<url-to-recipe-dataset> export POSTGRES_URL=<postgres-connection-url>
- Run the services using Docker Compose:
docker-compose up
-
Success Request:
curl --location 'http://localhost:8000/recommend_recipe' \ --header 'Content-Type: text/plain' \ --data '"flour, sugar, baking powder, yogurt, egg"'
-
Failure Request:
curl --location 'http://localhost:8000/recommend_recipe' \ --header 'Content-Type: text/plain' \ --data '"paper, ink"'
- Doesn't consider quantity
- Returns only one recipe
- Returns generic response even if the query is not correct.
- Does not implement the image based retrival.
- Data ingestion should be separate from the app.
- Needs tests
- Error handling required.