Live data from Hacker News

Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

news.ycombinator.com

71–80 of 134 posts

Re: Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

#71
I like open source software. I like what you are doing and keeping development open.

I have been closely watching AI development. There are 10k+ apps now using AI. Every major company FAANG, Tier-2,3,4,5 company now have AI as top priority. However, there got to be something coming out of wrapper software. I have not read docs entirely yet. I have a few questions for you that might give us idea whether this fits our use case.

1. Which models are you using for this? Can I switch models to open source?

2. When you say connect to Apps, how often are you pulling data from these apps? For example, you connect to confluence where tens of wikis get updated. How much of that ends up in your vector DB?

3. Most important, what separates you from tens of other providers out there? Glean, as someone commented, is very similar to what you are doing.

4. How do you plan to convince SMBs and mid-size companies to use you over say in-house development?

5. OpenAI, Mistral, Claude and other LLM model developers can build this functionality natively into their offering. Are you concerned about becoming obselete or losing competitive ground? If not, why?

Either way, this is a good direction. I will try it out tonight. Feel free to respond when you get a chance.

Re: Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

#72
post #68
post #32

Earlier quoted context omitted.

With the free version, can I constrain the emails to be from one domain? i.e. the company domain

Chris here (the other founder) - yes you can! We have an `VALID_EMAIL_DOMAINS ` env variable which controls this. For example, for us we have `VALID_EMAIL_DOMAINS=danswer.ai`.

Awesome, thank you!

Re: Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

#73

I like open source software. I like what you are doing and keeping development open. I have been closely watching AI development. There are 10k+ apps now using AI. Every major company FAANG, Tier-2,3,4,5 company now have AI as top priority. However, there got to be something coming out of wrapper software. I have not read docs entirely yet. I have a few questions for you that might give us idea whether this fits our…

Hello, thanks for the kind words! With regards to your questions:

1. Are you referring to the local NLP models or the LLM? The local models are already open source models or ones we've trained ourselves. If you're talking about the LLM, the default is OpenAI but it's easy to configure other ones without any code changes.

2. Most sources are pulled from every 10 minutes. They have incremental updates so if you have Confluence with a million pages, probably in the last 10 minutes, only a dozen or so have been updated. The only exception is websites (which are crawled recursively so we don't know which pages are updated before we try), which is updated once a day.

3. Glean is indeed similar. Without going into the features in detail, we are an open source Glean with more of an emphasis on LLMs and Chat.

4. There's generally not a great reason to build from scratch if an open source alternative with +75% alignment exists. They can always build on top of us if they want. A lot of teams reach out to us because they were looking to switch from their in house solution to Danswer. Generally though these are larger teams, we haven't seen many SMBs building RAG for their own usage, usually these smaller teams building RAG are looking to productize.

5. Currently there is no cheap and fast way to fine-tune LLMs every time a document is updated. If you want an LLM to remember the document that was just updated you'd have to augment it to at least dozens of similar (but all correct) examples. RAG is still the only viable option. Then there is the problem of security etc. since you can't enforce user roles at the LLM level. So companies that focus on building LLMs don't really compete in this specific space and they don't want to either as they're trying to build AGI. There is more of a threat from teams like Microsoft and Google who are indeed trying to build knowledge assistants for their product lines, but we think there is a world where open source ends up winning against the giants!

Re: Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

#76
post #75

How do you prevent "how much do my colleagues make?" questions from being answered to the wrong people? I know you mention citations and the ability to backtrack a "fact" to the source document. How robust is this?

So we're leaning on access control to do this! Right now we support manually configured group-based access at the connector level (e.g. Users X, Y, and Z make up the `Engineering` group and that group should have access to Folders A, B, C in Google Drive + Github).

We're also in the process of adding the ability to sync permissions from sources. For example, with this in place you would only be able to chat with / search over documents in Google Drive that you have access to. Since everything is RAG based rather than any fine-tuning, this will guarantee that someone asking "how much do my colleagues make?" will not get an answer UNLESS they already have access to the document that has this info (in which case, it shouldn't be a problem :D)

Re: Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

#77

> Once the top documents are retrieved, we ask a smaller LLM to decide which of the chunks are “useful for answering the query” This sounds like normal re-ranking. How is it different?

Well the most standard approach is to use cross-encoders (e.g. something like Cohere Rerank) to give similarity scores between the query and the chunk, and then use these scores to update the ranking.

Our approach is to use an LLM (gpt-3.5-turbo for example), and to ask it explicitly "Is this chunk useful for answering this query ". We've found, while certainly a bit more expensive, the larger model size and greater understanding of the world allows this approach to yield significantly better results that the SOTA cross-encoders. It also allows us to ask the model to explain why it's useful, which can be really helpful for the user when determining if they should look deeper into a document (as opposed to the standard keyword-based highlighting which often isn't very useful when determining if a document actually has useful information for your query).

Re: Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

#79
post #77

> Once the top documents are retrieved, we ask a smaller LLM to decide which of the chunks are “useful for answering the query” This sounds like normal re-ranking. How is it different?

Well the most standard approach is to use cross-encoders (e.g. something like Cohere Rerank) to give similarity scores between the query and the chunk, and then use these scores to update the ranking. Our approach is to use an LLM (gpt-3.5-turbo for example), and to ask it explicitly "Is this chunk useful for answering this query ". We've found, while certainly a bit more expensive, the larger model size and greater…

Interesting! Thanks for the explanation.

Re: Launch HN: Danswer (YC W24) – Open-source AI search and chat over private data

#80
Congrats on the launch!

In what way is "prefix-aware embedding models trained with contrastive loss" better than the standard embedding model provided by OpenAI?

"added in learning from feedback and time based decay" => Sounds interesting! Have you seen significant gains in precision and recall here?

It looks like you are using NextJS app dir + external backend. Why did you decide against NextJs for frontend and backend? Are you happy with your choice?

Post reply on HN