git404hub

what is ai-kit-core fr?

solutionforest/ai-kit-core — explained in plain English

Analysis updated 2026-05-18

1PHPAudience · developerComplexity · 3/5Setup · moderate

tl;dr

A PHP add-on for Laravel that builds a chatbot which answers questions from your own documents by searching them first and grounding AI responses in your content with citations.

vibe map

mindmap
  root((repo))
    What it does
      Chatbot over your docs
      Search then answer
      Cite sources
    Document support
      PDF and Word
      Excel and HTML
      Markdown and URLs
    Search modes
      Tool mode
      Inject mode
    Storage
      SQLite
      pgvector
    Tech stack
      PHP
      Laravel
      OpenAI
    Use cases
      Knowledge base chat
      Document Q&A
      Cost tracking

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Build a customer support chatbot that answers from your uploaded product manuals and help docs.

VIBE 2

Create an internal Q&A assistant that searches company PDFs and Word files to answer staff questions with citations.

VIBE 3

Ingest web pages and spreadsheets into a searchable knowledge base so an AI can answer questions grounded in your data.

VIBE 4

Track token usage and estimated costs per conversation across multiple AI providers.

what's the stack?

PHPLaravelSQLitepgvectorOpenAIAnthropicGemini

how it stacks up fr

solutionforest/ai-kit-coreagentpietrucha/ks_affiliationakarshsatija/php-whois
Stars111
LanguagePHPPHPPHP
Last pushed2014-02-06
MaintenanceDormant
Setup difficultymoderatemoderateeasy
Complexity3/53/52/5
Audiencedeveloperdeveloperpm founder

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires PHP 8.3+, Laravel 12 or 13, and an AI provider API key such as OpenAI, pgvector recommended for large-scale production.

in plain english

ai-kit-core is a PHP package for Laravel that lets you build a chatbot which answers questions using your own documents. Instead of sending a user's question to an AI model that has no knowledge of your data, this tool first searches your uploaded files for relevant passages, then feeds those passages to the model so its answers are grounded in your actual content and can cite specific sources. The package calls this approach RAG, which stands for retrieval-augmented generation. The installation process is straightforward. You run a couple of commands and the package sets up a configuration file, creates the needed database tables, and scaffolds a basic assistant. You then add your AI provider credentials, such as an OpenAI API key, and you can start ingesting documents. The tool can process PDFs, Word files, Excel spreadsheets, HTML pages, Markdown, plain text, and web URLs. It extracts the text, breaks it into smaller chunks, generates a mathematical representation of each chunk called an embedding, and stores those in a database for later searching. When a user asks a question, the system searches the stored chunks for the most relevant content. It offers two modes for this. In tool mode, the AI model itself decides when to search and what to look for, which supports more complex multi-step questions. In inject mode, the system always retrieves relevant context and includes it in the prompt before the model responds, which works better with smaller or less capable models. For storage, you can use SQLite for simple setups with no extra infrastructure, or pgvector for production scale with millions of documents. The package tracks token usage and estimated costs per conversation, and it works with multiple AI providers including OpenAI, Anthropic, Gemini, and others. It requires PHP 8.3 or newer and Laravel 12 or 13. The full README is longer than what was shown.

prompts (copy fr)

prompt 1
I want to build a Laravel chatbot that answers questions from my own PDFs and Word documents with citations. Show me how to install and configure solutionforest/ai-kit-core, set up OpenAI, and ingest my first document.
prompt 2
Set up solutionforest/ai-kit-core in my Laravel app using pgvector for storage and Anthropic as the AI provider. Walk me through running the install command, publishing the config, adding my API key, and ingesting a batch of documents.
prompt 3
Explain the difference between tool mode and inject mode in solutionforest/ai-kit-core and help me choose the right retrieval mode for a small open-source model answering multi-step questions over my knowledge base.
prompt 4
Create a simple web page in Laravel where a user can type a question, have ai-kit-core search my ingested documents, and display the grounded answer with links to the source passages it cited.
prompt 5
Help me use solutionforest/ai-kit-core to ingest HTML pages and Markdown files from a list of URLs, then verify that embeddings were generated and stored correctly in SQLite.

Frequently asked questions

what is ai-kit-core fr?

A PHP add-on for Laravel that builds a chatbot which answers questions from your own documents by searching them first and grounding AI responses in your content with citations.

What language is ai-kit-core written in?

Mainly PHP. The stack also includes PHP, Laravel, SQLite.

How hard is ai-kit-core to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is ai-kit-core for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.