Skip to content

Langchain vs native implementation #438

Answered by giladgd
andrecassal asked this question in Q&A

You must be logged in to vote

It appears that the Langchain integration wasn't implemented correctly to work well with node-llama-cpp's generic support for all models when using streaming.
I see in its implementation that there's a hardcoded chat template syntax used for a specific model, I think Mistral.

I plan to add better support for Langchain, but I have to finish some other features first on node-llama-cpp before I get to it.

In the meantime, from its implementation it seems that you can use Langchain for all of its capabilities with node-llama-cpp if you don't use streaming.

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@giladgd

Answer selected by giladgd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants