- Docker
- Ruby 3.3 (probably works with other versions too, but only tested with 3.3)
- libtorch (see "Getting Started" section for more info about this)
-
First, make sure that you're able to install the 0.20.0 version of the torch-rb gem. See this repository for installation instructions: https://github.com/ankane/torch.rb#installation
-
Run
bundle install
-
Run
docker compose build && docker compose up
to start the Docker compose process, which will start Solr. This process will build a Docker image based on the latest conigurations specified in the docker-compose.yml file, and will then run the Docker compose process in the foreground. You'll want to use a different terminal for the steps that follow. -
Execute the main script:
ruby ./main.rb
-
When you're done, go to the terminal window where docker is running, and hit ctrl+c to stop the process. Then run
docker compose down
to clean up the Solr container.