langchain-php  by kambo-1st

PHP library for building LLM-powered applications

Created 2 years ago
311 stars

Top 86.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a PHP port of the LangChain library, enabling PHP developers to build applications leveraging large language models (LLMs) through composability. It aims to bring LangChain's powerful natural language processing capabilities to the PHP ecosystem, allowing for the integration of LLMs with external data sources and computations.

How It Works

The library faithfully ports LangChain's core concepts and features into PHP, preserving familiar syntax and structure. It facilitates the creation of complex LLM-powered applications by enabling developers to chain together LLMs with other computational resources or knowledge bases, a key advantage for building sophisticated AI applications within a PHP environment.

Quick Start & Requirements

  • Install via Composer: composer require kambo/langchain
  • Requires PHP.

Highlighted Details

  • Supports OpenAI GPT-3, ChatGPT, and llama.cpp LLMs.
  • Includes Simple Stupid Vector Store, CharacterTextSplitter, RecursiveCharacterTextSplitter, OpenAI Embeddings, and TextLoader.
  • Features prompt formatting capabilities.

Maintenance & Community

  • This library is a work in progress and should be used at your own risk.
  • No community links or roadmap information are provided in the README.

Licensing & Compatibility

  • License: MIT License (MIT).
  • Permissive license suitable for commercial use and closed-source applications.

Limitations & Caveats

The project is explicitly stated as being in development and should be used at the user's own risk. The range of supported features is limited, with more to come.

Health Check
Last Commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Pietro Schirano Pietro Schirano(Founder of MagicPath), and
1 more.

SillyTavern by SillyTavern

1.1%
18k
LLM frontend for power users
Created 2 years ago
Updated 23 hours ago
Feedback? Help us improve.