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!

Katrin Narrows Down the Range of Neutrinos' Mass

https://www.energy.gov/science/henp/articles/katrin-narrows-down-range-neutrinos-mass
1•bryanrasmussen•1m ago•0 comments

Drop the FFN – A Column Attention Transformer for TinyStories

https://github.com/jiaminres/drop-the-ffn
1•gaojiamin•1m ago•0 comments

Andreas Malm detained by French police dressed as delivery drivers

https://www.versobooks.com/blogs/notes/free-andreas-malm
1•olelele•2m ago•0 comments

Solo Leveling, Kandinsky, the Beginning of Infinity, and Analytics

https://analyticalnotes.substack.com/p/solo-leveling-kandinsky-the-beginning
1•jolecoco•6m ago•0 comments

Hero of Alexandria

https://en.wikipedia.org/wiki/Hero_of_Alexandria
1•tosh•9m ago•0 comments

All Watched over by Machines of Loving Grace

https://allpoetry.com/All-Watched-Over-By-Machines-Of-Loving-Grace
1•tosh•10m ago•0 comments

School Phone Ban Benefits Extend Well Beyond Test Scores, New Data Shows

https://www.nytimes.com/2026/12/03/upshot/school-phone-bans-results.html
2•gwu78•14m ago•0 comments

In the Wreckage of Crypto, a Warning for Wall Street's Tech Boom

https://www.bloomberg.com/news/articles/2026-12-04/in-the-wreckage-of-crypto-a-warning-for-wall-s...
3•gwu78•24m ago•0 comments

Ask HN: Have your agent ever broken through guardrails

1•vijaypoudel•24m ago•0 comments

Modern ThinkPads suck and I feel like a loser for buying new X1

https://www.reddit.com/r/thinkpad/s/NPoyFragud
4•cromka•29m ago•0 comments

Decodrs – optimised inference engine using ptx based kernels

https://github.com/lingster/decodrs
1•fish_n_chips•33m ago•1 comments

Show HN: SNS for the Dead

http://1in100b.com
1•jins__earth•36m ago•1 comments

Jensen Huang's Senate Reality Check Signals the Tech Reckoning Ahead

https://www.wsj.com/business/jensen-huang-hearing-tech-reckoning-59ae4571
3•gwu78•37m ago•0 comments

The Real Way A.I. Is Going to Ruin Our Lives

https://www.nytimes.com/2026/12/04/opinion/technology/ai-scams-cyberattacks-destroy-trust.html
2•mitchbob•38m ago•2 comments

More Rights Grabs from Must Read Magazines

https://writerbeware.blog/2026/10/09/more-rights-grabs-from-must-read-magazines/
1•Alien1Being•39m ago•0 comments

Why fake Lean4 proof if you can RCE instead?

https://brightsec.com/resources/research/findings/
1•bararchy•40m ago•1 comments

Fluorinated Semiconductor Tackles Air Instability in Organic Electronics

https://www.tus.ac.jp/en/mediarelations/archive/20261130_6732.html
1•rustoo•42m ago•0 comments

'Post-Quantum' Cryptography Scheme Is Cracked on a Laptop (2022)

https://www.quantamagazine.org/post-quantum-cryptography-scheme-is-cracked-on-a-laptop-20220824/
1•wow_Something•42m ago•1 comments

Subscription Bombing: Email Under Attack

https://dl.acm.org/doi/full/10.1145/3797487
1•taubek•44m ago•0 comments

Dyson's Leaking CameraJet Toothbrush Is Back, and We Now Know Why It Failed

https://www.wired.com/story/dyson-leaking-camerajet-toothbrush-is-back-and-we-now-know-why-it-fai...
2•zeristor•45m ago•0 comments

Show HN: A universal CLI for image, video, and audio generation

https://img-cli.dev/
2•djyde•45m ago•0 comments

Microsoft to Remove Trust in Ecdsa P-256 Root Certificates

https://github.com/TrustedRootProgram/Program-Requirements/blob/main/Announcements.md
4•unprovable•48m ago•0 comments

Which goal should our free AI Business Advisor cover next?

https://www.aiuniverse.app
1•osterado•54m ago•0 comments

Power of Nix but it's YAML (macOS and Linux)

https://namios.dev/
9•jktyjvhubb•56m ago•0 comments

Duolingo is facing a lawsuit from investors who say AI made the app worse

https://www.fastcompany.com/91652528/duolingo-ai-push-made-app-worse-tanked-stock-lawsuit-says
4•gwu78•56m ago•1 comments

FileMayor – AI file organiser with plan-first and full undo

https://www.filemayor.com/
1•Chevza•58m ago•0 comments

ASCII Validation from 2.5 to 114 GB/s with SIMD

https://modulovalue.com/blog/vectorizing-ascii-decoding/
1•theanonymousone•1h ago•0 comments

The GömböC: The object that shouldn't exist

https://plus.maths.org/gomboc-object-barely-exists
2•vismit2000•1h ago•1 comments

I'm Done Playing with My Python

https://grandimam.net/posts/i-m-done-playing-with-my-python/
3•grandimam•1h ago•1 comments

Hospitals, schools and power plants to be banned from paying ransomware in UK

https://www.bbc.co.uk/news/articles/c804wv23dk5yo
1•BerislavLopac•1h ago•1 comments