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•12mo ago

Comments

zljdanceholic•12mo 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!

The PHP License, Simplified

https://ben.ramsey.dev/blog/2026/05/the-php-license-simplified
1•gslin•3m ago•0 comments

Open source intelligence about Palantir

https://palantirwatch.org
1•seb1204•4m ago•0 comments

Using the "Sandwich Method" to Teach Mathematics

https://pikuma.com/blog/sandwich-method-math-education
1•atan2•7m ago•0 comments

Kloak keeps secrets out of your application's memory

https://getkloak.io/blog/kloak-50000-feet-view/
1•spinningfactory•7m ago•0 comments

PyFlue – Python-Native Agent Harness Framework (Python Clone of Flue)

https://super-agentic.ai/pyflue
1•sebst•9m ago•0 comments

Show HN: Zuma Portable

https://drive.google.com/drive/folders/1hDRvlY707VrO_UztEtIt1EoPgKBICL8Q?usp=sharing
1•zeeeeeebo•13m ago•0 comments

Simpson's Paradox

https://en.wikipedia.org/wiki/Simpson%27s_paradox
2•basilikum•16m ago•1 comments

California man uses elaborate drone show to help delivery drivers find his house

https://www.dexerto.com/entertainment/california-man-uses-elaborate-drone-show-to-help-delivery-d...
2•gnabgib•17m ago•0 comments

Exit, Voice, and Loyalty

https://en.wikipedia.org/wiki/Exit,_Voice,_and_Loyalty
2•akyuu•18m ago•0 comments

Why should a Trace-ID be 128 bits? (A Surprisingly Long Answer)

https://newsletter.signoz.io/p/why-should-a-trace-id-be-128-bits
2•birdculture•19m ago•0 comments

HN Signal (Last 24 hours) | Curated top stories from HN in the last 24 hrs

https://www.heydebrief.com/dubkc/hn-best-24
1•baetylus•25m ago•2 comments

DeepClaude – Claude Code agent loop with DeepSeek V4 Pro, 17x cheaper

https://github.com/aattaran/deepclaude
2•alattaran•27m ago•0 comments

Show HN: Triggering anti-cheats with just a browser tab title

https://github.com/elliott-diy/DontTrustTitles
4•Elliott-Diy•28m ago•1 comments

Broadcasting GPS on the Local Network

https://evertpot.com/broadcasting-gps-on-local-network/
1•treve•29m ago•0 comments

Brutal in production, lands like a verdict

1•Non_Von_Neumann•30m ago•0 comments

ReactOS Introduces Unified Live/Install Media, New Storage Driver

https://www.phoronix.com/news/ReactOS-Unified-ISO
1•kykat•32m ago•0 comments

Introduction to Atom

https://validator.w3.org/feed/docs/atom.html
2•susam•32m ago•0 comments

The Google Cloud Knowledge Catalog

https://cloud.google.com/blog/products/data-analytics/introducing-the-google-cloud-knowledge-catalog
1•laxmena•33m ago•0 comments

Next-Token Predictor Is An AI's Job, Not Its Species

https://www.astralcodexten.com/p/next-token-predictor-is-an-ais-job
1•optimalsolver•33m ago•0 comments

Seriously, Anthropic? [video]

https://www.youtube.com/watch?v=J8O9LLpJNrg
4•dp-hackernews•39m ago•0 comments

Sato – AI desktop companion for macOS with multi-provider support

https://www.sato.host/
2•vitalune•42m ago•0 comments

The Long Road To Windows 95 [video]

https://www.youtube.com/watch?v=u8k66A9n8gE
1•st_goliath•43m ago•0 comments

Transport access reduces deprivation: When colocation misleads

https://pnas.scienceconnect.io/error?msg=ewogICJpZCIgOiAiNmU3ZTA0MTEtMWQ1Yi00NDhjLTg0MDgtZGE4NjI4...
2•Anon84•45m ago•0 comments

March 2026 Top New Cran Packages

https://rworks.dev/posts/march-2026-top-40-new-cran-packages/
2•ionychal•46m ago•0 comments

How Synthesize_capability Works

https://ninjahawk.github.io/blog/posts/synthesize-capability.html
1•ninjahawk1•51m ago•0 comments

Early and Late-Stage Hypergrowth

https://lethain.com/early-late-stage-hypergrowth/
1•milkglass•55m ago•0 comments

No Smoking Gun

https://notoriousbfg.com/no-smoking-gun/
3•trwhite•57m ago•0 comments

Scientists Gave Cocaine to Salmon

https://www.wired.com/story/cocaine-fueled-wild-salmon-swam-twice-as-far-as-sober-ones/
5•ohjeez•1h ago•2 comments

Building a Web Framework from Scratch

3•NewSmoke38•1h ago•0 comments

Shipping todometer, Version 3

https://cassidoo.co/post/todometer-v3/
2•cassidoo•1h ago•0 comments