Skip to content

postgresml/example-rails

Repository files navigation

Rails AI Demo

  • Have AI models generate blog posts.
  • Generate embeddings to leverage vector search functionality.
  • Rank passages by relevance.
  • Record search metrics.
  • Build a model to improve search rankings.

Setup

  1. Sign up and create a database on https://postgresml.org
  2. Copy .env.template to .env, and set POSTGRESML_URL to your cloud database url
  3. bundle install