PHP-RAG: Open source PHP-based LLM solution

Kristian Polso • November 25, 2023

Php Llm Machine Learning Ai Open Source Project Github Neural Networks

I have released an open source RAG-based solution on Github, called PHP-RAG.

With it, you can build an AI assistant (or a "chatbot") using common web frameworks and tools, like PHP, Elasticsearch or Solr.

It connects with several LLM APIs, like OpenAI (Chatgpt), and open source ones like KoboldAI.

So what is RAG anyway? It's short for "Retrieval-augmented generation". In other words, it's a way to augment or enrich LLM inference, by providing extra context from a third-party source. I personally think that Lucene-based apps like Elastic or Solr are a great fit for this, since they are fast and optimized for these kinds of queries.

IBM has a great article on RAG on their blog.

Go check the project out, and I would much appreciate feedback on it!

Share This Post