langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Does this have LangchainJS support?

Open linonetwo opened this issue 1 year ago • 11 comments

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

Can I use it inside langflow?

linonetwo avatar Mar 21 '23 08:03 linonetwo

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.

ogabrielluiz avatar Mar 21 '23 14:03 ogabrielluiz

Big +1 for langchain-js. Thanks!

vid avatar Mar 21 '23 14:03 vid

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?

linonetwo avatar Mar 21 '23 17:03 linonetwo

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.

anovazzi1 avatar Mar 21 '23 18:03 anovazzi1

@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.

ogabrielluiz avatar Mar 21 '23 22:03 ogabrielluiz

Another huge +1 for langchain-js as well!

msikora78 avatar Mar 22 '23 03:03 msikora78

One more +1 for the integration with langchainjs

JBX028 avatar Mar 23 '23 10:03 JBX028

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.

ogabrielluiz avatar Mar 23 '23 14:03 ogabrielluiz

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

HenryHengZJ avatar Apr 11 '23 18:04 HenryHengZJ

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?

linonetwo avatar Apr 13 '23 08:04 linonetwo

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.

stale[bot] avatar May 28 '23 09:05 stale[bot]