Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.48 KB

README.md

File metadata and controls

62 lines (46 loc) · 1.48 KB

Cookbook

Cookbook is a Java-based application designed to manage and organize recipes. It provides a simple interface for storing, retrieving, and sharing recipes.

This demo is created for the 42Berlin and Devoxx France workshops.

Features

  • Add, edit, and delete recipes.
  • Search recipes by name or ingredients.
  • Share recipes with others.
  • REST API for integration with other systems.

Requirements

  • Java 21 Runtime Environment
  • Maven 3 for building the project
  • Docker (optional, for containerized deployment)
  • Ollama (make sure to pull the models that you want to use, as the app won't pull them automatically)
  • Redis Stack (for the RAG part)

Build and Run

Using Maven

  1. Clone the repository:
    git clone https://github.com/your-repo/cookbook.git
    cd cookbook
  2. Build the project:
    mvn clean install
  3. Run the application:
    java -jar target/cookbook-0.0.1-SNAPSHOT.jar

Using Docker

  1. Build the Docker image:
    docker build -t cookbook .
  2. Run the Docker container:
    docker run -p 8080:8080 cookbook

RAG part

For the RAG part, you need to run a Redis Stack instance, for instance with:

docker run -p 6379:6379 -d --name redis-stack redis/redis-stack

Then you can load a bunch of recipes into the Redis Vector Store with the script upload-cookbook.sh.

License

This project is licensed under the MIT License. See the LICENSE file for details.