frontpage.
newsnewestaskshowjobs

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!

Billions in Data Center Deals Grind to Halt After Chip Curbs

https://www.bloomberg.com/news/articles/2026-11-25/billions-in-data-center-deals-grind-to-halt-af...
1•petethomas•5m ago•0 comments

Quantum physics can prove where you are

https://www.nature.com/articles/d41586-026-03378-4
1•AnnikaL•6m ago•0 comments

Gut-Wrenching Volatility Grips Wall Street as AI Doubts Creep In

https://www.bloomberg.com/news/articles/2026-11-25/stomach-churning-swings-rock-wall-street-as-ai...
3•petethomas•7m ago•0 comments

Ask HN: Security for the Small Developer

2•dvduval•11m ago•0 comments

Tell HN: Finality is like the speed of light to LLMs from the labs

2•figassis•13m ago•0 comments

The World: Zoom from observable universe to the standard model

https://v3ai.github.io/the-world/
2•v3ai•19m ago•0 comments

Minipg: PostgreSQL as a Single Executable

https://progrium.github.io/minipg/
1•rguiscard•20m ago•0 comments

Music: A Desktop Replacment for Spotify

https://v3ai.github.io/music/
2•v3ai•21m ago•2 comments

Cognition as least action: the Physarum Lagrangian

https://royalsocietypublishing.org/rsif/article/23/244/20251265/484274/Cognition-as-least-action-...
1•the-mitr•22m ago•0 comments

Google MCP servers, CLI, standardized usage tiers, and admin policies

https://workspaceupdates.googleblog.com/2026/11/mcp-servers-cli-standardized-usage-tiers-now-avai...
1•cebert•24m ago•0 comments

A Closer Look at Claude's Mac "Apps"

https://www.macstories.net/stories/a-closer-look-at-claudes-mac-apps/
1•CharlesW•24m ago•0 comments

The Naturalist's Library

https://www.c82.net/naturalists-library/
2•rafael859•25m ago•0 comments

Proving a Fixed Upper Bound on Jensen's Affairs

https://bitbanter.com/posts/2026-11-25/proving-a-fixed-upper-bound-on-jensens-affairs/
10•gmays•29m ago•1 comments

Common Cents Act (H.R.10167)

https://www.congress.gov/bill/119th-congress/house-bill/10167
4•dataflow•29m ago•0 comments

vLLM-GR: Efficient Inference for Generative Recommendation

https://vllm.ai/blog/2026-11-24-vllm-gr-announcement
1•gmays•34m ago•0 comments

Show HN: Just Dashboard, open-source Linux full management dashboard

https://just-dashboard.com/
1•Wayy10•40m ago•0 comments

RISC-V Profiles RVA23.1 and RVB23.1 Ratified and Merged into the Manual

https://riscv.github.io/riscv-isa-manual/snapshot/spec/#vol:profiles
2•snvzz•41m ago•0 comments

Theodore Zeldin, Britain's most Francophile historian, dies at 93

https://www.lemonde.fr/en/obituaries/article/2026/11/26/theodore-zeldin-britain-s-most-francophil...
2•toomuchtodo•44m ago•1 comments

Show HN: Branching-story-kit – 207-line zero-dep story-state kernel (MIT)

https://github.com/ouba-studio/branching-story-kit
1•andykymak•44m ago•0 comments

Show HN: A local-first zero knowledge project

1•ZachQ•46m ago•1 comments

What I Learned from Playing "Spelling Bee"

https://www.mooreds.com/wordpress/archives/3750
1•mooreds•47m ago•0 comments

Trust Is an Outcome: From Zero Trust to Verified Trust

https://www.theidentityunderground.com/post/trust-is-an-outcome-from-zero-trust-to-verified-trust
2•mooreds•48m ago•0 comments

Show HN: Comparison of Podcasting 2.0 players with Digilore

https://digilore.org/comparing-digilore/
1•logn•50m ago•0 comments

HeyOrbo – AI Powered Notch on Desktop

https://heyorbo.com
1•pyonic•52m ago•0 comments

Amazon vs. Walmart: Why Retailers Are Split on AI Shopping Agents

https://www.mindstudio.ai/blog/ai-agents-shopping-access-wars
2•GloVin•53m ago•1 comments

The AHM's awkward position on the Riemann Hypothesis being solved

https://proofsandprompts.com/2026/11/25/on-the-ahms-awkward-position-on-the-riemann-hypothesis-be...
3•num42•54m ago•0 comments

Exhibit A with AI: Don't Skip or Write "None."

https://www.rickmanelius.com/p/exhibit-a-with-ai-dont-skip-or-write
1•mooreds•55m ago•0 comments

Show HN: StackMaestro – Local management of agent-generated stacks

https://github.com/marklyons/stackmaestro
1•mklyons•56m ago•1 comments

Show HN: Auth proxy backed by hardware-attested Yubikeys

https://github.com/adrianchifor/shomei
1•adrianchifor•58m ago•0 comments

Ask HN: What do you think of a revamped HN UI/UX?

1•george_max•58m ago•4 comments