[WIP] 🧠 Toolkit for building AI features into your Laravel app.
MIT License
Please follow @helgesverre for updates, and keep an eye on TODO.md to track progress.
You can install the package via composer:
composer require mindwave/mindwave
You can publish the config file with:
php artisan vendor:publish --tag="mindwave-config"
Mindwave is a Laravel package that lets you easily build AI-powered chatbots, agents, and document question and answering (Q&A) functionality into your application.
With Mindwave, you can incorporate the power of OpenAI's state-of-the-art language models, Pinecone's vector search capabilities and your own custom "tools" to create intelligent software applications.
<?php
use Illuminate\Support\Facades\File;
use Mindwave\Mindwave\Facades\DocumentLoader;
use Mindwave\Mindwave\Facades\Mindwave;
use Mindwave\Mindwave\Memory\ConversationBufferMemory;
$agent = Mindwave::agent(
memory: ConversationBufferMemory::fromMessages([])
);
Mindwave::brain()
->consume(
DocumentLoader::fromPdf(
data: File::get("uploads/important-document.pdf"),
meta: ["name" => "Important document"],
)
)
->consume(
DocumentLoader::fromUrl(
data: "https://mindwave.no/",
meta: ["name" => "Mindwave Documentation"],
)
)
->consume(
DocumentLoader::make("My name is Helge Sverre")
);
$agent->ask("List the top 3 most important things in 'important document'");
$agent->ask("What is mindwave?");
$agent->ask("What is my name?");
Full documentation can be found here.
To see a real world example of how the Mindwave package can be used, checkout the demo application here.
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.