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!

SnoreStop AI: Stop Snoring

https://apps.apple.com/gr/app/snorestop-ai-stop-snoring/id6761017053
1•SnoreStopAI•1m ago•0 comments

GraphOS – Visual runtime and debugger for AI agents (with local-first execution)

https://github.com/ahmedbutt2015/graphos
1•ahmedthefayyaz•2m ago•0 comments

Pgpulse – Autopilot for Postgres Observablity and monitoring platform

https://pgpulse.io/
1•pabanda•2m ago•1 comments

Seeking a human connection in the scam-infested hiring process

https://markoanastasov.com/signals/seeking-a-human-connection-in-the-scam-infested-hiring-process/
1•markoa•4m ago•0 comments

Continuing the story of early DOS development

https://opensource.microsoft.com/blog/2026/04/28/continuing-the-story-of-early-dos-development/
1•bananaboy•4m ago•0 comments

Python One go: Bootstrapped uncertainty quantification given observation matrix

https://github.com/msuzen/leymosun
1•northlondoner•5m ago•1 comments

Devin for CLI

https://cli.devin.ai/docs
1•teddyX•6m ago•1 comments

Orchestrating AI Code Review at Scale

https://blog.cloudflare.com/ai-code-review/
1•vinhnx•7m ago•0 comments

My Visitors Are Not All Human. That Is Fine

https://hoeijmakers.net/my-visitors-are-not-all-human-that-is-fine/
1•robhoeijmakers•8m ago•1 comments

Llama.cpp MIPS R8000 Kernel Running on an SGI Power Challenge from 1995

https://twitter.com/mov_axbx/status/2048656497370923470
1•MrBuddyCasino•8m ago•0 comments

Taking down a network with a TLS certificate: my RIPE NCC RPKI exploit chain

https://mxsasha.eu/posts/ripe-ncc-rpki-exploit-chain/
2•job•8m ago•0 comments

Robot golf vs. holes that keep getting harder [video]

https://www.youtube.com/watch?v=2OfjZ3ORJfc
1•7777777phil•9m ago•0 comments

Welcome to the "find out" stage of AI

https://stackoverflow.blog/2026/04/27/welcome-to-the-find-out-stage-of-ai/
1•vinhnx•10m ago•0 comments

Bitwarden Encrypts and Decrypts Secrets

https://blog.miguelgrinberg.com/post/how-bitwarden-encrypts-and-decrypts-secrets
2•vinhnx•11m ago•0 comments

Show HN: Rip.so – a graveyard for dead internet things

https://rip.so
3•bozdemir•11m ago•0 comments

Text-to-CAD: Generate 3D models with coding agents (open source)

https://github.com/earthtojake/text-to-cad
2•steveharing1•13m ago•0 comments

Notepad++ appears as a native macOS application

https://www.heise.de/en/news/Notepad-appears-as-a-native-macOS-application-11275741.html
2•rxmux•15m ago•0 comments

Soft launch of open-source code platform for government

https://www.nldigitalgovernment.nl/news/soft-launch-for-government-open-source-code-platform/
5•e12e•18m ago•0 comments

Could At-Home Brain Stimulation Reduce Psychiatry's Reliance on SSRIs?

https://www.nytimes.com/2026/04/28/health/depression-at-home-brain-stimulation-fda.html
2•raindeer2•19m ago•0 comments

Why Law Is Law-Shaped

https://lawvm.org/why-law-is-law-shaped/
2•ekns•29m ago•0 comments

Show HN: AI powered coding interview practice

https://protechstack.com/practice
2•vampiregrey•34m ago•0 comments

SHOW HN: 50k+ Shopify Store Database Leads with Niche Segmentation

https://kanbauser.gumroad.com/l/shopifyleads
1•nazbasho•34m ago•0 comments

Trump: Australia's media bargaining laws 'foreign extortion'

https://www.theguardian.com/media/2026/apr/29/trump-australia-news-bargaining-laws-extortion
1•KnuthIsGod•36m ago•0 comments

Payphone Tag

https://hackaday.com/2026/04/28/payphone-tag-is-australias-new-national-sport/
2•altilunium•38m ago•0 comments

Taylor Swift files trademarks for voice and image amid concern over AI misuse

https://www.theguardian.com/music/2026/apr/27/taylor-swift-trademarks-voice-image-ai
1•JeanKage•38m ago•0 comments

US to issue new 'America250' passports featuring Donald Trump's image

https://www.theguardian.com/us-news/2026/apr/28/donald-trump-passports
2•KnuthIsGod•39m ago•0 comments

Quantum Computing and Blockchain [pdf]

https://assets.ctfassets.net/sygt3q11s4a9/6EjYavuGdtJDYCqaJrASj9/9f464a8bf26f44bd6c85710fe7e4a29f...
5•Tomte•43m ago•0 comments

Aihumanbench

1•AIhumanbench•43m ago•1 comments

Rspack 2.0: a 10x faster Webpack built in Rust

https://rspack.rs/blog/announcing-2-0
3•AbuAssar•47m ago•0 comments

Why I Still Reach for Lisp (& Scheme) Instead of Haskell

https://jointhefreeworld.org/blog/articles/lisps/why-i-still-reach-for-scheme-instead-of-haskell/...
8•jjba23•49m ago•1 comments