TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: R2R V2 – A open source RAG engine with prod features

251 pointsby ocolegro11 months ago
Hi HN! We&#x27;re building R2R [<a href="https:&#x2F;&#x2F;github.com&#x2F;SciPhi-AI&#x2F;R2R">https:&#x2F;&#x2F;github.com&#x2F;SciPhi-AI&#x2F;R2R</a>], an open source RAG answer engine that is built on top of Postgres+Neo4j. The best way to get started is with the docs - <a href="https:&#x2F;&#x2F;r2r-docs.sciphi.ai&#x2F;introduction">https:&#x2F;&#x2F;r2r-docs.sciphi.ai&#x2F;introduction</a>.<p>This is a major update from our V1 which we have spent the last 3 months intensely building after getting a ton of great feedback from our first Show HN (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39510874">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39510874</a>). We changed our focus to building a RAG engine instead of a framework, because this is what developers asked for the most. To us this distinction meant working on an opinionated system instead of layers of abstractions over providers. We built features for multimodal data ingestion, hybrid search with reranking, advanced RAG techniques (e.g. HyDE), automatic knowledge graph construction alongside the original goal of an observable RAG system built on top of a RESTful API that we shared back in February.<p>What&#x27;s the problem? Developers are struggling to build accurate, reliable RAG solutions. Popular tools like Langchain are complex and overly abstracted and lack crucial production features such as user&#x2F;document management, observability, and a default API. There was a big thread about this a few days ago: <i>Why we no longer use LangChain for building our AI agents</i> (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40739982">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40739982</a>)<p>We experienced these challenges firsthand while building a large-scale semantic search engine, having users report numerous hallucinations and inaccuracies. This highlighted that search+RAG is a difficult problem. We&#x27;re convinced that these missing features, and more, are essential to effectively monitor and improve such systems over time.<p>Teams have been using R2R to develop custom AI agents with their own data, with applications ranging from B2B lead generation to research assistants. Best of all, the developer experience is much improved. For example, we have recently seen multiple teams use R2R to deploy a user-facing RAG engine for their application within a day. By day 2 some of these same teams were using their generated logs to tune the system with advanced features like hybrid search and HyDE.<p>Here are a few examples of how R2R can outperform classic RAG with semantic search only:<p>1. “What were the UK&#x27;s top exports in 2023?&quot;. R2R with hybrid search can identify documents mentioning &quot;UK exports&quot; and &quot;2023&quot;, whereas semantic search finds related concepts like trade balance and economic reports.<p>2. &quot;List all YC founders that worked at Google and now have an AI startup.&quot; Our knowledge graph feature allows R2R to understand relationships between employees and projects, answering a query that would be challenging for simple vector search.<p>The built in observability and customizability of R2R helps you to tune and improve your system long after launching. Our plan is to keep the API ~fixed while we iterate on the internal system logic, making it easier for developers to trust R2R for production from day 1.<p>We are currently working on the following: (1) Improve semantic chunking through third party providers or our own custom LLMs; (2) Training a custom model for knowledge graph triples extraction that will allow KG construction to be 10x more efficient. (This is in private beta, please reach out if interested!); (3) Ability to handle permissions at a more granular level than just a single user; (4) LLM-powered online evaluation of system performance + enhanced analytics and metrics.<p>Getting started is easy. R2R is a lightweight repository that you can install locally with `pip install r2r`, or run with Docker. Check out our quickstart guide: <a href="https:&#x2F;&#x2F;r2r-docs.sciphi.ai&#x2F;quickstart">https:&#x2F;&#x2F;r2r-docs.sciphi.ai&#x2F;quickstart</a>. Lastly, if it interests you, we are also working on a cloud solution at <a href="https:&#x2F;&#x2F;sciphi.ai">https:&#x2F;&#x2F;sciphi.ai</a>.<p>Thanks a lot for taking the time to read! The feedback from the first ShowHN was invaluable and gave us our direction for the last three months, so we&#x27;d love to hear any more comments you have!

20 comments

hubraumhugo11 months ago
Do you also see the ingestion process as the key challenge for many RAG systems to avoid &quot;garbage in, garbage out&quot;? How does R2R handle accurate data extraction for complex and diverse document types?<p>We have a customer who has hundreds of thousands of unstructured and diverse PDFs (containing tables, forms, checkmarks, images, etc.), and they need to accurately convert these PDFs into markdown for RAG usage.<p>Traditional OCR approaches fall short in many of these cases, so we&#x27;ve started using a combined multimodal LLM + OCR approach that has led to promising accuracy and consistency at scale (ping me if you want to give this a try). The RAG system itself is not a big pain point for them, but the accurate and efficient extraction and structuring of the data is.
评论 #40802741 未加载
评论 #40801884 未加载
评论 #40802012 未加载
评论 #40804873 未加载
评论 #40804205 未加载
评论 #40802318 未加载
评论 #40801905 未加载
评论 #40803741 未加载
jonathan-adly11 months ago
This is excellent. I have been running a very similar stack for 2 years, and you got all the tricks of the trade. Pgvector, HyDe, Web Search + document search. Good dashboard with logs and analytics.<p>I am leaving my position, and I recommended this to basically replace me with a junior dev who can just hit the API endpoints.
评论 #40802022 未加载
vanillax11 months ago
The quick start is defiantly not quick. You really should provide a batteries included docker compose with Postgres image ( docker.io&#x2F;tensorchord&#x2F;pgvecto-rs:pg14-v0.2.0 )<p>If I want to use dashboard I have to clone another repo? &#x27;git clone git@github.com:SciPhi-AI&#x2F;R2R-Dashboard.git&#x27; ? why not make it available in a docker container so that if im only interested in rag I can plug into the docker container for dashboard?<p>This project feels like a collection of alot of things thats not really providing any extra ease to development. It feels more like joining a new company and trying to find out all the repo and set everything up.<p>This really looks cool, but Im struggling to figure out if its a SDK or suite of apps or both but in the later case the suite of apps is really confusing if i have to still write all the python, then it feels more like a SDK?<p>Perhaps provide better &quot;1 click&quot; install experience to preview&#x2F;show case all the features and then let devs leverages the r2r lalter...
评论 #40804761 未加载
ldjkfkdsjnv11 months ago
This looks great, will be giving it a shot today. Not to throw cold water on the release, but I have been look at different RAG platforms. Anyone have any insight into which is the flagship?<p>It really seems like document chunking is not a problem that can be solved well generically. And RAG really hinges on which documents get retrieved&#x2F;the correct metadata.<p>Current approaches around this seem to be using a ReRanker, where we fetch a ton of information and prune it down. But still, document splitting, is tough. Especially when you start to add transcripts of video that can be a few hours long.
SubiculumCode11 months ago
I&#x27;ve been interested in building a RAG for my documents, but as an academic project I do not have the funds to spend on costly APIs like a lot of RAG projects out there depend on, not just LLM part, but for the reranking, chunking, etc, like those form Cohere.<p>Can R2R be built with all processing steps implementing local &quot;open&quot; models?
评论 #40802113 未加载
davedx11 months ago
I’ve checked out quite a few RAG projects now and what I haven’t seen really solved is ingestion, it’s usually like “this is an endpoint or some connectors, have fun!”.<p>How do I do a bulk&#x2F;batch ingest of say, 10k html documents into this system?
评论 #40801456 未加载
评论 #40801435 未加载
评论 #40801245 未加载
评论 #40801111 未加载
p1esk11 months ago
“ What were the UK&#x27;s top exports in 2023?&quot;<p>&quot;List all YC founders that worked at Google and now have an AI startup.&quot;<p>How to check the accuracy of the answers? Is there some kind of a detailed trace of how the answer was generated?
评论 #40802313 未加载
sandeepnmenon11 months ago
Could you provide more details on the multimodal data ingestion process? What types of data can R2R currently handle, and how are non-text data types embedded? Can the ingestion be streaming from logs?
评论 #40802173 未加载
Kluless11 months ago
Interesting. Can you talk a bit about how the process is faster&#x2F;better optimized for the dev teams? Sounds like there&#x27;s a big potential to accelerate time to MVP.
评论 #40800758 未加载
FriendlyMike11 months ago
Is there a way to work with source code? I&#x27;ve been looking for a rag solution that can understand the graph of code. For example &quot;what analytics events get called when I click submit&quot;
评论 #40802783 未加载
causal11 months ago
Have you integrated with any popular chat front-ends, e.g. OpenWebUI?
评论 #40802131 未加载
jhoechtl11 months ago
Get neo4j out and count me in. No need for that Ressource hog.
评论 #40803671 未加载
vintagedave11 months ago
&gt; R2R is a lightweight repository that you can install locally with `pip install r2r`, or run with Docker<p>Lightweight is good, and running it without having to deal with Docker is excellent.<p>But your quickstart guide is still huge! It feels very much not &quot;quick&quot;. How do you:<p>* Install via Python<p>* Throw a folder of documents at it<p>* Have it set there providing a REST API to get results?<p>Eg suppose I have an AI service already, so I throw up a private Railway instance of this as a Python app. There&#x27;s a DB somewhere. As simple as possible. I can mimic it at home just running a local Python server. How do I do that? _That&#x27;s_ the real quickstart.
评论 #40801520 未加载
GTP11 months ago
How does this compare with Google&#x27;s NotebookLM?
评论 #40804788 未加载
mentos11 months ago
Seems like there is an opportunity to make this as easy to use as Dropbox.
评论 #40804252 未加载
hdjsvdjue711 months ago
I can&#x27;t wait to try it after work. How would one link it to ollama?
评论 #40802275 未加载
wmays11 months ago
What’s the benefit over langchain? Or other bigger platforms?
评论 #40802805 未加载
revskill11 months ago
As soon as it does not require openai then it is good.
评论 #40813475 未加载
haolez11 months ago
On a side note, is there an open source RAG library that&#x27;s not bound to a rising AI startup? I couldn&#x27;t find one and I have a simple in-house implementation that I&#x27;d like to replace with something more people use.
评论 #40810521 未加载
taylorbuley11 months ago
I could see myself considering this. And not just because it&#x27;s got a great project name.