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!

Tagging Music with MusicBrainz Picard

https://lwn.net/Articles/1066384/
1•signa11•37s ago•0 comments

Deterministic arcade shooter – same game for everyone, AI coaches your replay

https://gamefilm.org
1•shettysuraj•1m ago•0 comments

The Declining Driver's License: Good, Bad, or Both?

https://maxmautner.com/2026/04/21/teen-drivers-license-decline.html
2•jez•3m ago•0 comments

Show HN: SparseLab–real sparse training(CSR+custom kernel) in PyTorch, CPU-first

https://news.ycombinator.com/from?site=github.com/darshanfofadiya
1•DARSHANFOFADIYA•5m ago•1 comments

Skopx – AI analytics platform with built-in project management

https://skopx.com
1•skopx•6m ago•1 comments

AI GTM plugin for SEO and GEO in Claude Code

https://github.com/zhizdev/overgrow
4•zhizdev•7m ago•0 comments

Writing Matters

https://blog.apaonline.org/2026/04/22/writing-matters/
3•jruohonen•10m ago•0 comments

Private health records of half a million Britons for sale on Chinese Alibaba

https://www.theguardian.com/technology/2026/apr/23/private-health-records-uk-biobank-chinese-webs...
1•0in•10m ago•0 comments

Ask HN: Why are companies so distrustful of remote employees?

1•lyfeninja•15m ago•5 comments

Meta Layoffs – 10% in May

https://www.npr.org/2026/04/23/nx-s1-5797855/meta-layoffs-10-percent-staff
1•dzonga•16m ago•0 comments

How to Win

https://nekolucifer.substack.com/p/how-to-win
2•andai•17m ago•0 comments

Scraped from ancient Roman toilets, remains expose a pathogen found earlier

https://phys.org/news/2026-04-ancient-roman-toilets-crusted-expose.html
1•wglb•20m ago•2 comments

Deploy an Autonomous X Team

https://agentbot.sh
1•Agentbot-esky•21m ago•0 comments

MiMo-v2.5-TTS Series

https://mimo.xiaomi.com/mimo-v2-5-tts/
1•gainsurier•22m ago•0 comments

Physicists revive 1990s laser concept to propose a next-generation atomic clock

https://phys.org/news/2026-04-physicists-revive-1990s-laser-concept.html
1•wglb•23m ago•1 comments

Sakana Fugu: A Multi-Agent Orchestration System as a Foundation Model

https://sakana.ai/fugu-beta/
1•hardmaru•24m ago•0 comments

Show HN: A Clean Room RFC for NTFS Structural Repair

https://github.com/seb3773/ntfs-repair-rfc/
1•seb3773•28m ago•1 comments

Are unbeaten superteams like the UConn Huskies bad for basketball?

https://www.theguardian.com/sport/2026/mar/18/basketball-superteams-uconn-huskies-march-madness
1•PaulHoule•28m ago•0 comments

US Special Forces Soldier Arrested for Polymarket Bets on Maduro Raid

https://www.wired.com/story/us-special-forces-soldier-allegedly-profited-off-of-maduro-capture-on...
3•sssilver•31m ago•2 comments

Show HN: FilePop – a file browser in your menu bar

https://bendansby.com/filepop/
1•webwielder2•34m ago•0 comments

TikTok Makes Americans Want Chinese EVs They Can't Have

https://www.bloomberg.com/news/articles/2026-04-21/byd-xiaomi-and-zeekr-car-reviews-flood-tiktok-...
5•KnuthIsGod•34m ago•0 comments

Why Async Rust? (2023)

https://without.boats/blog/why-async-rust/
1•cosmic_quanta•36m ago•0 comments

Linux Commands Cheat Sheet

https://linuxserverguides.com/linux-commands-cheat-sheet.html
2•steelsmiley•37m ago•0 comments

Show HN: I Built a Terms-of-Service Analysis Chrome Extension - Check it Out!

https://chromewebstore.google.com/detail/tostask/cdlcnhmhiicolbmjemllhlfmofahlnlm
1•Armaan2010•39m ago•1 comments

Ask HN: How many tabs do you have open in the browser(s) and why?

2•juujian•50m ago•2 comments

MCP Gateways Aren't Enough: AI Agents Need Identity, Authorization, and Proof

https://www.diagrid.io/blog/why-mcp-gateways-are-not-enough
1•mwfussell•51m ago•0 comments

PHP Security Checklist The things you must do when coding

https://www.projectseven.net/php-security-checklist.php
1•marcofloriano•52m ago•0 comments

AI bot that doomscrolls so you don't have to

https://techthreedots.com/noscroll-is-an-ai-bot-that-doomscrolls-so-you-dont-have-to
3•pirbit•55m ago•1 comments

AI #165: In Our Image

https://thezvi.substack.com/p/ai-165-in-our-image
1•paulpauper•55m ago•0 comments

Theft Is Now Progressive Chic

https://www.theatlantic.com/ideas/2026/04/hasan-piker-jia-tolentino-microlooting/686919/
2•paulpauper•56m ago•0 comments