Laravel As A Retrieval Augmented Generator System

Alfred Nutile
2 min readApr 14, 2024


LaraChain Integrations

In this video, I will show you how to use LaraChain to upload files into “Collections” and create searchable data using the Ollama or OpenAi API for embedding the content. Additionally, you can use either of those or Claude to chat about those documents. The code for this can be found at GitHub.

This system is based on an older version of the code that was the starting point for Larachain about a year ago. Since then, I have built numerous systems for customers and myself to utilize these LLMs and have a much more simple approach to building a system to do all this.

While OpenAi is amazing, yet in my opinion, it’s not enough for businesses to solely rely on it for their LLM/AI goals. It lacks privacy and many other features that are essential for a solid web application experience. Whether you need a customer CRM or a documentation site with chat, there are countless ways to leverage the numerous LLMs out there. For example, you can use Larachain to organize your inbox or empower your staff to extract information from private datasets and create new content. By utilizing or building a system like Larachain, your business can tap into the full potential of these technologies.

The video will demonstrate how the system works currently. Please note that I have not yet migrated all the features from LaraChain, but here is a list of upcoming features:

  • Email Integration
  • SharePoint Integration
  • Google Calendar Integration
  • Google Docs Integration
  • Modularization so developers can add Functions and Agents easily.
  • Scheduled tasks, such as web searching and website change notifications via SMS or email
  • CSV uploads with data reporting based on chat questions
  • Shared collections with team members
  • Private LLMs for data security
  • API Integration for seamless communication between your systems and documents
  • Power Point generation
  • CSV File Generation

I encourage you to watch the video to see the system in action with OpenAi, Ollama, and Claude.



Alfred Nutile Open-Source Product Created Day to day developer using Laravel, PHP, Vue.js, Inertia