Code Monkey home page Code Monkey logo

langchain-php's Introduction

🐘🦜️🔗 PHP LangChain

⚡ Building applications with LLMs through composability in PHP ⚡

Latest Version on Packagist Tests Total Downloads License: MIT

The LangChain PHP Port is a meticulously crafted adaptation of the original LangChain library, 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:

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

License

The MIT License (MIT). Please see License File for more information.

langchain-php's People

Contributors

kambo-1st avatar nik-418 avatar akramzerarka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.