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!

A True Life Hack: What Physical 'Life Force' Turns Biology's Wheels?

https://www.quantamagazine.org/what-physical-life-force-turns-biologys-wheels-20260420/
1•Prof_Sigmund•2m ago•0 comments

Show HN: One board with tasks for all your projects

https://kanban.wtf
1•przemekdz•3m ago•0 comments

Show HN: Learn languages by tilting, shaking, and smiling at your phone

https://sensonym.com
2•mparas•4m ago•1 comments

Fossil Fuels

https://ourworldindata.org/fossil-fuels
1•leonidasrup•4m ago•0 comments

Granite-4.0-Tiny-Preview

https://huggingface.co/ibm-granite/granite-4.0-tiny-preview
1•handfuloflight•5m ago•0 comments

Your hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
1•tobr•6m ago•0 comments

Show HN: Agensi – Curated marketplace for AI agent skills (SKILL.md)

https://www.agensi.io
1•Samuellrose•7m ago•0 comments

Locki v2 – Zero-knowledge text encryption inside any web app

https://lockisecurity.com/en
2•dtlnv•8m ago•0 comments

I built an AI SRE in 60mins, you should too

https://www.gouthamve.dev/i-built-an-ai-sre-in-60mins-you-should-too/
1•gouthamve•9m ago•0 comments

Two Months in Google OAuth Verification Hell

https://zencapital.substack.com/p/two-months-in-google-oauth-verification
2•zenincognito•10m ago•0 comments

Paris Blockchain Week 2026: Four Things the Main Stage Didn't Tell You

https://irishtechnews.ie/paris-blockchain-week-2026-four-key-takeaways/
1•ybelkin•12m ago•0 comments

Phototypesetting with the Berthold Diatype [video]

https://www.youtube.com/watch?v=76qwCF6ThLs
1•altilunium•14m ago•0 comments

Financial Data Integration: A Practical Guide

https://blog-2026-04-27-hidden-costs.layline-web-2026.pages.dev/resources/blog/2026-04-20-financi...
1•tandrew•19m ago•0 comments

'Robots don't bleed': Ukraine sends machines into battle in place of humans

https://www.cnn.com/2026/04/20/europe/robots-ukraine-battlefield-drones-intl-cmd
2•breve•20m ago•0 comments

Linotype Demonstration [video]

https://www.youtube.com/watch?v=MI2sYvUb4_0
1•altilunium•22m ago•0 comments

Personal data leak: French document agency ANTS hit by cyberattack

https://www.connexionfrance.com/news/personal-data-leak-french-document-agency-hit-by-cyberattack...
1•RockstarSprain•29m ago•0 comments

Monitoring CPU and Memory on Your VPS with AppSignal

https://blog.appsignal.com/2026/04/21/monitoring-cpu-and-memory-on-your-vps-with-appsignal.html
1•malinavojvodic•32m ago•0 comments

Show HN: Chrome extension for always on Work Assistant (ActorDo)

https://actordo.com/chrome-extension/
1•websku•33m ago•0 comments

Show HN: Anvil-uplink-CLI – agent-safe terminal CLI for Anvil.works apps

https://github.com/matshoppenbrouwers/anvil-uplink-cli
1•hoponthestack•37m ago•0 comments

Show HN: My AI Native Obsidian Setup

https://alexanderweichart.de/4_Projects/obsidian-setup-2026/My-AI-native-Obsidian-Setup
3•surrTurr•38m ago•0 comments

Republican Rep. Obsessed with Hating Muslims Unveils Mamdani Act

https://newrepublic.com/post/209272/republican-rep-chip-roy-mamdani-act-muslims-socialists-immigr...
1•handfuloflight•42m ago•0 comments

OpenMythos: A looped transformer take on how Claude Mythos might work

https://firethering.com/openmythos-open-source-claude-mythos-reconstruction/
2•steveharing1•43m ago•1 comments

China's energy fortress was built to withstand just this type of oil shock

https://www.cnn.com/2026/04/20/china/china-energy-security-global-oil-crisis-iran-intl-hnk
7•breve•51m ago•1 comments

Key Front End Architectural Patterns for Complex Applications

https://sometechblog.com/posts/frontend-architecture-decisions/
1•l5870uoo9y•51m ago•0 comments

PhantomChat – Post-quantum messenger with Monero-style stealth addresses

https://github.com/cengo441337-a11y/phantomchat
2•n0l3x•53m ago•0 comments

Modeling Sparse and Bursty Vulnerability Sightings

https://arxiv.org/abs/2604.16038
1•cedricbonhomme•57m ago•0 comments

The History of SuperTuxKart

https://supertuxkart.net/History_of_SuperTuxKart
1•mdtrooper•59m ago•0 comments

Digital Omnibus reality check: 83.5% of access requests not properly answered

https://noyb.eu/en/digital-omnibus-reality-check-835-access-requests-not-properly-answered
2•latexr•59m ago•0 comments

Show HN: Static Flipbooks of Complex Media

https://flipbook.browserbox.io/
1•keepamovin•1h ago•0 comments

Claude for Equity Research

https://www.asiancenturystocks.com/how-to-use-claude-for-equity-resear/
1•fritz123•1h ago•0 comments