This is the remote server that performs the actual image analysis behind our app. For the frontend, this is the link to the app.
This project is still in development. Although the first endpoint (suggesting eco-friendly alternatives to foods) is already implemented we are currently working to add an endpoint which returns a recipe and image for a dish from an inputted ingredient list. We're experimenting with two approaches for generating accurate and eco-conscious responses:
- Finetuning an open-source LLM on recipe and sustainability data.
- Implementing Retrieval-Augmented Generation (RAG) using a vector store and embedding models
- Transparent Source Citation
For credibility and transparency, our system will cite the sources of recipe data or sustainability facts used during generation.
Run the following command to create and activate a Conda environment:
conda create --name ecoeats-env python=3.12 -y
conda activate ecoeats-envEnsure you have all required dependencies by installing them from requirements.txt:
pip install -r requirements.txtFollow the instructions to install Ollama from Ollama's official site.
curl -fsSL https://ollama.ai/install.sh | shStart Ollama using the following command:
ollama run ollamaRun the server script to begin processing requests:
python src/server.pyAfter starting the server, it will be ready to accept image analysis requests.
This project is licensed under the MIT License.
