composer require laraigent/larai-kit
php artisan larai:install
This does three things:
config/larai-kit.phpai_documents, ai_assets, ai_chunks, ai_ingestions tables).envAdd your API keys:
# Required: AI provider
LARAI_AI_PROVIDER=openai
OPENAI_API_KEY=sk-your-key-here
# Recommended: Vector store for RAG
LARAI_VECTOR_STORE=pinecone
PINECONE_API_KEY=pcsk_your-key
PINECONE_INDEX_HOST=https://your-index-abc123.svc.pinecone.io
php artisan larai:doctor
You should see green [OK] for Database, AI Provider, and Vector Store.
composer require smalot/pdfparser phpoffice/phpword
1536 (matches OpenAI text-embedding-3-small)cosinehttps://your-index-abc123.svc.aped-1234.pinecone.io).envIf you prefer self-hosted vector search:
DB_CONNECTION=pgsql
LARAI_VECTOR_STORE=pgvector
Requires PostgreSQL with the pgvector extension installed. On Linux:
sudo apt install postgresql-17-pgvector
How can I help you explore Laravel packages today?