The Vectorify Laravel package integrates your Laravel application with Vectorify to make your Laravel model data accessible by AI. The package automates the process of extracting, transforming, and synchronizing your application’s data with Vectorify.

Install

Install the package using Composer:

composer require vectorifyai/vectorify-laravel

Configure

Publish the configuration file and enter the tables and columns you want to be accessible by AI into the config/vectorify.php file. See the configuration page for more details.

php artisan vendor:publish --tag=vectorify

Don’t forget to add your Vectorify API key in your .env file:

VECTORIFY_API_KEY=your_api_key_here

Send

Send your data to Vectorify using the provided vectorify:upsert artisan command:

php artisan vectorify:upsert

Chat

Finally, chat with your data from the Chats page or embed a Chatbot into your Laravel application.