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!

Tesla's Newest Electric Vehicle Could Jolt the Trucking Industry

https://www.nytimes.com/2026/05/19/business/energy-environment/teslas-semi-truck.html
1•bookofjoe•1m ago•1 comments

Show HN: pack-src – pack source code into clean shareable ZIP

https://github.com/muhammadmuzzammil1998/pack-src
1•muzzammildotxyz•4m ago•0 comments

AI Is Being Used to Resurrect the Voices of Dead Pilots

https://techcrunch.com/2026/05/22/ai-is-being-used-to-resurrect-the-voices-of-dead-pilots/
1•Brajeshwar•4m ago•0 comments

Bespoke AI Curriculum to Become AI Operator

https://aios.perabytelabs.com
1•ubp•4m ago•0 comments

Tick Architecture

https://kx.com/blog/tick-architecture-simplicity-and-speed-the-kdb-way/
2•tosh•6m ago•0 comments

There's No Reason to Fear an Invasion of Chinese Electric Vehicles

https://spectator.org/theres-no-reason-to-fear-an-invasion-of-chinese-electric-vehicles/
1•bushwart•7m ago•0 comments

OpenSessions – real time agent tracking in tmux using hooks and process trees

https://github.com/Ataraxy-Labs/opensessions
1•rohanucla•7m ago•1 comments

Anthropic's coordinated vulnerability disclosure dashboard

https://red.anthropic.com/2026/cvd/
2•Levitating•9m ago•0 comments

Cache hit rates of Inference are more meaningful than the headline costs

https://dirac.run/posts/cache-hit-rates-agents
1•GodelNumbering•9m ago•0 comments

Tank leaking toxic chemicals in Orange County will spill or explode

https://abc7.com/live-updates/garden-grove-chemical-tank-emergency-leaking-toxic-chemicals-orange...
3•panda88888•13m ago•0 comments

Aube – Node.js package manager in Rust

https://aube.en.dev/
1•brianzelip•14m ago•0 comments

The Art of Dithering and Retro Shading for the Web

https://blog.maximeheckel.com/posts/the-art-of-dithering-and-retro-shading-web/
1•helloplanets•15m ago•0 comments

Full Show: After "Late Show" Ends, Stephen Colbert Hosts Monroe [video]

https://www.youtube.com/watch?v=7DlF5Cf4VLM
1•hank808•17m ago•2 comments

Wealth, Shown to Scale

https://wealth.ronnycoste.com/
3•Cider9986•22m ago•0 comments

James Murdoch to acquire half of Vox Media in deal reportedly worth $300M

https://www.theguardian.com/media/2026/may/20/james-murdoch-vox-media-deal
2•vidyesh•23m ago•0 comments

The end of free compute is the beginning of better engineering

https://the-ken.com/columns/zero-shot/the-end-of-free-compute-is-the-beginning-of-better-engineer...
1•vidyesh•24m ago•0 comments

Dumbo Could Already Fly

https://www.theintrinsicperspective.com/p/dumbo-could-already-fly
1•Schiphol•25m ago•0 comments

Ask HN: Are these videos from hacked IoT devices?

1•Cider9986•26m ago•2 comments

Politicians to Ditch Signal for Homegrown Apps

https://www.lawfaremedia.org/article/politicians-to-ditch-signal-for-homegrown-apps
1•hn_acker•30m ago•0 comments

Hadopi, perhaps the world's worst copyright law, is moribund but not quite dead

https://walledculture.org/hadopi-perhaps-the-worlds-worst-copyright-law-is-moribund-but-not-quite...
2•hn_acker•32m ago•1 comments

Is Trump trying to turn Texas blue?

https://www.natesilver.net/p/is-trump-trying-to-turn-texas-blue
1•7777777phil•32m ago•1 comments

New Generation of Accounting

1•filipriec•34m ago•1 comments

Fair Step Challenge Builder

https://motion-app.com/tools/step-challenge-builder/
1•georgegreenldn•36m ago•1 comments

Texas woman arrested for Facebook post about town water quality

https://reclaimthenet.org/texas-woman-arrested-for-facebook-post-about-town-water-quality
53•abawany•37m ago•13 comments

Iowa lawmakers to mandate students take Center for Intellectual Freedom classes

https://www.kcrg.com/2026/05/20/iowa-lawmakers-move-mandate-students-take-center-intellectual-fre...
2•hn_acker•38m ago•1 comments

Orbit – Route every AI query to the right model automatically (NPM SDK)

https://orbitai.gtll.app
2•gabrielsmartin•40m ago•0 comments

Delivery Hero reveals Uber takeover bid at €10B valuation

https://www.ft.com/content/6d5df0df-74b3-4be9-a1ec-27322e1c3184
1•JumpCrisscross•41m ago•0 comments

AI super-apps are remaking China's internet

https://www.economist.com/business/2026/05/17/ai-super-apps-are-remaking-chinas-internet
1•marojejian•41m ago•1 comments

ScyllaDB PHP Driver: the story so far

https://www.dusanmalusev.dev/blog/scylladb-php-driver-the-story-so-far
1•CodeLieutenant•42m ago•1 comments

JetBrains Is Selling Independence as the Rest of AI Coding Picks Sides

https://thenewstack.io/jetbrains-independent-ai-coding/
1•Brajeshwar•44m ago•0 comments