Sign up to save tools and stay up to date with the latest in AI
bg
bg
1

GitHub - Krisseck/php-rag: An AI assistant built with PHP, Solr and LLM backend of choice. Proof of concept mostly.

Nov 06, 2023 - github.com
The article discusses PHP-RAG, an AI chatbot built with PHP, Solr, and a language model of choice. It is primarily a proof of concept. The chatbot uses retrieval-augmented generation, a process illustrated with a diagram. The project uses DDEV for environment management, and the installation process is outlined, including the necessary software and services.

The configuration options for the project are detailed, including various server details, API keys, and model names. The backend can be either Solr or ElasticSearch, with the potential for more options like MySQL or Sqlite. The language model can be OpenAI, Replicate, or KoboldAI Horde. A demo script is provided in the examples folder, with instructions on how to run it with DDEV.

Key takeaways:

  • PHP-RAG is an AI assistant or chatbot built with PHP, Solr and a language model of choice, primarily as a proof of concept.
  • The project uses DDEV for environment management and requires PHP 8.1, Composer, a Solr server, and access to a language model service for installation.
  • It offers various configuration options including Solr server details, Elastic server details, token count for LLM context, and API keys for different language models.
  • An example script is provided in the 'examples' folder for demonstration, and it's noted that fetching the output can take some time on free APIs.
View Full Article

Comments (0)

Be the first to comment!