Looking to hire Laravel developers? Try LaraJobs

laravel-wayble-ai maintained by modcreative

Description
Domain knowledge artificial intelligence framework for Laravel
Author
Last update
2024/04/26 23:42 (dev-feature/v2)
License
Downloads
185

Comments
comments powered by Disqus

Wayble AI by Mod Creative

AI framework for Laravel

Usage

Install

If you're using the provided seeder, you must update your own seeder to run it, e.g. $this->call(WaybleAISeeder::class).

# install package
composer require modcreative/laravel-wayble-ai

# export migrations and seeders
php artisan vendor:publish --tag="wayble-ai-database"

Configure

# export config
php artisan vendor:publish --tag="wayble-ai-config"

# edit config
config/wayble-ai.php

Filament

If you're using filament in your Laravel app, you can export the resources provided by Wayble AI.

# export filament resources
php artisan vendor:publish --tag="wayble-ai-filament"

Publish Public Resources

php artisan vendor:publish --tag="wayble-ai-public"

Publish JS Resources

php artisan vendor:publish --tag="wayble-ai-js"

Gotchas 💣

We use uuids everywhere!

PredictionRequest

- SystemPrompt: Prompt that sets the persona and context for the model
- IncomingMessage: Message to send from the user
- SemanticContext: Knowledge base entries that are generated through similarity search
- AvailableTools: Tools that are available to the assistant (functions?)
- GeneratedReply: Reply to a message from assistant or human interjecting
- UsageInfo: How many tokens were consumed in this request
- Options: model, max_tokens, etc

ChatRequest <= PredictionRequest

- PreviousMessages: Previous messages from the user, assitant, and human interjecting