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!

Andrew Ng made an open source agent

https://openworker.com/
1•sudo_cowsay•39s ago•0 comments

Claude Code hooks that block find/sed/cat, redirect to native tools

https://github.com/HabibiCodeCH/claude-no-bash-detour
1•habibicode•2m ago•0 comments

Kitboga manipulates AI scam call into hallucination

https://www.youtube.com/watch?v=lk3jCuITwcE
1•platevoltage•2m ago•0 comments

A Master of the Traveling Salesperson Problem Finds His Own Path

https://www.quantamagazine.org/shayan-oveis-gharan-wins-2026-imu-abacus-medal-20260723/
1•pykello•3m ago•0 comments

Police Keep Losing Their Jobs for Using Flock Cameras to Stalk People

https://www.motherjones.com/politics/2026/07/police-losing-jobs-flock-cameras-alprs/
1•baranul•5m ago•0 comments

Are emoji allowed in XMPP addresses?

https://op-co.de/blog/posts/emoji_xmpp_address/
1•fanf2•6m ago•0 comments

Forje Studio – data-driven design and motion, client-side

https://studio.forjelo.com
1•teutrindade•11m ago•0 comments

Uncle Bob: My current strategy is to not read any of the code by my agents

https://twitter.com/unclebobmartin/status/2080257779395154409
2•jameslk•11m ago•0 comments

Audit: Skill library for agentic app audit

https://github.com/metacircu1ar/audit
1•metacircu1ar•11m ago•1 comments

Euro Banknotes Design Proposals

https://surveys.ecb.europa.eu/10b/neweuro/
3•wise_blood•12m ago•0 comments

Rare contagious cancer found in fish from Quebec and U.S. lakes

https://www.cbc.ca/news/science/fish-transmissible-cancer-9.7279045
3•jnord•14m ago•0 comments

ZenFS: Node's fs API in the Browser

https://zenfs.dev/
1•Nars088•15m ago•0 comments

AI-first development: Stories as a source of truth - by toby [video]

https://www.youtube.com/watch?v=1YoP7u_rqgQ
2•puuush•15m ago•1 comments

Show HN: Krypter – simple offline message and file encryption mobile app

1•nobodyshere•16m ago•0 comments

All your coding agents, synced everywhere, free forever

https://www.ade-app.dev/
1•arul28•16m ago•1 comments

The Book Prize Index

https://book-prize-index.vercel.app
2•Luc•18m ago•0 comments

Show HN: Photo of a handwritten alphabet to installable TTF, open source

https://github.com/danilo-znamerovszkij/draw-your-font
1•danilo_z_j•19m ago•0 comments

Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine

https://www.usenix.org/conference/osdi26/presentation/sharma
1•matt_d•21m ago•0 comments

Knowledge Graph Is Making Your Agent Dumber

https://praveenvijayan.substack.com/p/your-knowledge-graph-is-making-your
1•praveenvijayan•22m ago•0 comments

Python built-in functions to know (2019)

https://www.pythonmorsels.com/built-in-functions-in-python/
1•downbad_•22m ago•0 comments

Hive_review: Multi-agent AI code-review loop

https://github.com/metacircu1ar/hive_review
1•metacircu1ar•22m ago•1 comments

Webhound MCP – Deep research with depth control

https://github.com/WebhoundAI/webhound-mcp
1•mfkhalil•24m ago•0 comments

OnePanel – run all your work apps in one desktop workspace

https://onepanel.it/?lang=en
1•evhalon•25m ago•0 comments

Building a transparent high-performance proxy cache for DoorDash services

https://careersatdoordash.com/blog/high-performance-proxy-cache-for-doordash-services/
1•pmg1991•27m ago•0 comments

Stop the NDAA: Congress Is Giving Away America's Sovereignty [video]

https://www.youtube.com/watch?v=K0860p-QK8c
1•baranul•27m ago•0 comments

Worksheet: On Using the Internet Mindfully

https://thecreativeindependent.com/library/worksheet-on-using-the-internet-mindfully/
1•cesarrg•27m ago•0 comments

Topcoat: framework for building fullstack reactive web apps with Rust

https://tokio.rs/blog/2026-07-22-announcing-topcoat
1•praseodym•28m ago•0 comments

It's getting harder to focus every day

https://glyphack.com/attention/
2•peykar•29m ago•0 comments

AI, Rockets, and the Return of Hard Contracts (Part I)

https://noumena.com/essays/the-engine-shop-part-1/
1•handfuloflight•29m ago•0 comments

A coding agent on a VT520 terminal

https://simonklee.dk/it-scrolls-up
1•simonklee•30m ago•0 comments