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!

Monty Hall Problem

https://en.wikipedia.org/wiki/Monty_Hall_problem
1•efilife•24s ago•0 comments

GGUF Quantization Compared: Q4_K_M vs. IQ4_XS vs. IQ4_NL

https://kaitchup.substack.com/p/choosing-a-gguf-model-k-quants-i
1•peter_d_sherman•4m ago•0 comments

Elon Musk's GitHub alternative couldn't have arrived at a worse time for GitHub

https://www.neowin.net/news/elon-musks-github-alternative-couldnt-have-arrived-at-a-worse-time-fo...
2•bundie•6m ago•0 comments

Forget Work. Passive Income Is the New American Dream

https://www.wsj.com/lifestyle/careers/passive-income-dreams-2e67ee5c
2•hheikinh•8m ago•0 comments

Digital Sundial

https://www.fransmaes.nl/genk/en/gk-zw08-e.htm
1•vova_hn2•9m ago•0 comments

I tested the viral "antigravity drive" claims against published physics

https://github.com/Montblanctech/ehd-thrust-verification
1•MontblancTech•14m ago•0 comments

Chat Wells, an Internet Masquerade

https://stuff.kyleperik.com/chatwells/
1•kyleperik•15m ago•1 comments

Emacs 31.1 RC1 is available

https://lists.gnu.org/archive/html/emacs-devel/2026-08/msg00599.html
1•ixsploit•15m ago•0 comments

Poll showing Bass leading Raman by double digits was bogus "social experiment"

https://www.msn.com/en-us/news/news/poll-showing-bass-leading-raman-by-double-digits-was-bogus-co...
3•ilamont•18m ago•0 comments

Weird Machines in Transport Layer Security

https://arxiv.org/abs/2608.13685
3•sbulaev•23m ago•0 comments

What If I Told You Humans Are Moving Faster Than AI?

https://medium.com/freedomofthought/what-if-i-told-you-humans-are-moving-faster-than-ai-833441f3fb21
2•raynchad•28m ago•0 comments

Why It Hasn't Happened Yet: Capable AI and Malicious Intent

https://substack.norabble.com/p/why-it-hasnt-happened-yet
2•nedruod•35m ago•0 comments

Niu Lai – a two-person animated film becomes an unlikely hit in China [video]

https://www.youtube.com/watch?v=5XdeI0cOWSs
1•gregzeng95•40m ago•0 comments

Expert Witness to ChatGPT "Show how 3M is 0 percent at fault"

https://www.404media.co/show-how-3m-is-0-at-fault-expert-witness-used-chatgpt-to-write-report-def...
2•kristjansson•45m ago•0 comments

Using Starlink's Satellites to Study Earth's Upper Atmosphere

https://hackaday.com/2026/08/17/using-starlinks-satellites-to-study-earths-upper-atmosphere/
1•toomuchtodo•49m ago•0 comments

When it comes to LLM, it's you who's using it wrong

https://www.vinoth.net/llm-wrong
1•avinoth•50m ago•0 comments

San Diego 150 Years Ago: Rare AI Reconstruction Visuals [video]

https://www.youtube.com/watch?v=qWaR_nc5sKM
2•latchkey•51m ago•0 comments

PineNote and PineTab2 are estimated to run out of stock in three months

https://social.treehouse.systems/@pine64/117111063654864544
1•dredmorbius•55m ago•1 comments

Beyond WASI: Running any Rust application in the browser with BrowserPod 3.0

https://labs.leaningtech.com/blog/browserpod-rust
1•corv•55m ago•0 comments

The Large Hadron Collider: 1984 – 2017

https://timeline.web.cern.ch/timeline-header/93
1•andsoitis•56m ago•0 comments

Missed shifts were costly to this McDonald's. An app has fixed the problem

https://text.npr.org/nx-s1-5893721
3•williadc•1h ago•0 comments

Sick of A.I. Slop? So Are Tech Giants

https://www.nytimes.com/2026/08/17/technology/ai-slop.html
1•uxhacker•1h ago•0 comments

Show HN: An open source alternative to Google's Critique

https://twigg.vc
1•andrebianchessi•1h ago•0 comments

USS Benfold Stalled and Lost Power in the South China Sea for Four Days

https://news.usni.org/2026/08/14/uss-benfold-was-stalled-in-the-south-china-sea-for-four-days-aft...
6•Gaishan•1h ago•0 comments

Columbia House Is Shutting Down

https://pitchfork.com/story/columbia-house-is-shutting-down/
5•ChrisArchitect•1h ago•2 comments

Fires on the Plain: Both Ends Burning (2007)

https://www.criterion.com/current/posts/473-fires-on-the-plain-both-ends-burning
1•cocacola1•1h ago•0 comments

Show HN: An n8n-like orchestration toolkit for DeepSeek harnesses

https://github.com/ahamoment-101/Open-DeepSeek-Harness-Desktop
1•darrenzhang•1h ago•0 comments

Creepy Insurers?

https://matthewekahn.substack.com/p/creepy-insurers
1•NomNew•1h ago•0 comments

I built an app that hides encrypted messages inside normal emojis

https://apps.apple.com/us/app/imp-secret-messages/id6794774885
1•oliverhann•1h ago•0 comments

California's new tire efficiency rules could save drivers $1B a year

https://grist.org/transportation/californias-new-tire-efficiency-rules-could-save-drivers-1b-a-year/
14•littlexsparkee•1h ago•22 comments