Download the PHP package omniglies/laravel-rag without Composer

On this page you can find all versions of the php package omniglies/laravel-rag. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-rag

Laravel RAG Package

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A complete Laravel package for implementing RAG (Retrieval-Augmented Generation) systems with external API integrations, vector databases, and a beautiful Alpine.js-powered web interface.

Features

Quick Start

Visit /rag in your browser and start uploading documents!

Table of Contents

Installation

Requirements

Step 1: Install via Composer

Step 2: Install the Package

This command will:

Step 3: Configure Environment

Add these environment variables to your .env:

Step 4: Set Up Queue Workers (Production)

Configuration

The package configuration is published to config/rag.php. Key configuration sections:

AI Providers

Vector Databases

Search Configuration

Usage

Web Interface

The package provides a complete web interface accessible at /rag:

Features

API Usage

The package exposes RESTful API endpoints at /api/rag/:

Upload Document

Ask Question

Search Documents

Get System Status

Programmatic Usage

Using the Facade

Using the Service

Advanced Usage

External Integrations

Document Processing API

The package supports external document processing services for advanced file format support:

Expected API interface:

Vector Database Providers

Pinecone

Weaviate

Qdrant

Embedding Providers

OpenAI

Cohere

Console Commands

Installation and Setup

Document Management

Maintenance

System Status

Testing

The package includes comprehensive tests:

Test Structure

Architecture

Core Components

Data Flow

  1. Document Upload โ†’ Queue Processing โ†’ External API โ†’ Chunking โ†’ Embeddings โ†’ Vector Storage
  2. User Query โ†’ Vector Search + Keyword Search โ†’ Context Building โ†’ AI Generation โ†’ Response

Design Patterns

Alpine.js Components

The web interface uses Alpine.js for reactive components:

Chat Component

Upload Component

Search Component

Performance Considerations

Production Optimization

  1. Queue Workers: Use dedicated queue workers for document processing
  2. Caching: Enable Redis/Memcached for embeddings and search results
  3. Database: Use PostgreSQL for optimal full-text search performance
  4. Vector Database: Choose appropriate vector DB based on scale
  5. Rate Limiting: Configure API rate limits for external services

Scaling

Security

API Keys

Authentication

Data Privacy

Troubleshooting

Common Issues

Document Processing Stuck

Vector Search Not Working

High API Costs

Debug Mode

Enable debug logging in config/logging.php:

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

Development Setup

Running Tests

Changelog

Please see CHANGELOG.md for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Roadmap


Need help? Check out our documentation or open an issue.


All versions of laravel-rag with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/database Version ^9.0|^10.0|^11.0
illuminate/http Version ^9.0|^10.0|^11.0
illuminate/queue Version ^9.0|^10.0|^11.0
illuminate/validation Version ^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
openai-php/client Version ^0.7
symfony/mime Version ^6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package omniglies/laravel-rag contains the following files

Loading the files please wait ...