benbjurstrom / pgvector-scout-demo

Demo of the pgvector engine for Laravel Scout.

Home Page:https://github.com/benbjurstrom/pgvector-scout

Repository from Github https://github.combenbjurstrom/pgvector-scout-demoRepository from Github https://github.combenbjurstrom/pgvector-scout-demo

Pgvector Scout Demo Application

Use this application to demo the pgvector engine for Laravel Scout.

The application includes database seeders containing 500 reviews from the Amazon Fine Food Reviews dataset along with their corresponding embeddings. The demo show's how these embeddings can be used to find related reviews or sort the reivew index by their similarity to various concepts.

pgvector-index

pgvector-details

🚀 Quick start

Install the dependencies

composer install && npm install && npm run build

Run the migrations and seed the database

php artisan migrate --seed

Start the server

php artisan serve

Visit the application in your browser at http://localhost:8000/reviews.

Optional: Add your OpenAI API key

OPENAI_API_KEY=your-api-key

About

Demo of the pgvector engine for Laravel Scout.

https://github.com/benbjurstrom/pgvector-scout


Languages

Language:PHP 86.5%Language:Blade 12.2%Language:JavaScript 1.2%Language:CSS 0.1%