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!

Cross-vendor byte-identical inference for a 72B LLM (AMD MI300X vs. Nvidia H100)

https://zenodo.org/records/19882078
1•ashsyngh•2m ago•0 comments

Real Time SEC Employee Insider Trading Summaries

https://insidertradealerts.com/benchmark-instant-delivery-times-daily/
1•Chrisbabayans1•2m ago•1 comments

Ask HN: Anyone in Legal Tech Here?

1•bgajjela•3m ago•0 comments

Miss Lonelyhearts (1933) by Nathanael West

https://gutenberg.net.au/ebooks06/0608851h.html
1•Eridanus2•4m ago•0 comments

Is spending 10 hours marketing a 45-minute project a waste of time?

https://gangbid.lol
2•devisious•5m ago•2 comments

A Free ASCII Table

https://huguesjohnson.com/programming/ascii/
1•speckx•5m ago•0 comments

Where in the U.S. Are You Most Likely to Be Audited by the IRS?

https://projects.propublica.org/graphics/eitc-audit
1•paulpauper•5m ago•0 comments

Codeberg TOS Now Rejects Predominantly AI Repos

https://codeberg.org/Codeberg/org/compare/17bdb39b0c1ecd0e423f3ba592650ce57fcdfbf5..71149c7fc95cc...
2•tonymet•5m ago•0 comments

Anyone in Legal Tech Here?

1•bgajjela•6m ago•0 comments

Those Dangerous Bagels

https://albertcory50.substack.com/p/those-dangerous-bagels
1•SnobolForever•8m ago•0 comments

Run SDK: secure eval for your agents

https://vercel.com/blog/introducing-run
1•cramforce•8m ago•0 comments

Digmenu – Digital Menu

https://www.digmenu.app
1•awakenj•9m ago•0 comments

Show HN: I built a spatial graph alternative to the algorithmic feed

https://aphant.dev
1•Aikaros•11m ago•0 comments

Vidbyte Skills – Skills That Keep AI-Assisted Work from Becoming Passive

https://github.com/cerredz/Vidbyte-Skills
1•cerredz•12m ago•0 comments

TikTok to pay $400M in landmark child privacy settlement

https://www.latimes.com/business/story/2026-08-24/tiktok-to-pay-400-million-in-landmark-child-pri...
3•Ohans_favour•13m ago•1 comments

Binary Search Visualizer

https://scaleengineer.com/algorithms/binary-search
1•ShaggyHotDog•14m ago•0 comments

Memory Ordering in CPUs

https://fgiesen.wordpress.com/2026/08/25/memory-ordering-in-cpus/
1•matt_d•15m ago•0 comments

Show HN: Feral – one local brain with memory for your devices and apps

https://github.com/FERAL-AI/FERAL-AI
1•maloudtabi•15m ago•0 comments

Try Omarchy as a native, hardware-accelerated app on an Apple Silicon Mac

https://github.com/themartiano/try-omarchy
2•jbverschoor•19m ago•0 comments

Naegleria Fowleri

https://en.wikipedia.org/wiki/Naegleria_fowleri
1•simonebrunozzi•19m ago•1 comments

Visa Passage

https://visapassage.com
2•rpochtman•24m ago•1 comments

And Realists Learn to Shoot

https://komando1.substack.com/p/and-realists-learn-to-shoot
1•inglor_cz•24m ago•1 comments

Check any NYC address for open landlord violations and 311 complaints

https://devinbugbasher--cb1c56fca0b811f194bb1607ee4eb77e.web.val.run/
2•devinbuilds•24m ago•0 comments

Dolly Parton's Imagination Library

https://imaginationlibrary.com/
3•jumploops•25m ago•1 comments

The 5 Levels of Wealth

https://dariusforoux.com/the-5-levels-of-wealth/
2•RickJWagner•28m ago•0 comments

Humanoid robots beat human records in the 100m, half-marathon, and high jump

https://www.reuters.com/sports/chinese-humanoid-robot-lightning-beats-human-100m-world-record-sta...
3•tazlor•30m ago•1 comments

Ultra-slow messaging apps Carrier Pidge and Roost have taken off

https://www.nytimes.com/2026/08/22/technology/carrier-pigeon-app-texting-technology.html
1•bookofjoe•31m ago•1 comments

Why Atari Failed

https://dfarq.homeip.net/why-atari-failed/
1•IndySun•31m ago•0 comments

I Love SQL; I Hate SQL

https://tylerhillery.com/blog/i-love-sql-i-hate-sql/
4•tylerhillery•32m ago•0 comments

Individual Stock Trades as President

https://xcancel.com/antibot/captcha
4•doener•33m ago•1 comments