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•1y ago

Comments

zljdanceholic•1y 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!

Apple's iOS 26.5 Update Patches More Than 50 Security Flaws

https://www.macrumors.com/2026/05/11/ios-26-5-security-fixes/
1•celsoazevedo•2m ago•1 comments

Manuals Plus: The Wrap-Up

https://ascii.textfiles.com/archives/5833
1•kencausey•2m ago•0 comments

I let AI build a tool to help me figure out what was waking me up at night

https://martin.sh/i-let-ai-build-a-tool-to-help-me-figure-out-what-was-waking-me-up-at-night/
1•showmypost•3m ago•0 comments

People turning to gambling or fraud in response to rigged/unfair system

https://greyenlightenment.com/2026/05/04/people-turning-to-gambling-or-fraud-in-response-to-rigge...
1•paulpauper•4m ago•0 comments

Teen Boys and Young Men Are Injecting Peptides in Search of Perfection

https://www.wsj.com/health/wellness/boys-peptides-stacks-looksmaxxing-trevor-larcom-835e58cd
1•JumpCrisscross•5m ago•0 comments

Stay indoors warning issued across three US states as toxic smog fills the air

https://www.dailymail.com/sciencetech/article-15809079/stay-indoors-warning-arizona-texas-califor...
1•Bender•5m ago•0 comments

Linux 7.1-Rc3 Released with Many Networking Changes

https://www.phoronix.com/news/Linux-7.1-rc3-Released
1•Bender•7m ago•0 comments

Linux 7.0.6 Released to Finish Mitigating the Dirty Frag Vulnerability

https://www.phoronix.com/news/Linux-7.0.6-Released
1•Bender•7m ago•0 comments

Cash register makers seek 1% food tax rate, citing extra time needed for 0% rate

https://www.japantimes.co.jp/news/2026/04/29/japan/politics/japan-food-tax-cut-challenges/
2•PaulHoule•8m ago•1 comments

Native Instruments Is Bought Out

https://www.the-berliner.com/berlin/native-instruments-sold-to-inmusic/
1•mrzool•9m ago•0 comments

Token Budgeting: How to Think About AI Cost Control

https://www.vantage.sh/blog/ai-token-budgeting
1•StratusBen•10m ago•0 comments

The 45% Hidden ROI of Automation No One Puts in the Business Case

https://sneakbug8.com/vertical-spillover-effect/
1•SneakBug8•10m ago•0 comments

Beneath the Linux surface: the Unix legacy, a lively ecology

https://club.unix.rocks/commentary/under-linux/
1•fcambus•10m ago•0 comments

Seeking technical co-founder (USA) – B2B global trade platform

https://www.ventraa.com/
1•rithwik29345•11m ago•0 comments

Kicking the Tires: A Voluntary Path to Pre-Deployment AI Vetting

https://www.lawfaremedia.org/article/kicking-the-tires--a-voluntary-path-to-pre-deployment-ai-vet...
1•yurivish•11m ago•0 comments

What breaks when you ask an LLM for JSON (288 model outputs tested)

https://thecrosswalk.news/what-breaks-when-you-ask-an-llm-for-json/
2•ndcorder•11m ago•0 comments

US Counterterrorism Strategy 2026: "We Will Find You and We Will Kill You" [pdf]

https://www.whitehouse.gov/wp-content/uploads/2026/05/2026-USCT-Strategy-1.pdf
1•latexr•11m ago•0 comments

We got our first paid user. And we're still stuck in Google's audit process

https://www.indiehackers.com/post/we-got-our-first-paid-user-and-were-still-stuck-in-google-s-aud...
2•festivilia•12m ago•0 comments

The Pace of Feedback

https://thoughtbot.com/blog/the-pace-of-feedback
1•paulhebert•12m ago•0 comments

AI, VPS Usage and $22B in Bead Funding Affects on IPv4 Prices

https://brandergroup.net/2026/04/hostinger-and-hetzner-signal-real-ipv4-demand/
1•JakeBrander•12m ago•0 comments

Virtual flying experience changes neural responses to seeing wings

https://www.cell.com/cell-reports/fulltext/S2211-1247(26)00398-0
3•_Microft•13m ago•1 comments

Prompt caching but for RL – 7.5x speedup on long-prompt/short-response workloads

https://castform.com/blog/train-prompt-cache/
4•kumama•13m ago•0 comments

Interaction Models

https://thinkingmachines.ai/blog/interaction-models/
6•smhx•14m ago•0 comments

Vision of destruction: Israel's assault on southern Lebanon

https://www.theguardian.com/world/2026/may/11/vision-destruction-israel-assault-southern-lebanon-...
3•ciconia•15m ago•0 comments

AI inference just plays by different rules

https://www.theregister.com/software/2026/05/04/ai-inference-just-plays-by-different-rules/5223647
1•gmays•15m ago•0 comments

Ask HN: Experience with Odd-Shaped Monitors?

1•nrjames•15m ago•0 comments

GitLab Announces Workforce Reduction and End of Their CREDIT Values

https://about.gitlab.com/blog/gitlab-act-2/
8•AnonGitLabEmpl•15m ago•1 comments

Rough Patches

https://nickchirls.com/2026/04/28/rough-patches/
2•tylerdane•16m ago•1 comments

80% of your Web Fetch returns Junk

https://www.tinyfish.ai/blog/80-of-your-web-fetch-returns-junk
2•gargigupta•17m ago•0 comments

We Traced U.S. Government Gold to a Drug Cartel

https://www.nytimes.com/2026/04/26/insider/gold-us-mint-drug-cartel.html
3•aleksjess•18m ago•1 comments