Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Larai Kit Laravel Package

laraigent/larai-kit

View on GitHub
Deep Wiki
Context7

Installation

Requirements

  • PHP 8.3+
  • Laravel 12 or 13
  • MySQL 8+ or PostgreSQL 14+
  • An AI provider API key (OpenAI, Anthropic, or Gemini)
  • Pinecone account (free tier works) if using Pinecone vector store

Step 1: Install the package

composer require laraigent/larai-kit

Step 2: Run the install command

php artisan larai:install

This does three things:

  1. Publishes config/larai-kit.php
  2. Runs database migrations (creates ai_documents, ai_assets, ai_chunks, ai_ingestions tables)
  3. Creates the storage symlink for local file uploads

Step 3: Configure .env

Add 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

Step 4: Verify

php artisan larai:doctor

You should see green [OK] for Database, AI Provider, and Vector Store.

Optional: PDF and DOCX support

composer require smalot/pdfparser phpoffice/phpword

Pinecone Setup

  1. Sign up at pinecone.io (free tier: 100K vectors)
  2. Create an index:
    • Dimensions: 1536 (matches OpenAI text-embedding-3-small)
    • Metric: cosine
  3. Copy the API key from your project settings
  4. Copy the index host URL (looks like https://your-index-abc123.svc.aped-1234.pinecone.io)
  5. Add both to .env

pgvector Setup (alternative)

If 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

Next Steps

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky