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!

Show HN: Moumantai – self-hosted, agent-driven apps you can use on any device

https://github.com/xiang-deng/moumantai
1•no_0044•2m ago•0 comments

AMD Strix Halo RDMA Cluster Setup Guide

https://github.com/kyuz0/amd-strix-halo-vllm-toolboxes/blob/main/rdma_cluster/setup_guide.md
1•jakogut•2m ago•0 comments

GTA 3 on a Volumetric Display (2025) [video]

https://www.youtube.com/watch?v=onYH5gvlnzE
1•Tiberium•4m ago•0 comments

Australia to double maximum penalty for platforms in breach of social media ban

https://www.bbc.co.uk/news/articles/c78yv5g74e9o
1•bbg2401•6m ago•0 comments

Never before have so many been trapped in place

https://kindofvoiceless.substack.com/p/there-will-be-nowhere-to-go
1•OgsyedIE•7m ago•0 comments

Why American data centers can't plug in

https://worksinprogress.co/issue/why-american-data-centers-cant-plug-in/
1•Gaishan•8m ago•0 comments

The Lost Discipline of the Alarm: What Notification Design Forgot [video]

https://www.youtube.com/watch?v=Ira28fgSF7M
2•jumpocelot•10m ago•0 comments

Nix Taco Sprint 2026

https://jrdsgl.com/nix-taco-sprint-2026/
3•alurm•11m ago•0 comments

Show HN: QR code renderer in a TrueType font

https://qr.jim.sh/
1•foodevl•11m ago•1 comments

Gary Marcus Trademarked a Rebranded Failed Prediction

https://aidatumpoint.substack.com/p/gary-marcus-trademarked-a-rebranded
1•MadCatBureau•11m ago•1 comments

Show HN: Engye – transfer files between any two devices by scanning a QR code

https://engye.fuzzyworld.net/
1•psafronov•12m ago•0 comments

Rhythm&timing in laughter: Human vocal plasticity falls on a hominid continuum

https://www.nature.com/articles/s42003-026-10499-z
1•bookofjoe•13m ago•0 comments

I'm Building a Space Cadet Pinball Machine [video]

https://www.youtube.com/watch?v=BU_02HABZ4s
1•fortran77•15m ago•0 comments

Toolkit for Your AI Scientists – Rigorous, Auditable and Verifiable

https://github.com/ARA-Labs/Agent-Native-Research-Artifact
1•amberjcjj•16m ago•0 comments

I Adapted the CME FedWatch Methodology to ECB, BoE and BoJ

https://centralbank.watch
1•madams0815•24m ago•0 comments

Every Resource in Kansas City

https://kc.cjohnson.io/resources/
1•thebuilderbob2•26m ago•0 comments

"Backrooms" Have Become a New Kind of Tourist Destination

https://scitechdaily.com/scientists-say-the-backrooms-have-become-a-new-kind-of-tourist-destination/
2•Gaishan•29m ago•0 comments

America's Large Homebuilders Shift the Cost of Shoddy Construction to Buyers

https://hntrbrk.com/investigations/homebuilders
9•JumpCrisscross•34m ago•0 comments

The parents movement that banned cellphones has a new target

https://www.politico.com/news/2026/06/27/schools-classroom-screentime-pushback-00974778
2•JumpCrisscross•35m ago•0 comments

A fiction archive for comparing frontier AI model behavior over time

https://frontierfictionarchive.org/en/news/a-fiction-archive-for-comparing-frontier-ai-model-beha...
1•DAIngerousFic•35m ago•0 comments

Regulations don't go far enough to protect privacy from smart glasses; experts

https://news.northeastern.edu/2026/06/22/meta-smart-glasses-privacy/
4•gnabgib•43m ago•0 comments

The Link Between Cancer and Fasting That They're Hiding from You [video]

https://www.youtube.com/watch?v=jDG1m_b5Ih0
2•Bender•50m ago•0 comments

Show HN: FIFA 2026 bracket predictor – see live crowd % as picks come in

https://quizzy.earth/p/0Dpwk5TjHe/fifa-world-cup-2026-predict-the-bracket-live
1•apostophet•52m ago•1 comments

AI as a Factor of Production

https://leadprompt.sh/a/736-AI-as-a-Factor-of-Production-2026w16
2•saltysalt•52m ago•0 comments

Phones alerted millions before quakes shook Venezuela

https://www.nytimes.com/interactive/2026/06/27/world/americas/venezuela-earthquakes-android-alert...
3•pash•57m ago•0 comments

Show HN: Pressn't, a site where you can have a single post

https://app.pressnt.net/
4•DanielVZ•1h ago•2 comments

Protocol Prying: zero-click vulns in AirDrop and Quick Share

https://arxiv.org/abs/2606.26967
1•Jimmc414•1h ago•0 comments

I Build a 10 Inch Mini Rack from Aluminium Extrusions

https://louwrentius.com/i-build-a-10-inch-mini-rack-from-aluminium-extrusions.html
3•louwrentius•1h ago•0 comments

The truth about datacenters in space [video]

https://www.youtube.com/watch?v=_qpdUNMt2yg
1•dgellow•1h ago•0 comments

Tell HN: Please stop posting political content

8•phyzix5761•1h ago•11 comments