frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

An Enterprise-Level Retrieval-Augmented Generation System

https://comfyai.app/article/llm-applications/enterprise-level-rag-hands-on-practice-II
6•zljdanceholic•1y ago

Comments

zljdanceholic•1y ago
How can we search the wanted key information from 10,000+ pages of PDFs within 2.5 hours? For fact check, how do we implement it so that answers are backed by page-level references, minimizing hallucinations?

RAG-Challenge-2 is a great open-source project by Ilya Rice that ranked 1st at the Enterprise RAG Challenge, which has 4500+ lines of code for implementing a high-performing RAG system. It might seem overwhelming to newcomers who are just beginning to learn this technology. Therefore, to help you get started quickly—and to motivate myself to learn its ins and outs—I’ve created a complete tutorial on this.

We have a complete graph to explain its workflow where multiple tools are used: Docling for parsing PDFs, LangChain for chunking text, faiss for vectorization and similarity searching, and chatgpt for LLMs.

Besides, I also outline the codeflow, demonstrating the running logic involving multiple python files where starters can easily get lost. Different files are colored differently. The purpose of showing this is not letting you memorize all of these file relationships. It works better for you to check the source code yourself and use this as a reference if you find yourself lost in the code.

The original project of Ilya Rice design its RAG system for answering questions of annual reports from companies, so he only designed three types of question response format for that challenge: a name, a number, or a boolean. But to ask questions about technical stuff, we absolutely ask general questions like How does RoPE work? to know about some concepts and the like Therefore, I further modify the system logic to fit this need by customizing an AnswerWithRAGContextExplanationPrompt class and automatically matching the most related chapter and corresponding pages via searching through all faiss databases (only retrieve the top-1) The final performance is demonstrated below (not cherry-picked, only tested once).

- What's the steps to train a nanoGPT from scratch? The answer is:

Training nanoGPT from scratch involves several clearly defined steps. First, set up the environment by installing necessary libraries, using either Anaconda or Google Colab, and then download the dataset (e.g., tinyShakespeare). Next, tokenize the text into numerical representations and split the data into training and validation sets. Define the model architecture including token/positional embeddings, transformer blocks with multi-head self-attention and feed-forward networks, and layer normalization. Configure training hyperparameters and set up an optimizer (such as AdamW). Proceed with a training loop that performs forward passes, computes loss, backpropagates, and updates parameters, while periodically evaluating performance on both training and validation data. Finally, use the trained model to generate new text from a given context.

All code are provided on Colab and the tutorial is referenced here. Hope this helps!

Postgres 19 Repack: Built-In Online Table Bloat Cleanup

https://www.snowflake.com/en/blog/engineering/postgres-19-repack-table-bloat/
1•craigkerstiens•4m ago•0 comments

Not Getting Paid

https://tomaszdziurko1.substack.com/p/not-getting-paid
5•madihaa•7m ago•0 comments

C++26 Disapproved

https://andreasfertig.com/blog/2026/11/cpp26-dis-failed-how-does-cpp-survive/
1•thatxliner•9m ago•0 comments

Recycler: Cost-Free Latent Reasoning via Hidden State Recycling [pdf]

https://lf3-static.bytednsdoc.com/obj/eden-cn/hyvsmeh7uhobf/recycler_arxiv%20%282%29.pdf
1•E-Reverance•9m ago•0 comments

IKEA Turned 8,500 Call Agents into Design Consultants

https://www.pymnts.com/news/artificial-intelligence/2026/ikea-turned-8500-call-agents-into-design...
1•duck•10m ago•0 comments

Caching at Scale in Django: Lessons from Production

https://johnnymetz.com/posts/caching-at-scale-in-django/
1•johnnymetz•11m ago•0 comments

Anti-Oligarchy Activists Plan to Dox Elon Musk and Billionaires

https://www.wired.com/story/anti-oligarchy-activists-plan-to-dox-elon-musk-and-hundreds-of-billio...
2•slowin•11m ago•0 comments

French blood storage facilities targeted in cyberattack

https://twitter.com/etnshow/status/2117728420477936043
3•pixel_popping•15m ago•0 comments

People Against Genocide Smash Military Satellites on Balfour Anniversary

https://aftershock.media/military-satellites-balfour/
2•slowin•16m ago•0 comments

Shay Locomotive

https://en.wikipedia.org/wiki/Shay_locomotive
1•thunderbong•18m ago•0 comments

Tesla allegedly misled South Korean customers about automated-driving tech

https://www.reuters.com/business/autos-transportation/tesla-misled-south-korean-customers-about-a...
1•EA-3167•22m ago•0 comments

Show HN: An interactive map of midterm ads

https://admap.org/
1•Eden09•25m ago•0 comments

Gist of Go: Concurrency

https://antonz.org/go-concurrency/
2•ibobev•25m ago•0 comments

Multi-Column Different-Speed Scrolling

https://blog.master.dev/multi-column-different-speed-scrolling/
1•ibobev•25m ago•0 comments

What Composing Music Could Look Like

https://reasonablypolymorphic.com/blog/musical-vision/index.html
1•ibobev•26m ago•0 comments

Warashi – a menu bar flight recorder for macOS

https://warashi.app/
1•Nintindo•26m ago•0 comments

Sandchest: Add a Hacker to Your Team

https://www.sandchest.com/
1•handfuloflight•29m ago•0 comments

When a Platform Hides the Civil Reply

https://realprosperity.org/blog/meta-hidden-reply
1•ruusvuu•31m ago•0 comments

Centralia's underground fire and the NIF record shot, by the numbers

https://anotherdoor.de/works/
1•zozo_drift•31m ago•0 comments

Criminial Complaint: USA vs. Cleveland Grover Meredith, Jr a.k.a. Cleve Meredith [pdf]

https://fingfx.thomsonreuters.com/gfx/legaldocs/egvbgxzxxpq/11032026meredith.pdf
1•petethomas•33m ago•0 comments

WayPointo – A directory for discovering and comparing AI and creative products

https://waypointo.com
1•dotcurio•36m ago•0 comments

Microsoft Gives Apple Something to Think About – Surface Laptop Ultra Teardown [video]

https://www.youtube.com/watch?v=tXn8MMaRhVU
1•Udo_Schmitz•37m ago•0 comments

Deirdre McDermott Obituary

https://www.theguardian.com/books/2026/nov/03/deirdre-mcdermott-obituary
3•petethomas•38m ago•0 comments

Show HN: Spooler – a simple, managed message queue

https://spooler.sh/
1•gobwas•40m ago•0 comments

Shotgun – Terminal Batch Web Search

https://bweller.me/terminal-batch-web-search/
1•bweller•40m ago•0 comments

Leave a comment if you need a product demo video then I will make one for you

1•loveTech•40m ago•0 comments

Humans accidentally canceled the next Ice Age, scientists say – CNN

https://www.cnn.com/2026/10/29/climate/how-humans-halted-the-next-ice-age
3•bilsbie•41m ago•0 comments

Hinted Scaling Laws

https://arxiv.org/abs/2611.02270
2•matt_d•42m ago•0 comments

Aito vehicles' manufacturer Seres patents hidden in-car toilet design

https://carnewschina.com/2026/04/14/aito-vehicles-manufacturer-seres-patents-hidden-in-car-toilet...
1•mtmail•42m ago•0 comments

Enclave Gateway – CLI, SSH, SOCKS5 and MCP over RDP-Only Bastions

https://github.com/pom6i4/enclave-gateway
1•pom6i4•48m ago•0 comments