danswer
llama.cpp
danswer | llama.cpp | |
---|---|---|
28 | 795 | |
9,619 | 60,282 | |
5.0% | - | |
9.9 | 10.0 | |
3 days ago | about 19 hours ago | |
Python | C++ | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
danswer
-
Show HN: Cognita – open-source RAG framework for modular applications
You might want to look at https://github.com/danswer-ai/danswer as well, as it sounds like their UI might be of suited for your use case.
-
Show HN: I made an app to use local AI as daily driver
There are already several RAG chat open source solutions available. Two that immediately come to mind are:
Danswer
https://github.com/danswer-ai/danswer
Khoj
https://github.com/khoj-ai/khoj
-
Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data
We have a connector interface and build guide for contributors: https://github.com/danswer-ai/danswer/blob/main/backend/dans...
Should be not too bad to build one out! Fun fact, more than half the connectors were built entirely by community members who needed them for their own teams and we're super grateful when they contribute it back to the repo.
-
Findr VS danswer - a user suggested alternative
2 projects | 7 Feb 2024
-
Show HN: DanswerChat – open-source GPTs with access to all your org's knowledge [video]
Danswer is an MIT licensed project that can connect to a wide range of SaaS tools and provide a search/chat (RAG) functionality to help your team discover information and to turn that information into deeper understanding and actionable insights.
Code here: https://github.com/danswer-ai/danswer
- Open source alternative to ChatGPT and ChatPDF-like AI tools
- Danswer: Self-Hosted way to connect an LLM of your choice to Docs, Websites, and SaaS tools like Google Drive, Notion, Bookstack, Zulip, etc.
-
Show HN: DanswerBot – Open-source Slack bot to automate repetitive questions
Slack questions have always been a huge time sink for me. They’re a distraction that pulls me away from what I’m doing, and often requires digging up old knowledge. If I’m in the middle of something complex, I may take a while to context switch and get around to answering, which leaves the asker blocked for hours.
Addressing this seems simple: give an LLM your organizational context and plop it in Slack to answer things for you.
So that’s why we built DanswerBot! It’s MIT licensed (https://github.com/danswer-ai/danswer) and completely free to use. The bot can automatically sync with and back answers based on documents from Slack, Google Drive, GitHub, Confluence, Jira, Notion, local files, websites, and much more.
Quick demo vid: https://www.youtube.com/watch?v=5q35NeqsMnU
A quick note on hallucinations: in order to reduce their prevalence, all answers are backed by quotes. If the LLM-provided quotes don’t match any document or no quotes are given, we’ll warn the asker that something may have gone wrong. Additionally, all used documents are linked in case the asker wants to double check the answer. Answers can be thumbs-upped or thumbs-downed and all questions / answers are recorded in Postgres for easy future inspection / analysis.
For usability, we provide an admin dashboard where you can configure connectors (we have 14 currently). Once a connector is set up, we poll data sources every 10 minutes to keep answers up to date. Which LLM to use is also up to you - DanswerBot can be configured to use a locally hosted model, Azure OpenAI, or OpenAI directly.
Finally, if you aren’t a slack user (or if you just prefer a more tailored UI), there’s also a web interface to ask questions against your knowledge base. A short demo for that can be found at: https://youtu.be/cWWtnuVCUX0
Of course there’s a bunch more that I can’t cover in one post - happy to take questions in the comments (or in our Slack / Discord, which are linked on the Github repo).
If you’re interested in testing this out yourself, you can easily run everything locally with a single command. Docs to help you can be found at https://docs.danswer.dev/quickstart!
- App to auto-answer user questions in your Slack
-
DanswerBot - open source SlackBot that answers questions for you
Code: https://github.com/danswer-ai/danswer
llama.cpp
-
Ollama v0.1.45
Sorry it's taking so long to review and for the radio silence on the PR.
We have been trying to figure out how to support more structured output formats without some of the side effects of grammars. With JSON mode (which uses grammars under the hood) there were originally quite a few issue reports namely around lower performance and cases where the model would infinitely generate whitespace causing requests to hang. This is an issue with OpenAI's JSON mode as well which requires the caller to "instruct the model to produce JSON" [1]. While it's possible to handle edge cases for a single grammar such as JSON (i.e. check for 'JSON' in the prompt), it's hard to generalize this to any format.
Supporting more structured output formats is definitely important. Fine-tuning for output formats is promising, and this thread [2] also has some great ideas and links.
[1] https://platform.openai.com/docs/guides/text-generation/json...
[2] https://github.com/ggerganov/llama.cpp/issues/4218
-
Apple Intelligence, the personal intelligence system
> Doing everything on-device would result in a horrible user experience. They might as well not participate in this generative AI rush at all if they hoped to keep it on-device.
On the contrary, I'm shocked over the last few months how "on device" on a Macbook Pro or Mac Studio competes plausibly with last year's early GPT-4, leveraging Llama 3 70b or Qwen2 72b.
There are surprisingly few things you "need" 128GB of so-called "unified RAM" for, but with M-series processors and the memory bandwidth, this is a use case that shines.
From this thread covering performance of llama.cpp on Apple Silicon M-series …
https://github.com/ggerganov/llama.cpp/discussions/4167
… "Buy as much memory as you can afford would be my bottom line!"
-
Partial Outage on Claude.ai
I'd love to use local models, but seems like most of the easy to use software out there (LM Studio, Backyard AI, koboldcpp) doesn't really play all that nicely with my Intel Arc GPU and it's painfully slow on my Ryzen 5 4500. Even my M1 MacBook isn't that fast at generating text with even 7B models.
I wonder if llama.cpp with SYCL could help, will have to try it out: https://github.com/ggerganov/llama.cpp/blob/master/README-sy...
But even if that worked, I'd still have the problem that IDEs and whatever else I have open already eats most of the 32 GB of RAM my desktop PC has. Whereas if I ran a small code model on the MacBook and connected to it through my PC, it'd still probably be too slow for autocomplete, when compared to GitHub Copilot and less accurate than ChatGPT or Phind for most stuff.
-
Why YC Went to DC
You're correct if you're focused exclusively on the work surrounding building foundation models to begin with. But if you take a broader view, having open models that we can legally fine tune and hack with locally has created a large and ever-growing community of builders and innovators that could not exist without these open models. Just take a look at projects like InvokeAI [0] in the image space or especially llama.cpp [1] in the text generation space. These projects are large, have lots of contributors, move very fast, and drive a lot of innovation and collaboration in applying AI to various domains in a way that simply wouldn't be possible without the open models.
[0] https://github.com/invoke-ai/InvokeAI
[1] https://github.com/ggerganov/llama.cpp
- Show HN: Open-Source Load Balancer for Llama.cpp
-
RAG with llama.cpp and external API services
The first example will build an Embeddings database backed by llama.cpp vectorization.
-
Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
and at some point (https://github.com/ggerganov/llama.cpp/issues/7444)
-
Deploying llama.cpp on AWS (with Troubleshooting)
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp LLAMA_CUDA=1 make -j
-
Devoxx Genie Plugin : an Update
I focused on supporting Ollama, GPT4All, and LMStudio, all of which run smoothly on a Mac computer. Many of these tools are user-friendly wrappers around Llama.cpp, allowing easy model downloads and providing a REST interface to query the available models. Last week, I also added "👋🏼 Jan" support because HuggingFace has endorsed this provider out-of-the-box.
-
Mistral Fine-Tune
The output of the LLM is not just one token, but a statistical distribution across all possible output tokens. The tool you use to generate output will sample from this distribution with various techniques, and you can put constraints on it like not being too repetitive. Some of them support getting very specific about the allowed output format, e.g. https://github.com/ggerganov/llama.cpp/blob/master/grammars/... So even if the LLM says that an invalid token is the most likely next token, the tool will never select it for output. It will only sample from valid tokens.
What are some alternatives?
private-gpt - Interact with your documents using the power of GPT, 100% privately, no data leaks
ollama - Get up and running with Llama 3, Mistral, Gemma, and other large language models.
GPTCache - Semantic cache for LLMs. Fully integrated with LangChain and llama_index.
gpt4all - gpt4all: run open-source LLMs anywhere
privateGPT - Interact with your documents using the power of GPT, 100% privately, no data leaks [Moved to: https://github.com/zylon-ai/private-gpt]
text-generation-webui - A Gradio web UI for Large Language Models. Supports transformers, GPTQ, AWQ, EXL2, llama.cpp (GGUF), Llama models.
freemusicdemixer.com - free website for client-side music demixing with Demucs + WebAssembly
GPTQ-for-LLaMa - 4 bits quantization of LLaMA using GPTQ
khoj - Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
ggml - Tensor library for machine learning
pekko-samples - Apache Pekko Sample Projects
alpaca.cpp - Locally run an Instruction-Tuned Chat-Style LLM