Closed mrddter closed 8 months ago
@mrddter Version 3 is a breaking change, and Langchain doesn't support it yet as it is still a beta.
For now, use the stable version (the version that's installed when you run npm install node-llama-cpp
), which is 2.8.3
at the time of writing this
Issue description
Properly use langchain.js with llama.cpp and embeddings (maybe it's a new feature?)
Expected Behavior
Use langchain.js to add some useful retrievers like for memory or file loading. I'm probably wrong somewhere but I don't know where, can you give me some advice? Thanks!
Actual Behavior
When I try to use retrievers together with LlamaCppEmbeddings I get an error:
Steps to reproduce
I used this test code:
My Environment
langchain
versionnode-llama-cpp
versionAdditional Context
I also tried this snippet to try to use only embeddings via langhchain.js but without success:
Relevant Features Used
Are you willing to resolve this issue by submitting a Pull Request?
Yes, I have the time, but I don't know how to start. I would need guidance.