Live data from Hacker News

Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

github.com

61–70 of 78 posts

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#61

Earlier quoted context omitted.

https://github.com/jmorganca/ollama/tree/main/examples/priva... there's an example using PrivateGPT too

Is it private and offline via ollama? Are all ollama models private and offline?

Yes, they are private and offline in the sense that they are running entirely locally and do not send any information off your local system.

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#62

I didn't see any info on how this is different than installing/running llamacpp or koboldcpp. New offerings are awesome of course, but what is it adding?

The main difference is setting everything up yourself manually, downloading the modal, optimizing the parameters for best performance, running an API server and a UI front-end - which is out of reach for most non-technical people. With LlamaGPT, it's just one command: `docker compose up -d` or one click install for umbrelOS home server users.

Agreed.

Gpt4all[1] offers a similar 'simple setup' but with application exe downloads, but is arguably more like open core because the gpt4all makers (nomic?) want to sell you the vector database addon stuff on top.

[1]https://github.com/nomic-ai/gpt4all

I like this one because it feels more private / is not being pushed by a company that can do a rug pull. This can still do a rug pull, but it would be harder to do.

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#63
post #42

Earlier quoted context omitted.

The main difference is setting everything up yourself manually, downloading the modal, optimizing the parameters for best performance, running an API server and a UI front-end - which is out of reach for most non-technical people. With LlamaGPT, it's just one command: `docker compose up -d` or one click install for umbrelOS home server users.

Maybe I've been at this for too long and can't see the pitfalls of a normal user, but how is that easier than using an oobabooga one-click installer (an option that's been around "forever")? I guess ooba one-click doesn't come with a model included, but is that really enough of a hurdle to stop someone from getting it going? Maybe I'm not seeing the value proposition of this. Glad to be enlightened!

The difference is that this project has both "GPT" and "llama" in its name, and used the proper HN-bait - "self hosted, offline, private".

HN users (mostly) don't actually read or check anything and upvote mostly based on titles and subsequent early comments.

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#65

Earlier quoted context omitted.

Well, GPT is simply an initialism for "Generative Pre-trained Transformer". In Germany, a trademark can be lost if it becomes a "Gattungsbegriff" (generic term). This happens when a trademark becomes so well-known and widely used that it becomes the common term for a product or service, rather than being associated with a specific company or brand. For example, if a company invented a new type of vacuum cleaner and t…

Actually in the UK and Ireland a vacuum cleaner is called a Hoover. But in general I think we do that less than Americans. For example, we don't call a public announcement system a "Tannoy". That's a brand of hifi speakers. And we'd say "photo copier" instead of Xerox.

We definitely “Google” for information online and not “search” for it though. It would be interesting if Google lost its trademark.

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#66

Very cool, this looks like a combination of chatbot-ui and llama-cpp-python? A similar project I've been using is https://github.com/serge-chat/serge . Nous-Hermes-Llama2-13b is my daily driver and scores high on coding evaluations ( https://huggingface.co/spaces/mike-ravkine/can-ai-code-resul... ).

no not llama-cpp-python, it uses llama.cpp's built in server.

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#67
post #47

Earlier quoted context omitted.

The simplest way, as rdedev is describing, is to do Retrieval Augmented Generation (RAG) in your prompting. This would require the addition of a vector database and a text embedding model. There are many open source / local / private options for that. The steps would then be: 1. Embed your private data in chunks and store the resulting embeddings in a vector database 2. In your prompting workflow, when a user queries…

Looks like this is not easy at all for a non ML expert. And probably the required computing power is still out of reach for mere mortals. I'd have a similar use case to the parent: technical books. I'd love to be able to ask where a certain topic is discussed in my pdf archive and have the AI reply with references and possibly a significant piece of the relevant articles, with images (or local links to them).

Thanks for all replies. It would probably be worth creating a HOWTO or something like that aimed at non ML experts or complete AI illiterates like myself to help putting together something that works in simple steps (assuming this is possible), from procuring the hardware offering the minimal requirements to organizing data in a way that can be used for training, and finally using the right tools for the job.

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#68
post #58

Earlier quoted context omitted.

Actually in the UK and Ireland a vacuum cleaner is called a Hoover. But in general I think we do that less than Americans. For example, we don't call a public announcement system a "Tannoy". That's a brand of hifi speakers. And we'd say "photo copier" instead of Xerox.

You don't call a PA system a tannoy? That's news to all my English friends, who keep telling me that people announced things over the tannoy.

Oh that's in Blighty too? I'm kinda surprised because we Irish share much of the British slang/lingo via TV and radio. I'd never think of calling it a Tannoy, but I'd know what you meant if you said it.

Re: Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2

#70
post #50
post #47

Earlier quoted context omitted.

The simplest way, as rdedev is describing, is to do Retrieval Augmented Generation (RAG) in your prompting. This would require the addition of a vector database and a text embedding model. There are many open source / local / private options for that. The steps would then be: 1. Embed your private data in chunks and store the resulting embeddings in a vector database 2. In your prompting workflow, when a user queries…

Yeah but the big question I kept having and missing the answer is: How do you encode the private data into the vectors? It is a bunch of text but how do you choose the vector values in the first place? What software does that? Isn’t that basically an ML task with its own weights, that’s what classifiers do! I was surprised everyone had been writing about that but neglecting to explain this piece. Like math textbooks…

One way to do it is to use cosine similarity[0], the reason to do this is to get around the context window limitation, and hope that whatever text chunks you get which via the similarity function is the correct information to answer your question.

How do you know that Claude doesn't do this? If you have multiple books, you end up with more than 100k context, and running the model with full context takes more time so it is more expensive as well.

[0] https://en.wikipedia.org/wiki/Cosine_similarity

Post reply on HN