Hacker News new | ask | show | jobs
by yousuke86 796 days ago
Learning more about LLM is next on my to do list. I would follo the course from OPEN AI and LangChain
1 comments

Nice, highly recommended. When you use up the $5 of OPENAI_API_KEY credits, there's always Ollama which is free :)

Run open-source models locally on your computer like `ollama run mistral` and it will be serving over localhost. Your app can then use any LLM locally by HTTP request or you can use an npm wrapper (npm i ollama) and it's as simple as `ollama.chat()`.

Libraries like LangChain (LlamaIndex, etc.) also come with the Ollama wrapper in the library. You can just `import { Ollama } from "@langchain/community/llms/ollama"`

(not affiliated with any of these, just used them as a dev)

Make sure to share on Show HN what you build :D