Coder Social home page Coder Social logo

langchain-php's People

Contributors

kambo-1st avatar nik-418 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

langchain-php's Issues

Is the package still active?

What happened?

Hellow @kambo-1st, I wanted to inquire on the possibility of contributing some new functionalities to the package.

Recently, I've released a PHP package that integrates ChromaDB within PHP applications. I'm keen on extending this support to the package and additionally adding compatibility for other vector stores like Pinecone, Milvus, among others, to broaden the options available for users.

Before diving into the implementation, I wanted to inquire about the current activity and maintenance status of repo. Are new contributions welcomed? Is any active development still going on?

How to reproduce the bug

N/A

Package Version

N/A

PHP Version

8.2

Which operating systems does with happen with?

No response

Notes

No response

[Bug]: hello, why?

What happened?

image

How to reproduce the bug

composer require kambo/langchain

Package Version

2.0.0

PHP Version

7.4.33

Which operating systems does with happen with?

No response

Notes

No response

[Bug]: You exceeded your current quota, please check your plan and billing details.

What happened?

use in laravel 9

<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Kambo\Langchain\LLMs\OpenAI;
use Kambo\Langchain\LLMs\OpenAIChat;

class TestController extends Controller
{
    public function webhook(Request $request)
    {
        $llm  = new OpenAIChat([
            'temperature'    => 0.9,
            'openai_api_key' => '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',
        ]);

        $text = "hello";

        echo $llm($text);
        //return response()->json($result, 200)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
    }

}

How to reproduce the bug

not work

notice: You exceeded your current quota, please check your plan and billing details. this is a free account

Package Version

"kambo/langchain": "0.2.0-alpha",

PHP Version

8.2.6

Which operating systems does with happen with?

macOS, Linux

Notes

No response

[Bug]: Could you make 7.4.2 compatible i cant use without php 8

What happened?

cant install and run with php 7.4.2

How to reproduce the bug

try to install and run with php 7.4.2

Package Version

1

PHP Version

7.4.2

Which operating systems does with happen with?

Windows

Notes

that is i just want to know if the package could be made to run in older php versions

[Bug]: "Langchain.php file is not in correct location."

What happened?

When trying to use this port of Langchain for PHP I find that the main file Langchain.php is not located in the root of the namespace /src.

Only one version is present in /src/Exceptions, which causes errors when trying to load the class.

Please consider moving the file to the expected location in /src/Langchain.php so that the library can be used properly.

Also validate that the version in Exceptions is complete and correct for general use.

Thank you for your work on this unofficial port. It would be very useful to have a stable and well-implemented version of Langchain for PHP.

Best regards

How to reproduce the bug

  1. Clone the Langchain repository for PHP:
    git clone https://github.com/kambo-1st/langchain-php

  2. Install dependencies with Composer:
    composer install

  3. Create an index.php file with the following code:

[Question]: Do we need SQLite

What happened?

Do we need SQLite in order to use the vector store?

How to reproduce the bug

Do we need SQLite in order to use the vector store?

Package Version

master

PHP Version

8.1

Which operating systems does with happen with?

macOS

Notes

No response

[Bug]: New Issues templates return 404

What happened?

All of these links are failing:

Ask a question
Request a feature
Report a security issue

How to reproduce the bug

Click on the links above

Package Version

n/a

PHP Version

n/a

Which operating systems does with happen with?

macOS

Notes

I want to discuss creating a vectorstore with this -> https://github.com/pgvector/pgvector-php.
It's a postgresql extension which allows you to query vectors which makes it a pretty good candidate for many php users.

[Question]: Why the choice of `final` classes everywhere?

What happened?

Final classes make it harder for developers to extend package functionality in their own projects. What's the benefit that you see?

How to reproduce the bug

Package Version

PHP Version

Which operating systems does with happen with?

No response

Notes

No response

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.