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!

Camoufox for Web Scraping: Setup, Proxies and Servers

https://scrapfly.io/blog/posts/camoufox-for-web-scraping
1•AIWithLucas•5s ago•0 comments

Ask HN: Have you seen any outstanding GitHub repo?

1•skwasimin•1m ago•0 comments

Web Scraping in 2026: Six Insights from Pierluigi of the Web Scraping Club

https://scrapeops.io/blog/web-scraping-insights-from-pierluigi-of-the-web-scraping-club/
1•WesleyGrant782•1m ago•0 comments

Can You Explain a Zipper? Why AI Makes You Feel Smarter Than You Are [video]

https://www.youtube.com/watch?v=tqAangiY0FE
1•ykonstant•4m ago•0 comments

From Text Scripts to Animated Memes: A Guide to Creating GIFs with GPT Image 2.6

https://cloud.tencent.com/developer/article/2779922
1•yeungjipei•9m ago•0 comments

The Economics of Distrust: How the Market of Authenticity Consumed Itself

https://medium.com/@smoking2man/the-economics-of-distrust-how-the-market-of-authenticity-consumed...
1•Aldus551•9m ago•0 comments

Hire AI Agents and Pay in Monero (XMR)

https://agents.monero.jobs
1•CR1337•13m ago•0 comments

Show HN: Willder, an open source context layer that syncs apps, agents and teams

https://github.com/willderai/willder-core
1•NMTri1110•13m ago•0 comments

We're launching an in-game AI agent for WoW

https://willocompanion.com/
1•PatrickMoumiet•13m ago•1 comments

I was wrong about dark mode

https://dbushell.com/2026/11/09/dark-mode/
1•BrunoBernardino•21m ago•0 comments

BasicOboe: An easy to use but powerful Google Oboe library

https://github.com/tpkarras/BasicOboe
1•tpkarras•25m ago•1 comments

Mario 64 on the Canon EOS R8

https://www.eoshd.com/news/eoshd-backrom-hack-mario-64-on-the-canon-eos-r8/
1•kakadu•27m ago•0 comments

A C++ Quicksort Faster Than std:sort

https://tiki.li/blog/about_blqsort
3•signa11•29m ago•0 comments

Opus wrote my Japan tour promo video in JavaScript

https://www.youtube.com/shorts/Xo8R3wNLgxQ
1•thomashop•36m ago•0 comments

Address Guard Open-source toolkit to detect crypto address poisoning

https://github.com/globalmpc/rwa-kit-js
1•Usman2261•36m ago•0 comments

ClickHouse Acquires Xata

https://xata.io/blog/xata-is-joining-clickhouse
2•mebcitto•43m ago•0 comments

Design with an Elephant. Review with a Goldfish

https://egm.dev/
1•matthewsinclair•46m ago•0 comments

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

https://strandsagents.com/blog/amazon-saves-millions-replacing-sonnet-with-strands-decider/
69•aloukissas•56m ago•11 comments

Codenotary released AgentMon Live as free, open-source software

https://finance.yahoo.com/technology/ai/articles/codenotary-releases-agentmon-live-free-160000064...
2•noobplus•57m ago•0 comments

Tell HN: Notion AI chat sessions have been exposed via Fireworks AI hack

7•RamblingCTO•57m ago•0 comments

Tinyworlds: Whole Cities, Pocket-Sized

https://tinyworlds.nihey.org/
2•thunderbong•1h ago•0 comments

Mathematicians Are Like Luddites

https://alok.blog/luddite/
4•ilreb•1h ago•0 comments

State of JavaScript 2026 Survey Now Open

https://survey.devographics.com/en-US/survey/state-of-js/2026
2•dfabulich•1h ago•0 comments

The race to secure record-like information for domains

https://alexsci.com/blog/the-race-to-secure-record-like-information-for-domains/
3•meetpateltech•1h ago•0 comments

Show HN: Android and iOS games running offline in the browser

https://phoam.app/demos
2•phoamapp•1h ago•0 comments

gspca

https://www.linuxtv.org/wiki/index.php/Gspca
2•gregsadetsky•1h ago•0 comments

Human Emacs

https://alexschroeder.ch/view/2026-10-31-human-emacs
3•watermelon0•1h ago•0 comments

A sourced dictionary of how engineers pronounce 1,934 developer terms

https://pronounce.renlab.ai/
3•alvinan•1h ago•1 comments

No one can force me to have a secure website [pdf]

https://tom7.org/httpv/httpv.pdf
4•frizlab•1h ago•1 comments

FLEY AI-Voce – a voice AI assistant you but can also control your PC and phone

1•Drfoxi•1h ago•0 comments