Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lanchain.js integration #23

Open
ansarizafar opened this issue Apr 12, 2023 · 4 comments
Open

Lanchain.js integration #23

ansarizafar opened this issue Apr 12, 2023 · 4 comments

Comments

@ansarizafar
Copy link

Is it some how possible to use rwkv.cpp with langchain.js https://js.langchain.com/docs/

@saharNooby
Copy link
Collaborator

If RWKV server from #17 is merged, it should be possible

CC @abetlen

@ansarizafar
Copy link
Author

I don't want to use python or python based server. I want to use rwkv.cpp with langchain javascript version.

@abetlen
Copy link

abetlen commented Apr 12, 2023

@ansarizafar for server-side usage that would require runtime specific bindings (node-ffi / Deno FFI). One challenge is that you need to build the shared library on the processor you're targetting to get the best performance. For the python package I'm using scikit-build which allows you to build a nativ C/C++ project at install time.

@ansarizafar
Copy link
Author

@abetlen I want to use rwkv model with langchain.js and bunjs https://bun.sh/. We can call native C/C++ libraries with Bun FFI module https://bun.sh/docs/api/ffi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants