This project provides an AI-powered recipe recommendation system
- Step 1: AI selects the best recipe from a given list.
- Step 2: AI explains why the recipe was chosen.
- Uses OpenAI's GPT-4-turbo for decision-making.
- Follows a sequential processing (chain-based) pattern.
- Node.js (>= 16.x) - https://nodejs.org/en
- An OpenAI API key - https://platform.openai.com/login
- A SPOONACULAR API KEY - https://spoonacular.com/food-api
-
Clone the repository:
git clone git@github.com:gondar00/move-tech.git cd move-tech -
Install dependencies:
npm install
-
Set up environment variables:
echo "OPENAI_API_KEY=your-api-key" >> .env echo "SPOONACULAR_API_KEY=your-api-key" >> .env
-
Run the project:
npm run dev
- Lack of observability: Our model calls must be reliable, with the ability to maintain history across timeouts, retries, and multiple calls. Additionally, we need to manage flow control effectively while continuously iterating on aspects like prompt design and the RAG (Retrieval-Augmented Generation) approach. This requires careful orchestration, and a tool like inngest would excel here.
- Proper logging - API logs can be made more verbose
- Micro services - We aplit the application into three services like frontend, API service and AI service such that each service handles its own responsibilities