thojou / llm-documents
A PHP library adapting the original python Document transformation framework to improve vector search results
Requires
- php: >=8.1
- ext-iconv: *
- google/apiclient: ^2.15
- guzzlehttp/guzzle: ^7.8
- html2text/html2text: ^4.3
- soundasleep/html2text: ^2.1
- spatie/crawler: ^8.0
- symfony/mime: ^6.3
- symfony/uid: ^6.3
- thojou/openai-php-client: dev-master
- thojou/php-simple-api-client: dev-master
- yethee/tiktoken: ^0.1.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.23
- nunomaduro/phpinsights: ^2.8
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^10.3
This package is auto-updated.
Last update: 2024-12-20 12:38:40 UTC
README
PHP LLM Documents is a powerful PHP library that brings LLM (Large Language Model) functionality into the PHP ecosystem. It incorporates various features inspired by popular Python libraries such as langchain and doctran. This library offers capabilities for web search, web scraping, document transformation, text splitting, embeddings, vector storage and retrieval.
Requirements
- PHP version >= 8.1
Installation
You can effortlessly install the PHP LLM Documents using the popular package manager composer.
This project is currently under development. If installing with composer, please make sure to accept a minimum stability of
dev
in yourcomposer.json
file.
composer require thojou/llm-documents:dev-master
Usage
For more practical examples, please refer to the examples folder.
Documentation
Coming Soon
License
This project is licensed under the generous and permissive MIT license.