How to create a custom LLM #286
-
How does one go about creating a custom LLM? It appears that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @aaronrogers You can now do Any questions let me know! Happy to help |
Beta Was this translation helpful? Give feedback.
-
For langchain version |
Beta Was this translation helpful? Give feedback.
Hi @aaronrogers You can now do
import { BaseLLM } from 'langchain/llms';
We don't have many docs on creating a custom LLM, my suggestion would be to look at one of the existing ones, and go from there. A simple one is https://github.com/hwchase17/langchainjs/blob/main/langchain/src/llms/cohere.tsAny questions let me know! Happy to help