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!

House lawmakers get a chilling demo of 'jailbroken' AI

https://www.politico.com/news/2026/04/22/ai-chatbots-jailbreak-safety-00887869
1•0in•5m ago•0 comments

Anthropic has surged to a trillion-dollar valuation on secondary markets

https://www.businessinsider.com/anthropic-trillion-dollar-valuation-on-secondary-markets-2026
1•Growtika•5m ago•0 comments

I Am Building a Cloud

https://crawshaw.io/blog/building-a-cloud
2•bumbledraven•7m ago•0 comments

Half of AI health answers are wrong even though they sound convincing

https://theconversation.com/half-of-ai-health-answers-are-wrong-even-though-they-sound-convincing...
1•KnuthIsGod•7m ago•0 comments

Iran's IRGC warns it may cut undersea internet cables in Persian Gulf

https://www.msn.com/en-in/money/news/iran-s-irgc-warns-it-may-cut-undersea-internet-cables-in-per...
1•KnuthIsGod•8m ago•0 comments

Open source is not the problem, but its misuse by corporations

https://www.heise.de/en/blog/Open-source-is-not-the-problem-but-its-misuse-by-corporations-112667...
1•goloroden•8m ago•0 comments

ChatGPT for Clinicians

https://twitter.com/thekaransinghal/status/2047091103170785324
1•stenlix•10m ago•0 comments

MacBook Neo and How the iPad Should Be

https://craigmod.com/essays/ipad_neo/
1•jen729w•10m ago•0 comments

'Intelligence may be scalable, but accountability is not'

https://www.msn.com/en-us/news/technology/intelligence-may-be-scalable-but-accountability-is-not-...
1•galaxyLogic•10m ago•0 comments

DragonRuby's Seventh Year – Where We Started and Where We're Going

https://dragonruby.itch.io/dragonruby-gtk/devlog/1497015/dragonrubys-seventh-year-where-we-starte...
2•doppp•15m ago•0 comments

Pokemon Red and the Evolution of FSM

https://www.makonea.com/en-US/blog/Pokemon-Red-and-the-Evolution-of-FSM
1•jdw64•15m ago•0 comments

Hackers tricked Sri Lanka's Treasury into sending $2.5M to the wrong account

https://www.ft.lk/top-story/Treasury-rocked-by-2-5-m-fraud/26-791019
1•oshanz•18m ago•0 comments

MartinLoop – The control plane for autonomous AI agents

https://github.com/Keesan12/martin-loop
1•martinloop•18m ago•0 comments

In the age of AI, why do Australian company boards have few technology experts?

https://theconversation.com/in-the-age-of-ai-why-do-australian-company-boards-have-so-few-technol...
1•indynz•29m ago•0 comments

Low Contrast UI Pandemic

1•mr-pink•32m ago•0 comments

A Boy That Cried Mythos: Verification Is Collapsing Trust in Anthropic

https://www.flyingpenguin.com/the-boy-that-cried-mythos-verification-is-collapsing-trust-in-anthr...
5•taejavu•34m ago•0 comments

Choose Boring Technology

https://mcfunley.com/choose-boring-technology
1•doppp•41m ago•1 comments

Show HN: MailScrub – terminal UI for bulk Gmail unsubscribing

https://github.com/brooksc/MailScrub
1•brooksc•49m ago•0 comments

Search, Experience, Credence – classification of resources

https://en.wikipedia.org/wiki/SEC_classification_of_goods_and_services
1•downboots•51m ago•0 comments

Roast my game: Photobomb mobile multiplayer party game

https://www.photobomb.online/
1•alhwyn•54m ago•1 comments

God's View – Realtime BGP Looking Glass and IP Lookup

https://god.ad/
1•tgma•54m ago•0 comments

A classic Excel ad just got a 2026 upgrade [video]

https://www.youtube.com/watch?v=iEVx2ylAbI4
2•xtrkil•56m ago•0 comments

Meta will record employees' keystrokes and use it to train its AI models

https://techcrunch.com/2026/04/21/meta-will-record-employees-keystrokes-and-use-it-to-train-its-a...
3•jomon003•57m ago•0 comments

Article

https://mag.openrockets.com/p/developmental-integrity-di-and-the-cognitive-environments-why-minor...
2•openrockets•57m ago•0 comments

Show HN: Real-Real-Time Chat

https://kraa.io/kraa/trees
2•levmiseri•1h ago•0 comments

Building agents that reach production systems with MCP

https://claude.com/blog/building-agents-that-reach-production-systems-with-mcp
2•armcat•1h ago•0 comments

Anthropic: No "kill switch" for AI in classified settings

https://www.axios.com/2026/04/22/anthropic-no-kill-switch-ai-classified-settings
3•dsavant•1h ago•1 comments

America's descent into state capitalism is exaggerated

https://www.economist.com/business/2026/04/22/americas-descent-into-state-capitalism-is-exaggerated
2•andsoitis•1h ago•1 comments

It's time to reclaim the word "Palantir" for JRR Tolkien

https://www.zig.art/p/its-time-to-reclaim-the-word-palantir
39•IdahoSpring•1h ago•11 comments

Google upgrades AI Mode in the Chrome browser

https://blog.google/products-and-platforms/products/search/ai-mode-chrome/
1•gmays•1h ago•0 comments