Hacker News new | ask | show | jobs
by jmorgan 1045 days ago
LangChain supports local LLMs like Llama 2 with Ollama (https://github.com/jmorganca/ollama) as of this morning, in both their Python and Javascript versions:

https://python.langchain.com/docs/integrations/llms/ollama

This can be a great option if you'd like to keep your data local versus submitting it to a cloud LLM, with the added benefit of saving costs if you're submitting many questions in a row (e.g. in batches)

4 comments

I am sure we can build something around that. Going to take a look at it. Thanks for mentioning it.
Thanks. How would this differ from running Llama2 through the Huggingface-Langchain integration? I haven't tried it but it looked like the way to go until you shared this.
This one is for Mac
Huggingface launched swift/mac today or in recent days
Can llama 2 also be used to create the embeddings?
How well does it work?