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!

AI Agents Are Fundamentally Restructuring the Software Paradigm

https://arxiv.org/abs/2606.05608
1•speckx•21s ago•0 comments

AI Is an Anti-Primary Source Machine

https://www.hnn.us/article/ai-is-an-anti-primary-source-machine
1•prismatic•24s ago•0 comments

Ask HN: Could tariffs be a good thing?

1•silexia•1m ago•0 comments

Reddit mod used AI to hack Star Wars Galaxies emulator over a 14-year-old grudge

https://massivelyop.com/2026/08/29/a-reddit-mod-used-ai-to-hack-a-star-wars-galaxies-emulator-ove...
1•speckx•2m ago•0 comments

"Zlibrary my beloved": Anthropic staff chats extolling piracy cited in Sony suit

https://arstechnica.com/tech-policy/2026/08/zlibrary-my-beloved-anthropic-staff-chats-extolling-p...
1•hadrien01•2m ago•0 comments

Vitela. A free, type-safe alternative to Overleaf

https://vitela.artificialfallibility.com/
1•camilochs•3m ago•0 comments

DeepSeek v4 Flash Vision Exp is now open-weight

https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-Vision-Exp
1•florianherrengt•4m ago•0 comments

The Domain Software Engineer

https://patent.dev/the-domain-software-engineer/
1•funktionslust•4m ago•0 comments

PDE Role Explorer

https://dit-2026-app.john-04e.workers.dev/page26
1•whiteboardr•5m ago•0 comments

Merit, Hire engineers based on simulated work

https://applymerit.com
1•jonas_kgomo•8m ago•0 comments

Show HN: Kiso – Publish one OKF knowledge base for humans and AI agents

https://github.com/oak-invest/kiso
1•straumat•9m ago•0 comments

Global Trade and the US Navy

https://acoup.blog/2026/08/28/collections-global-trade-and-united-states-navy/
2•arn3n•10m ago•0 comments

Autoscaling Lakebase Postgres

https://neon.com/blog/autoscaling-lakebase-postgres
2•emschwartz•11m ago•0 comments

A Selection of Los Alamos Rolodex Business Cards

https://clui.org/collections/los-alamos-business-cards/selection-cards
3•1970-01-01•12m ago•0 comments

OpenAI and Anthropic are ruining San Francisco

https://www.sfgate.com/local/article/open-ai-anthropic-ruining-sf-22404657.php?taid=6a91b0cb1aac0...
3•rmason•13m ago•0 comments

What It Took to Dismantle the Most Powerful Company in the World

https://www.nytimes.com/2026/08/28/opinion/ai-power-lobbying-military-britain-east-india-company....
1•rafaelc•14m ago•0 comments

Things I Won't Work With: Straight Dimethyl Zinc

https://www.science.org/content/blog-post/things-i-won-t-work-straight-dimethyl-zinc
1•Bluestein•14m ago•0 comments

Should your Claude Code sessions cache for five minutes, or an hour?

https://cacheanalyzer.com/
2•rmason•15m ago•0 comments

Ask HN: Why does Hacker News use the obsolete HMAC?

1•irongem•17m ago•0 comments

Broadcom pledges to lock down open source Python and Java libraries

https://www.theregister.com/virtualization/2026/08/31/broadcom-pledges-to-lock-down-open-source-p...
2•theanonymousone•17m ago•0 comments

Embedded Swift Improvements Coming in Swift 6.4

https://www.swift.org/blog/embedded-swift-improvements-coming-in-swift-6.4/
1•maguszin•18m ago•0 comments

Perceptron AI releases Isaac 0.5: 36B, open weight, embodied foundation model

https://twitter.com/perceptroninc/status/2092678357775442103
5•ceith•19m ago•0 comments

Inside the hunt for suspected Chinese drone spies over US military bases

https://www.cnn.com/2026/08/31/politics/drone-incursions-us-bases-chinese-spies
2•cisc•19m ago•0 comments

Omarchy Quattro is the #3 Linux distro by active 1Password users

https://twitter.com/jmeller/status/2094429848647197145
2•porridgeraisin•19m ago•0 comments

YouTube blogger Markiplier becomes GoPro's largest shareholder with 8.5% stake

https://forgeeks.net/markiplier-gopro-largest-shareholder/
1•kuuuzya•19m ago•0 comments

When Japan Tried to Create Artificial Intelligence in the 1980s

https://www.tokyoweekender.com/entertainment/tech-trends/japan-fifth-generation-computer-project-ai/
3•SeenNotHeard•20m ago•0 comments

Cloudflare Unveils Adaptive Intelligence to Counter AI-Fueled Bot Attacks

https://securityboulevard.com/2026/08/cloudflare-unveils-adaptive-intelligence-to-counter-ai-fuel...
1•CrankyBear•20m ago•0 comments

Microsoft 365 Is Down

https://status.cloud.microsoft/m365/referrer=serviceStatusRedirect
3•jaynate•21m ago•1 comments

SDL's Agents.md

https://github.com/libsdl-org/SDL/blob/main/AGENTS.md
2•delduca•21m ago•0 comments

A '70s Improv Book Became Silicon Valley's Required Reading

https://www.nytimes.com/2026/08/30/opinion/silicon-valley-theater-improv.html
1•apparent•22m ago•1 comments