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!

Community suggested books to read each week

https://readerpool.com/
1•hands-gruber•22s ago•0 comments

Earliest spoken audio of endangered U.S. language discovered

https://www.cam.ac.uk/stories/louisiana-creole-earliest-spoken-audio
1•Bluestein•3m ago•0 comments

Community suggested movies and series to watch each night

https://bingepool.com/
1•hands-gruber•3m ago•0 comments

Show HN: Elpis – Rust-style ownership for teams of coding agents

https://github.com/MasihMoafi/Elpis
1•masihmoafi•4m ago•0 comments

Show HN: Svoxx – A multilingual marketplace with social features

https://svoxx.com/int/en
1•svoxx•4m ago•0 comments

Show HN: BikeZap, watch people cycling around the world on an old school TV

https://bikezap.pages.dev/
1•rr0•6m ago•0 comments

Show HN: Recursive Human Intelligence: Actionable feedback from your LLM chats

https://github.com/andrearitossa/recursive-human-intelligence
1•andrearitossa•7m ago•0 comments

Physicists Knock at the Door of the Zeptoverse

https://www.cam.ac.uk/stories/zeptoverse
1•saikatsg•8m ago•0 comments

Slurm GPU scheduling, orchestration and execution: what each layer does

https://nodeox.com/blog/gpu-scheduling-orchestration-execution
1•JSlavin•8m ago•0 comments

Terence Tao: Math 2.0 [video]

https://www.youtube.com/watch?v=aHpPoNNTOKY
1•gslin•8m ago•0 comments

AI could break legal systems by finding previously hidden loopholes

https://www.theregister.com/ai-and-ml/2026/11/02/ai-could-break-legal-systems-by-finding-previous...
1•Bender•9m ago•0 comments

Cops bust botnet of 1.3M infected Android TV boxes

https://www.theregister.com/cyber-crime/2026/11/02/cops-bust-botnet-of-13m-infected-android-tv-bo...
1•Bender•9m ago•0 comments

Memory Management, Explained Simply (Part 3)

https://www.youtube.com/watch?v=VW_NUH-6kv0
1•birdculture•9m ago•0 comments

Max-severity bug in widely used OT programming tool exploited to deliver malware

https://www.theregister.com/security/2026/11/02/max-severity-bug-in-widely-used-ot-programming-to...
1•Bender•10m ago•0 comments

Grouped Value Attention: Efficient KV Caching via On-Demand Key Reconstruction

https://arxiv.org/abs/2609.13285
1•FrontiersMind•10m ago•0 comments

We Open Sourced the Flapping Airplanes Megakernel

https://twitter.com/Bobliuuu/status/2117450429864853536
1•Bobliuuu•14m ago•0 comments

Jev 101 – A new class of model

https://data4sci.substack.com/p/jev-101
1•Anon84•15m ago•0 comments

Railway cofounder apologizes after employee accused trying to breach Primcloud

https://runtimewire.com/article/railway-cofounder-apologizes-after-employee-accused-of-trying-to-...
1•mirzap•16m ago•0 comments

CrowdStrike launches AI Kill Switch to terminate rogue AI agents

https://app.dealroom.co/news/feed/crowdstrike-launches-ai-kill-switch-to-terminate-rogue-ai-agents
1•chha•17m ago•0 comments

BudHist Benchmark: Testing the Knowledge of Buddhist History in Open-Weight LLMs

https://mbingenheimer.net/budhistbenchmark/
1•protomolecool•18m ago•0 comments

Games Are Being Ripped Off by AI, and Things Are Only Going to Get Worse

https://www.gamespot.com/articles/entire-games-are-being-ripped-off-by-ai-and-things-are-only-goi...
1•mrkn1•18m ago•0 comments

Itch.io adding Generative AI disclosure filtering to few more places on the site

https://bsky.app/profile/itch.io/post/3mzezjvqexs2h
1•HelloUsername•19m ago•0 comments

SUSE Laying Off 10% of Its Workforce Due to AI and Automation

https://www.phoronix.com/news/SUSE-Layoffs-10p-AI
2•pluc•19m ago•0 comments

Flow AI Fx – Unified AI Creative Studio for Video, Image, Music and Voice

https://flowaifx.app/
1•vidrushaifan•19m ago•0 comments

Sam Altman's Case Against Your RAM Is Efficient. That's the Problem

https://www.techdirt.com/2026/11/02/sam-altmans-case-against-your-ram-is-efficient-thats-the-prob...
8•mrkn1•24m ago•8 comments

Ten harness patterns that you can apply to a real repo

https://deepsense.ai/blog/harness-engineering-for-coding-agents-9-patterns-for-more-reliable-ai-a...
3•nvmdbljstm•25m ago•0 comments

Grouped Query Experts: Mixture-of-Experts on GQA Self-Attention

https://arxiv.org/abs/2606.20945
1•FrontiersMind•25m ago•0 comments

What Is a Complicated/Complex/Wicked Problem

https://www.fluxlinks.com/blog/what-is-a-complex-problem
3•ezrasu•30m ago•0 comments

Show HN: HackerCinema, a portal for all the Movies/TV mentioned on Hacker News

https://hacker-cinema.chapra.co/
1•muddi900•33m ago•0 comments

Repolve – Free strength calculator with muscle-group estimates

https://repolve.com/calculator/
1•nimanoro•35m ago•0 comments