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!

Bill banning people born after 2008 from buying tobacco clears UK parliament

https://www.theguardian.com/society/2026/apr/21/bill-banning-people-born-after-2008-from-buying-t...
1•dazhbog•39s ago•0 comments

Claude Code Removed from $20-a-Month "Pro" Subscription for New Users

https://www.wheresyoured.at/news-anthropic-removes-pro-cc/
3•Xiol•3m ago•0 comments

Show HN: No JavaScript Club

https://nojs.club/
1•basilikum•3m ago•0 comments

The Lemming Effect

https://twitter.com/lopes_pm/status/2046722429075013822
1•lopespm•5m ago•0 comments

'Everyone Is Lying to You for Money' Digs into Cryptocurrency

https://www.nytimes.com/2026/04/17/movies/cryptocurrency-documentary-everyone-is-lying-to-you-for...
2•paulpauper•7m ago•0 comments

Opus 4.7 Part 2: Capabilities and Reactions

https://thezvi.substack.com/p/opus-47-part-2-capabilities-and-reactions
1•paulpauper•8m ago•0 comments

Recursive Superintelligence Raises $500M Funding Round at $4B Valuation

https://www.ft.com/content/a92bf04b-bbac-400f-9554-5b1c70957ad4
1•in-silico•8m ago•0 comments

Opus 4.7 Part 1: The Model Card

https://thezvi.substack.com/p/opus-47-part-1-the-model-card
1•paulpauper•8m ago•0 comments

New Hope Against Pancreatic Cancer

https://www.wsj.com/opinion/revolution-medicines-daraxonrasib-pancreatic-cancer-ben-sasse-675bac62
1•neehao•8m ago•0 comments

Say Goodbye to the Undersea Cable That Made the Global Internet Possible

https://www.wired.com/story/say-goodbye-to-the-undersea-cable-that-made-the-global-internet-possi...
1•divbzero•8m ago•0 comments

The provided text explains why the skin in Avatar 3 appears plastic-like

https://note.com/alive_bobcat1617/n/n40223d1cf9b2
1•tacwon•9m ago•0 comments

Continuous Respiration Rate Monitoring Device for Dairy Cattle

https://www.mdpi.com/2076-2615/16/6/984
1•PaulHoule•10m ago•0 comments

Trump Is Said to Be in Talks to Send Afghans Who Aided U.S. Forces to Congo

https://www.nytimes.com/2026/04/21/world/europe/afghan-refugees-congo-us.html
2•duxup•11m ago•2 comments

Cursor has given SpaceX the right to acquire Cursor later this year for $60B

https://xcancel.com/SpaceX/status/2046713419978453374
2•marksully•12m ago•0 comments

Copyright and DMCA Best Practices for Fediverse Operators

https://www.eff.org/deeplinks/2026/04/copyright-and-dmca-best-practices-fediverse-operators
1•sohkamyung•13m ago•0 comments

Clojure Documentary Q&A [video]

https://www.youtube.com/watch?v=hc112UhpHow
1•bmillare•13m ago•0 comments

OnlyOffice says Nextcloud must restore removed logos in Euro-Office fork

https://www.neowin.net/news/onlyoffice-invokes-agplv3-says-nextcloud-must-restore-removed-logos-i...
1•bundie•13m ago•0 comments

We Need to Talk About the IPv8 Draft

https://shitwolfymakes.substack.com/p/we-need-to-talk-about-the-ipv8-draft
1•Refreeze5224•14m ago•0 comments

Aura

https://hergimuci.gumroad.com/l/ai-agent-blueprint
2•OpenClawAura•16m ago•0 comments

Habits of Highly Overrated People (2013)

https://daedtech.com/the-7-habits-of-highly-overrated-people/
2•rzk•16m ago•0 comments

Mythos Hacked Day It Was Announced

https://twitter.com/negligible_cap/status/2046706434373537955
3•scaboodles•17m ago•0 comments

Medicare Delays Full Obesity-Drug Program Rollout After Insurers Push Back

https://www.wsj.com/health/pharma/medicare-delays-full-obesity-drug-program-rollout-after-insurer...
2•JumpCrisscross•17m ago•0 comments

What exactly is an executive chair, Tim Cook's new position?

https://hsu.cy/2026/04/tim-cook-as-the-executive-chair/
2•firexcy•17m ago•0 comments

SpaceX Says It Has Agreement to Acquire Cursor for $60B

https://www.bloomberg.com/news/articles/2026-04-21/spacex-says-has-agreement-to-acquire-cursor-fo...
6•Jimmc414•18m ago•0 comments

Caption Game: Multiplayer Meme / Caption Browser Game for 3-7 Players

https://captiongame.com
1•keymash•19m ago•0 comments

CATL claims 6-minute charge and 1,500km range for new electric vehicle batteries

https://www.ft.com/content/1773de37-2595-4d9f-9536-dbe03ff1f8d3
3•scrlk•22m ago•1 comments

Connect 47 tools, query everything in plain English

https://skopx.com
1•skopx•22m ago•0 comments

Claude Code no longer included in Pro tier

https://bsky.app/profile/edzitron.com/post/3mjzxwfx3qs2a
10•johnduhart•23m ago•3 comments

China Did Not Build Its Math Machine from Scratch. It Rewired the Soviet One

https://valeman.medium.com/china-did-not-build-its-math-machine-from-scratch-it-rewired-the-sovie...
1•ibobev•24m ago•0 comments

HyperZHub Browser

https://github.com/hyperzteam456/hyperzhub/
1•HyperZTeam•26m ago•1 comments