Earlier quoted context omitted.
At Microsoft, that's all baked into Azure AI Search - hybrid search does BM25, vector search, and re-ranking, just with setting booleans to true. It also has a new Agentic retrieval feature that does the query rewriting and parallel search execution. Disclosure: I work at MS and help maintain our most popular open-source RAG template, so I follow the best practices closely: https://github.com/Azure-Samples/azure-sear…
Are you using Elasticsearch behind the scenes?
Production RAG: what I learned from processing 5M+ documents
71–80 of 116 posts
Re: Production RAG: what I learned from processing 5M+ documents
#72Earlier quoted context omitted.
OP. Reranking is a specialized LLM that takes the user query, and a list of candidate results, then re-sets the order based on which ones are more relevant to the query. Here's sample code: https://docs.cohere.com/reference/rerank
What is the difference between reranking versus generating text embeddings and comparing with cosine similarity?
Re: Production RAG: what I learned from processing 5M+ documents
#73Re: Production RAG: what I learned from processing 5M+ documents
#74I must be missing something, this says it can be self-hosted. But the first page of the self-hosting docs say you need accounts with no less than 6 (!) other third-party hosted services. We have very different ideas about the meaning of self-hosted.
I consider this to be good open source and I'm a happy user of their OSS offering. Want no hosted dependencies? Then go write it all in Rust.
Re: Production RAG: what I learned from processing 5M+ documents
#75I must be missing something, this says it can be self-hosted. But the first page of the self-hosting docs say you need accounts with no less than 6 (!) other third-party hosted services. We have very different ideas about the meaning of self-hosted.
For example - if a "self hosted" service supports off-site backups is it self hosted or just well designed?
Re: Production RAG: what I learned from processing 5M+ documents
#76Earlier quoted context omitted.
Boy, that should not be the concern of the end user (developer) but those implementing RAG solutions as a service at Amazon, Microsoft, Openai and so on.
At Microsoft, that's all baked into Azure AI Search - hybrid search does BM25, vector search, and re-ranking, just with setting booleans to true. It also has a new Agentic retrieval feature that does the query rewriting and parallel search execution. Disclosure: I work at MS and help maintain our most popular open-source RAG template, so I follow the best practices closely: https://github.com/Azure-Samples/azure-sear…
Moreover I am curious why you guys use bm25 over SPLADE?
Re: Production RAG: what I learned from processing 5M+ documents
#77Not here to schlep for AWS but S3 Vectors is hands down the SOTA here. That combined with a Bedrock Knowledge Base to handle Discovery/Rebalance tasks makes for the simplest implementation on the Market. Once Bedrock KB backed by S3 Vectors is released from Beta it'll eat everybody's lunch.
SOTA for what? Isn't it just a vector store?
Re: Production RAG: what I learned from processing 5M+ documents
#78Anyone here successfully transitioned into legal space? My gut always been legal to the space where LLM can really be useful, the first one is in programming.
Re: Production RAG: what I learned from processing 5M+ documents
#79Re: Production RAG: what I learned from processing 5M+ documents
#80Earlier quoted context omitted.
What is the difference between reranking versus generating text embeddings and comparing with cosine similarity?
My understanding: If you generate embeddings (of the query, and of the candidate documents) and compare them for similarity, you're essentially asking whether the documents "look like the question." If you get an LLM to evaluate how well each candidate document follows from the query, you're asking whether the documents "look like an answer to the question." An ideal candidate chunk/document from a cosine-similarity…