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!

Are all these data centers a way to try to substitute for promised progress?

1•mapping365•45s ago•0 comments

Show HN: Simple mobile app to share your ID, not your identity

https://anonymizemyid.com
1•davidpelayo•1m ago•0 comments

Kubo v0.43.0 Released

https://github.com/ipfs/kubo/releases/tag/v0.43.0
1•xd1936•1m ago•0 comments

We are surprisingly close to prompt-to-model in computer vision

http://stefano.petrilli.xyz/prompt-to-model/
1•stefanopetrilli•3m ago•0 comments

'Financial Times' Issues 103-Year-Old Correction (2017)

https://www.npr.org/sections/thetwo-way/2017/08/08/542238978/-financial-times-issues-103-year-old...
2•downbad_•4m ago•0 comments

Russian spies turn public Wi-Fi into malware delivery systems

https://www.theregister.com/security/2026/08/03/russias-svr-borks-public-wi-fis-for-digital-surve...
1•JeremyPatMartin•5m ago•0 comments

Pentagon asks soldiers for 'creative' ideas to punish Iran

https://www.telegraph.co.uk/world-news/2026/08/03/pentagon-asks-soldiers-for-creative-ideas-to-pu...
1•prmph•6m ago•0 comments

History of Backwards Compatibility

https://huguesjohnson.com/features/backwards/
1•speckx•6m ago•0 comments

now-playing.el, an Emacs interface to the macOS Music app

http://yummymelon.com/devnull/announcing-now-playing-el.html
1•kickingvegas•7m ago•0 comments

Fable Denies Hacking Intrusion Response

https://twitter.com/greghunkins/status/2084372241169453389
1•hunkins•11m ago•0 comments

The college earnings gap isn't one number

https://blog.waldrn.com/p/the-college-earnings-gap-isnt-one
1•gmays•12m ago•0 comments

Israeli court halts Ben Gvir's crocodile prison plan over animal rights

https://www.dailysabah.com/world/mid-east/israeli-court-halts-ben-gvirs-crocodile-prison-plan-ove...
2•vrganj•13m ago•0 comments

Show HN: Mirall – Secure large (terabyte) file transfer. No cloud. No middleman

https://github.com/ok/mirall-app
2•gokohl•15m ago•0 comments

Has the Bitcoin Moved?

https://hasthebitcoinmoved.com/
4•distalx•16m ago•0 comments

Why it's impossible to get relevant news on Google News

https://elgan.com/why-its-impossible-to-get-relevant-news-on-google-news
1•mikelgan•16m ago•2 comments

Author of Democrats' 2024 Autopsy Says Party Left Out Key Chapter

https://www.nytimes.com/2026/08/03/us/politics/democrats-autopsy-2024-election-dnc.html
1•brandonb•17m ago•0 comments

I built a page showing every used car priced below market value

https://meshum.com/insights/best-deals
2•loreshpersad•17m ago•0 comments

Context Engineering for Agents: A Practical Guide

https://blog.malt.engineering/dont-take-this-out-of-context-feeding-your-llm-exactly-what-it-need...
1•adunk•18m ago•0 comments

Faster floating point math with Rust's new API

https://pythonspeed.com/articles/faster-float-math-rust/
1•jmintz•19m ago•0 comments

We Keep Renaming AI Coding. Here's What I'd Call It

https://www.oreilly.com/radar/we-keep-renaming-ai-coding-heres-what-id-call-it/
1•BerislavLopac•22m ago•1 comments

Deontic Scorekeeping, Commitment Laundering, and the Ring of Gyges

https://elliotmilco.substack.com/p/deontic-scorekeeping-commitment-laundering
1•RGS1811•23m ago•0 comments

The U.S. lead over China in AI is all but gone

https://www.cnbc.com/2026/08/02/ai-model-competition-us-china.html
7•yogthos•25m ago•2 comments

Low-Latency Serving of High-Resolution Aerial Imagery at National Scale

https://www.earthscale.ai/research/naip-at-national-scale
1•noahgolmant•25m ago•0 comments

Taming optimization variance in compact neural shading networks

https://research.nvidia.com/labs/rtr/publication/bitterli2026taming/
1•ibobev•26m ago•0 comments

Volumetric FX for the 2D world of The Bad Guys 2

https://dl.acm.org/doi/10.1145/3799818.3812084
1•ibobev•26m ago•0 comments

AI Trivia Tavern – realtime multiplayer trivia with AI-generated questions

https://ai-trivia-tavern.onrender.com/
1•jbtruats•26m ago•0 comments

How to Read Mathematics [pdf]

https://web.mathi.uni-heidelberg.de/media/How_To_Read_Math_88bf1d2d47.pdf
1•ibobev•27m ago•0 comments

Apple's iCloud File Sharing Left Ex-Employees with Access to Secret Documents

https://www.macrumors.com/2026/08/03/apple-icloud-sharing-ex-employees/
3•speckx•28m ago•0 comments

AI's debt binge can't last, hidden borrowing reaches $1.65T

https://fortune.com/2026/07/31/ai-debt-hypescalers-capex-capital-spending-hidden-borrowing-bond-i...
4•mapping365•28m ago•0 comments

Show HN: Polars-fastjson (parse billion of JSON rows in polars)

https://guywaldman.com/posts/polars-dataframe-contributions
1•guywald•30m ago•0 comments