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!

What to Know About the Obscure Trust Looming over Anthropic's IPO

https://www.wsj.com/tech/ai/anthropic-ipo-private-trust-188f41f7
1•1vuio0pswjnm7•1m ago•0 comments

Show HN: A biotech catalyst calendar that links every date to the SEC sentence

https://www.orionbiotechai.com/
1•orionbiotech•1m ago•0 comments

Attach open data like a database: Iceberg tables over a CDN

https://lakehousebox.com/blog/public-iceberg-from-a-cdn/
1•jatorre•2m ago•0 comments

I Made a Classic GameHub

https://play.google.com/store/apps/details?id=com.playhub.spelbazi&hl=en_US
1•testbonsai•3m ago•0 comments

One Page Design Philosophy for Game Developers [video]

https://www.youtube.com/watch?v=E9_wLks1kAg
1•surprisetalk•7m ago•0 comments

Introducing The Anthropic Cyber Mission

https://www.anthropic.com/news/anthropic-cyber-mission
1•gmays•10m ago•0 comments

Marmalade TTS

https://github.com/maxwhipw/marmalade-tts-android
1•mkesper•10m ago•0 comments

Show HN: Kernwise – Kerning Game for Designers

https://www.designinspiration.info/kernwise-a-free-kerning-game-for-designers/
1•bepero•11m ago•0 comments

The Developer Communication Handbook

https://w.pitula.me/developer-communication-handbook/
1•krever•12m ago•1 comments

Self Improvement Harness based on pi. pi-harness-rsi

https://github.com/grigio/pi-harness-rsi
1•grigio•12m ago•0 comments

Did Karl Marx Predict Artificial Intelligence 170 Years Ago?

https://medium.com/@MichaelMcBride/did-karl-marx-predict-artificial-intelligence-170-years-ago-4f...
3•vrganj•13m ago•0 comments

Dockit – an open-source desktop app for container management

https://github.com/Amanbig/dockit/releases
2•procoder588•15m ago•0 comments

I Automated Website Development

https://sitesmith.t3ratech.co.zw/
2•tkaviya•18m ago•0 comments

AI native Requirements, design and simulations

https://www.meltred.com/
2•kunalsin9h•21m ago•0 comments

Dropstone composed and mixed a full orchestra in 7.1 surround for under $1

https://www.dropstone.io/blog/dropstone-nocturne-7-1-orchestra
4•DarenWatson•23m ago•0 comments

The Lucrative World of Literary Scams

https://www.thedial.world/articles/news/ai-book-scams
2•samclemens•23m ago•0 comments

The Many Failures of Larry David

https://colossus.com/article/many-failures-larry-david-profile/
2•jger15•24m ago•0 comments

Notepad++ for macOS – Native Qt 6 / Scintilla port with top plugins

https://github.com/kalderonski73/notepad-plus-plus-macos
2•k1000o73•25m ago•0 comments

DHS Political Appointees Ask CISA to Secretly Obtain Voting Machine And Hack it

https://www.propublica.org/article/cisa-election-security-donald-trump
3•DeepLogin•25m ago•0 comments

What Is Vinix? The V-Language OS That Runs Docker

https://www.fosslinux.com/162837/what-is-vinix.htm
1•baranul•32m ago•0 comments

It Turns Out the Only Thing People Like Less Than AI Is Paying for Adobe

https://www.inc.com/jason-aten/it-turns-out-the-only-thing-people-like-less-than-ai-is-paying-for...
3•baranul•35m ago•0 comments

AI firm Anthropic to commit 5% of shares to fund for 'public good'

https://www.theguardian.com/technology/2026/oct/19/ai-firm-anthropic-to-commit-shares-to-fund-for...
5•beardyw•36m ago•2 comments

I will give one of my SpaceX shares to every kid in America

https://twitter.com/elonmusk/status/2112089556615123114
3•bilsbie•36m ago•4 comments

What Is This Worth?

https://nuno-icons.com/2026/10/19/what-is-this-worth/
2•HieronymusBosch•36m ago•0 comments

Harness2 by Google Research – Recursive Agent Harnessing

https://github.com/google-research/harness2
5•irthomasthomas•38m ago•0 comments

Art in the Age of Mechanical Reproduction [pdf]

https://web.mit.edu/allanmc/www/benjamin.pdf
1•signa11•39m ago•0 comments

Britain should reject the lure of cheap – and scary – Chinese AI

https://www.theguardian.com/business/2026/oct/17/why-britain-should-reject-the-lure-of-cheap-and-...
2•irthomasthomas•42m ago•1 comments

Ask HN: How to deal with shipping AI-written code you don't understand?

3•rzk•42m ago•7 comments

Achtung Die Kurve, on a Sphere

https://kugel.agge.dev/
1•agge•43m ago•1 comments

The Developer's Hierarchy of Needs Is Being Eaten from the Bottom

https://blog.technodrone.cloud/2026/10/developers-hierarchy-eaten-from-the-bottom.html
1•maishsk•43m ago•0 comments