https://github.com/kambo-1st/langchain-php
⚡ Building applications with LLMs through composability in PHP ⚡
https://github.com/kambo-1st/langchain-php
Last synced: 10 months ago
JSON representation
⚡ Building applications with LLMs through composability in PHP ⚡
- Host: GitHub
- URL: https://github.com/kambo-1st/langchain-php
- Owner: kambo-1st
- License: mit
- Created: 2023-04-02T13:45:41.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T07:02:33.000Z (over 2 years ago)
- Last Synced: 2024-10-24T19:41:40.516Z (over 1 year ago)
- Language: PHP
- Size: 94.7 KB
- Stars: 270
- Watchers: 18
- Forks: 32
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-php-ml - kambo-1st/langchain-php - 1st/langchain-php?style=social) A PHP port of the LangChain framework for building composable LLM-powered applications (LLMs & AI APIs / Recommended core stack)
- awesome-php-ai - **langchain-php** - Building applications with LLMs through composability in PHP (Libraries / Natural Language Processing)
README
# 🐘🦜️🔗 PHP LangChain
⚡ Building applications with LLMs through composability in PHP ⚡
[](https://packagist.org/packages/kambo/langchain)
[](https://github.com/kambo-1st/langchain-php/actions/workflows/run-tests.yml)
[](https://packagist.org/packages/kambo/langchain)
[](https://opensource.org/licenses/MIT)
The LangChain PHP Port is a meticulously crafted adaptation of the original [LangChain library](https://github.com/hwchase17/langchain), bringing its robust natural language processing capabilities to the PHP ecosystem.
This faithful port allows developers to harness the full potential of LangChain's features, while preserving the familiar PHP syntax and structure.
## Installation
You can install the package via composer:
```bash
composer require kambo/langchain
```
## 🤔 What is this?
Large language models (LLMs) are emerging as a transformative technology, enabling
developers to build applications that they previously could not.
But using these LLMs in isolation is often not enough to
create a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.
This library is aimed at assisting in the development of those types of applications. Common examples of these types of applications include:
## Work in progress
This library is still in development. Use at your own risk!
### Supported features
* Prompt formatting
* LLMs: OpenAI GPT-3, ChatGPT, llama.cpp
* Vector stores: Simple stupid vector store
* Texts splitters: CharacterTextSplitter, RecursiveCharacterTextSplitter
* Embeddings: OpenAI
* Document loaders: TextLoader
More to come!
### Documentation
* [PHP specific](docs/PHP/TOC.md)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.