langchain-php  by kambo-1st

PHP library for building LLM-powered applications

created 2 years ago
309 stars

Top 88.0% 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

1 week

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

Explore Similar Projects

Starred by Jared Palmer Jared Palmer(Ex-VP of AI at Vercel; Founder of Turborepo; Author of Formik, TSDX), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
1 more.

promptable by cfortuner

0%
2k
TS/JS library for building full-stack AI apps
created 2 years ago
updated 2 years ago
Starred by Addy Osmani Addy Osmani(Engineering Leader on Google Chrome), Victor Taelin Victor Taelin(Author of Bend, Kind, HVM), and
1 more.

chatbox by chatboxai

0.3%
36k
Desktop client app for AI models/LLMs
created 2 years ago
updated 6 days ago
Feedback? Help us improve.