frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo ago

Comments

zljdanceholic•11mo 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!

The Closing of the Frontier

https://tanyaverma.sh/2026/04/10/closing-of-the-frontier.html
1•FrasiertheLion•2m ago•0 comments

Show HN: 2048 with a Leaderboard

https://www.the2048league.com/
1•khet•3m ago•0 comments

Deep Work on macOS Starts with Context, Not Blockers

https://www.brnsft.com/blog/how-to-set-up-a-deep-work-system-on-mac-from-scratch
1•robertohanas•7m ago•0 comments

How Transistors Work (1995)

http://amasci.com/amateur/transis.html
1•downbad_•11m ago•1 comments

Bringing Rust to the Pixel Baseband

https://security.googleblog.com/2026/04/bringing-rust-to-pixel-baseband.html
1•dochtman•12m ago•0 comments

The Making of Dark Castle

https://www.gamedeveloper.com/business/the-making-of-i-dark-castle-i-an-excerpt-from-the-secret-h...
1•AntiRush•14m ago•0 comments

Strategy Letter V (2002)

https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/
1•crescit_eundo•18m ago•0 comments

A Fake Screen Fixed My macOS Space Switcher

https://jorviksoftware.cc/notes/2026/04/11/when-the-stars-align-redux
1•jonathan_hollin•18m ago•0 comments

The Brutal Reality of Today's Job Market 2026

https://maxjobintel.online/
1•videobroker•20m ago•0 comments

Ukraine and Weapons of Mass Destruction

https://en.wikipedia.org/wiki/Ukraine_and_weapons_of_mass_destruction
2•chistev•23m ago•1 comments

Jet Fuel Crunch Is Getting Severe with No Reprieve in Sight for Airlines

https://www.wsj.com/business/airlines/jet-fuel-crunch-is-getting-severe-with-no-reprieve-in-sight...
3•bookofjoe•24m ago•1 comments

After Me(One encrypted vault. One QR code. Your family gets everything)

https://www.myafterme.co.uk/
1•elufadeju•26m ago•0 comments

I Pick My Stack for Vibe Coding

https://tildehacker.com/how-i-pick-my-stack-for-vibe-coding
1•tildehacker•27m ago•0 comments

Show HN: Git why – log your agent reasoning trace along your code

https://hexapode.github.io/git-why/
3•pierre•32m ago•0 comments

AGI Is the Wrong Word

https://breaking-changes.blog/agi-is-here-part-2/
1•oakhan3•32m ago•0 comments

Democratic AI to serve the public – OneProject.org

https://oneproject.org/how-to-make-ai-serve-the-public/
2•cucumberbund•36m ago•0 comments

NetWatch v0.11.0 – TUI network diagnostics, now with connection filtering

https://github.com/matthart1983/netwatch
1•matthart1983•37m ago•0 comments

I built a free 30-day habit tracker in Google Sheets

1•polaritymaking•38m ago•0 comments

Ask HN: What is the most annoying part of scheduling meetings?

1•preston-kwei•39m ago•1 comments

Chromium Fingerprint Simulation Framework Assessment

https://www.questcontents.com/2026/04/chromium-fingerprint-simulation.html
1•imarand•39m ago•0 comments

Ask HN: Has anyone reconsidered Antivirus software after recent security news?

3•pants2•45m ago•1 comments

PandemicAlarm – Free disease outbreak tracker aggregating WHO, CDC, and ProMED

https://pandemicalarm.com
1•PixelShipper•46m ago•0 comments

I built a free Canadian tax estimator for self-employed people

https://nextindata.substack.com/p/i-built-a-free-canadian-tax-estimator
1•nazanki•49m ago•0 comments

AI Is Tipping the Scales Toward Hackers After Mythos Release

https://www.nbcnews.com/tech/security/anthropic-claude-mythos-ai-hackers-cybersecurity-vulnerabil...
8•thywis•51m ago•4 comments

Transaction-level provenance for AI art certificate/signed/license on every sale

https://arcvelvetos.web.app/verify?id=AwCCW6DLQgA4s5XVZ86X&type=sale
2•PCasinoAVOS•52m ago•0 comments

AI still can't figure out PowerPoint

https://www.perspectives.plus/p/ai-still-cant-figure-out-powerpoint
2•jukkan•52m ago•0 comments

LPM 1.0 – Video-Based Character Performance Model

https://large-performance-model.github.io/
1•LopRabbit•52m ago•0 comments

Anyone know how I can cancel this? I dont want it

https://old.reddit.com/r/wallstreetbets/comments/1siq4m2/anyone_know_how_i_can_cancel_this_i_dont...
3•simonpure•1h ago•0 comments

Tell HN: See the AI Doc

2•linsomniac•1h ago•1 comments

Why Aren't We Uv Yet?

https://aleyan.com/blog/2026-why-arent-we-uv-yet/
2•birdculture•1h ago•3 comments