https://github.com/upstash/chat-with-laravel-docs
AI Chat boilerplate powered by Laravel and Upstash Vector
https://github.com/upstash/chat-with-laravel-docs
ai laravel php vector
Last synced: about 1 year ago
JSON representation
AI Chat boilerplate powered by Laravel and Upstash Vector
- Host: GitHub
- URL: https://github.com/upstash/chat-with-laravel-docs
- Owner: upstash
- Created: 2025-02-25T19:13:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-14T09:25:37.000Z (over 1 year ago)
- Last Synced: 2025-04-02T21:46:57.382Z (about 1 year ago)
- Topics: ai, laravel, php, vector
- Language: PHP
- Homepage: https://chat-with-laravel-docs.laravel.cloud
- Size: 905 KB
- Stars: 18
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat with Laravel Docs
This is a sample application that demonstrates how to use the Upstash Vector database with the OpenAI API to build a chatbot that can answer questions about Laravel.
It ingests the Laravel documentation from the GitHub repository, breaks the documentation
into chunks and stores them in our Vector database.
The chatbot then uses the Vector database to answer questions about the documentation.
## Stack
- Tailwind CSS
- Alpine.js
- Laravel
- Livewire
- Upstash Vector
- OpenAI
## Installation
1. Clone the repository
2. Install dependencies with `composer install`
3. Create an account on Upstash and a Vector index.
4. Copy the `.env.example` file to `.env` and fill in the required environment variables.
5. Run `php artisan app:ingest:documentation` to populate the database with the documentation.
## Usage
1. Run the application with `php artisan serve`
2. Open your browser and navigate to `http://localhost:8000`