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!

The Sequoia of Tomorrow

https://twitter.com/sequoia/status/2117961312143855764
1•gmays•40s ago•0 comments

I built an alternative to Conductor for Claude and Codex

https://shelbi.dev/
1•jlong•2m ago•1 comments

Candy Crush and Tech Debt

https://kevinaleman.com/a-tale-of-candy-crush-technical-debt-143h/?lang=es
1•window1protec•2m ago•0 comments

Show the Ramp

https://alearningaday.blog/2026/11/01/show-the-ramp/
1•herbertl•3m ago•0 comments

Teaching Students to See What They Miss

https://daily.jstor.org/teaching-students-to-see-what-they-miss/
1•herbertl•4m ago•0 comments

Bodum Recalls 5.9M Coffee Makers with Glass Carafes Due to Burn Risk

https://www.cpsc.gov/Recalls/2027/Bodum-USA-Recalls-5-9-Million-French-Press-Coffee-Makers-with-R...
1•loudgas•8m ago•0 comments

2026: The State of Enterprise AI

https://menlovc.com/perspective/2026-the-state-of-enterprise-ai/
1•keeda•8m ago•0 comments

Oh suddenly Habibi search trending everywhere

https://trends.google.com/trending
2•autoventure•11m ago•1 comments

Phone Harness: let your agent use your phone

https://phone-harness.com/
1•jonbaer•15m ago•0 comments

HyperDrone

https://hyperdrone.dev/
1•jonbaer•19m ago•0 comments

Google Says K-12 Students at Schools That Turn Off Its AI Tools Will Lose Search

https://www.ghacks.net/2026/11/04/google-says-k-12-students-at-schools-that-turn-off-its-ai-tools...
2•rdmuser•21m ago•2 comments

Hosted Markdown 2 medium tool

https://medium.com/@keith.hodges/markdown-2-medium-tool-d3711869b762
1•keithhodges•22m ago•0 comments

The State of Python Profiling in 2026

https://p403n1x87.github.io/the-state-of-python-profiling-in-2026.html
1•lumpa•23m ago•0 comments

Accelerating Engineering for the Physical World

https://openai.com/index/accelerating-engineering-for-the-physical-world/
1•gmays•25m ago•0 comments

Time || Space? Generation of Time and Dates in C Language:Generation of Space

http://www.catb.org/esr/time-programming/
1•efren6•27m ago•0 comments

Isometric SF

https://isometricsf.com/
3•avyfain•28m ago•0 comments

Show HN: Autorun-audit – find what runs when you open, CD into or install a repo

https://github.com/ag3ntsc4rn/autorun-audit
1•ag3ntsc4rn•28m ago•0 comments

Here Be Monsters

https://www.nybooks.com/online/2026/10/30/here-be-monsters/
1•benbreen•34m ago•0 comments

Half-Life in 23:58

https://www.youtube.com/watch?v=P74qS4zYmis
1•nonethewiser•40m ago•0 comments

Bansat – Make your AI agent write the blueprint before the code

https://github.com/bewithkhan/bansat
1•bewithkhan•41m ago•0 comments

Anthropic Needs to Disclose Its Tokenomics Before Its IPO

https://www.techpolicy.press/anthropic-needs-to-disclose-its-tokenomics-before-its-ipo/
2•JustinHendrix•44m ago•0 comments

Show HN: Botlark – HN for Agents

https://botlark.com/
1•1potato•44m ago•1 comments

Siri AI is now open to all developers

https://developer.apple.com/news/?id=gdk2umrf
4•gmays•45m ago•1 comments

Show HN: I turned 18 Agatha Christie novels into SQL murder cases

https://querythemurder.com/
4•jenikashah07•56m ago•1 comments

Quasi-Logarithmic Kitchen Timer

https://blog.coredump.cx/p/quasi-logarithmic-kitchen-timer
1•surprisetalk•59m ago•0 comments

Anthropic buys one-person Kendall Square biotech ahead of IPO. Here's why

https://www.masslive.com/news/2026/11/anthropic-buys-one-person-kendall-square-biotech-ahead-of-i...
3•thavalai•1h ago•0 comments

Agent State Machines: Building Deterministic Scaffolding for Agents

https://twitter.com/josharosen/status/2117687393213932003
3•gmays•1h ago•0 comments

Show HN: Exact integer LLL lattice basis reduction in C99

https://github.com/qawbecrdtey/clll
2•qawbecrdtey•1h ago•0 comments

Cat Wu joins OpenAI from Anthropic in product-lead coup

https://www.businessinsider.com/cat-wu-joins-openai-from-anthropic-product-lead-coup-2026-11
3•closetheloopdev•1h ago•0 comments

HawaiʻI Green Party Candidate Makes History, Edges Democrat

https://www.civilbeat.org/2026/11/hawaii-green-party-candidate-makes-history-edges-democrat/
2•PaulHoule•1h ago•0 comments