Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ijackua/rubyonrails-ai-hub
Experimental project with RoR and LangChain/LLM APIs/Vector database
https://github.com/ijackua/rubyonrails-ai-hub
Last synced: 17 days ago
JSON representation
Experimental project with RoR and LangChain/LLM APIs/Vector database
- Host: GitHub
- URL: https://github.com/ijackua/rubyonrails-ai-hub
- Owner: iJackUA
- Created: 2023-11-20T14:34:34.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-29T10:29:25.000Z (11 months ago)
- Last Synced: 2024-10-09T22:05:47.303Z (28 days ago)
- Language: Ruby
- Size: 183 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby on Rails AI Hub
> Experimental Rails app using AI and LLM services
## Run with Docker-Compose
Prerequisite: Docker and Docker Compose installed on the host machine.
* Clone `.env` file from `.env.example`, check it has has correct ENV and secrets values
* `docker-compose build`
* `docker-compose up`
* `docker-compose run --rm runner ./bin/setup`## Run with VSCode Remote Container (recommended way)
Prerequisite: Docker and Docker Compose installed on the host machine
It is recommended to use [VSCode](https://code.visualstudio.com/) with [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).* Clone `.env` file from `.env.example`, check it has has correct ENV and secrets values
* Run command "Remote-Containers: Open Folder in Container" in VSCode
* It opens IDE window inside the "web" container
* All settings are in `.devcontainer` folder, check what additions to Dockerfile are installed in `install-features.sh`
* Now you can work inside the container as if you were just using Rails and Ruby on your local machine! 🔥
* Run setup script: `./bin/setup`
* Run `overmind s`. Or start Rails app using one of the way described in "Run in Local Dev Mode" (`OVERMIND_PROCFILE` specified in container ENV, so no need to specify `-f Procfile.dev` explicitly)## Run on dev machine without any of these fancy containers...
* Setup PostgreSQL + pg_vector extension
* Anyway take a look in docker-compose.yml to see are there other dependencies you need to have :)
* Clone `.env` file from `.env.example`, check it has has correct ENV and secrets values
* `./bin/setup`
* `overmind s -f Procfile.dev` - run [Overmind](https://github.com/DarthSim/overmind) (more advanced and stable than gem `foreman`)
* or using more "classic" gem Foreman `gem install foreman` + `foreman start -f Procfile.dev`## UI ideas
* Using ViewComponents lib https://github.com/baoagency/polaris_view_components/
* Preview Storybook with existing components https://polarisviewcomponents.org/