langflow-ai / langflow

⛓️ Langflow is a visual framework for building multi-agent and RAG applications. It's open-source, Python-powered, fully customizable, LLM and vector store agnostic.
http://www.langflow.org
MIT License
18.48k stars 2.78k forks source link

Does this have LangchainJS support? #61

Closed linonetwo closed 11 months ago

linonetwo commented 1 year ago

I've created a localized https://github.com/linonetwo/langchain-alpaca based on langchain-js

Can I use it inside langflow?

ogabrielluiz commented 1 year ago

We have not tested langchain-js.

It might be useful to implement it later on but there are no plans just yet.

I'll take a look at it to see how hard would it be.

vid commented 1 year ago

Big +1 for langchain-js. Thanks!

linonetwo commented 1 year ago

Can you explain how you load py modules? So I can take a look how to add TS support.

currently your doc site is your company site, whould you mind add a doc site like langchain?

anovazzi1 commented 1 year ago

we have plans for a doc site, but for now, all our objects reflect langchain objects and the front-end renders it only. Our python modules filter it and adjust for the flow rendering. There is just some documentation in the comments inside the code for now.

ogabrielluiz commented 1 year ago

@linonetwo we plan on improving the code that parses the graph but the main thing @anovazzi1 might be able to help, I think, is on the output of the react-flow canvas.

The data structure that goes to the backend is what defines the structure of the code. In the tests folder you can take a look at one or you could simply Export the flow you've built. That structure is what the backend parses to build each LangChain object. An algorithm for that is in the loading.py module in the backend but it still in development.

msikora78 commented 1 year ago

Another huge +1 for langchain-js as well!

JBX028 commented 1 year ago

One more +1 for the integration with langchainjs

ogabrielluiz commented 1 year ago

For us to have that implemented we need to finish the algorithm that puts LangFlow a lot closer to what LangChain is. I'm planning the steps as I write this to get us to the point where we can more easily integrate langchainjs.

Thanks for the feedback on this matter! This helps us a lot in prioritizing the tasks.

HenryHengZJ commented 1 year ago

We were looking for similar drag&drop UI for LangchainJS support as well, ended up creating one written in JS/TS: https://github.com/FlowiseAI/Flowise with the ability to import and use your localized module

linonetwo commented 1 year ago

We were looking for similar drag&drop UI for LangchainJS support as well, ended up creating one written in JS/TS: https://github.com/FlowiseAI/Flowise with the ability to import and use your localized module

What is the difference in UI with langflow? Usage is similar, but can load ts module?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.