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!

European Commission: 'Guidance to Google for AI Interoperability '

https://daringfireball.net/2026/07/ec_google_guidance_android_ai_and_search_sharing
1•rgovostes•14s ago•0 comments

Earth-Like LHS 1140B May Feature the First Atmosphere Found on Exoplanet

https://hackaday.com/2026/07/20/earth-like-lhs-1140b-may-feature-the-first-atmosphere-found-on-ex...
1•jamesblonde•5m ago•0 comments

MemoHood and MemoBase – local memory and knowledge base for AI agents

https://github.com/mxskorohood-cmd/memobase
1•maxskorohood•6m ago•0 comments

Four-hour fundraising meeting with DeepSeek founder Liang Wenfeng

https://old.reddit.com/r/DeepSeek/comments/1v41q73/fourhour_fundraising_meeting_with_deepseek/
1•chewz•8m ago•0 comments

Missing required arguments in shell scripts? Use the colon

https://refp.se/articles/your-shell-and-the-magic-colon
1•ingve•12m ago•0 comments

Extreme SIMD: Optimized Collision Detection in Titanfall (2018) [video]

https://www.youtube.com/watch?v=6BIfqfC1i7U
1•xeonmc•14m ago•0 comments

How macOS Summarize Works (Reverse-Engineered with Kimi K3)

https://github.com/fenxer/macos-summarize-internals
1•haxfenx•14m ago•0 comments

Show HN: AI agents that go from naming your startup to running its marketing

https://www.brandbrahma.com/
1•BrandB•16m ago•0 comments

Gerrymandle

https://gerrymandle.com/
1•enjoyyourlife•17m ago•0 comments

AI Is the Ultimate Leaky Abstraction

https://www.jonathanbeard.io/blog/2026/06/20/ai-the-ultimate-leaky-abstraction.html
2•nalinidash•19m ago•0 comments

Review of my Open AI build week feedback please

https://devpost.com/software/grantscout-app
1•OOvsuOO•24m ago•1 comments

I solved 6 open Erdős problems in 5 days, using OpenAI GPT-5.6 Sol

https://twitter.com/Qiaoqiao2001/status/2080003441821163958
3•akalin•27m ago•1 comments

Postgres in Rust: three dead ends before we passed 100% of the regression suite

https://malisper.me/postgres-in-rust-regression-suite/
2•michaelssilver•35m ago•0 comments

Show HN: Let Claude/ChatGPT deploy your sites

https://mcp.so/servers/nippy
1•Jamie452•37m ago•0 comments

I built an AI tool that turns a product URL into a video ad

1•Ugcad•38m ago•1 comments

The Art of PostgreSQL

https://theartofpostgresql.com/
1•ahamez•41m ago•1 comments

Git Koans

https://stevelosh.com/blog/2013/04/git-koans/
2•janalsncm•46m ago•1 comments

Show HN: NearBye – macOS locks itself when your iPhone leaves the room

https://nearbye.gege.mn/
1•sadespresso•49m ago•0 comments

Tesla still has no real plan for Hardware 3 owners promised FSD

https://electrek.co/2026/07/22/tesla-hardware-3-fsd-no-plan-musk-earnings-call/
2•breve•51m ago•0 comments

Is your programming language unreasonable? (2015)

https://fsharpforfunandprofit.com/posts/is-your-language-unreasonable/
1•tosh•52m ago•1 comments

Show HN: A satellite control room from 100% open data, self-hosted in Europe

https://overwatch.confinia.io
2•clement_igonet•54m ago•0 comments

Cruller: Bun's Zig Runtime, Continued on Zig 0.16

https://ziggit.dev/t/cruller-buns-zig-runtime-continued-on-zig-0-16/16734
3•Erenay09•56m ago•0 comments

Google burning through cash with spiralling AI costs

https://www.bbc.com/news/articles/c235n47g8g8o
3•geox•59m ago•0 comments

Show HN: Northstar Browser

4•roschdal•1h ago•0 comments

UAE WPS Payroll Guide

https://adilrashidlone.substack.com/p/the-one-question-that-actually-tells
1•digitaldaddyme•1h ago•0 comments

French President Macron backs effort to ban kids under 15 from social media

https://fortune.com/2026/07/20/french-president-social-media-ban-lawmakers/
11•1vuio0pswjnm7•1h ago•1 comments

July 23 1985, Commodore introduced its Amiga 1000: 10 years ahead of its time

https://dfarq.homeip.net/amiga-1000-ten-years-ahead-of-its-time/
6•giuliomagnifico•1h ago•2 comments

The High Ponytail That Made Lydia Corbett Picasso's Muse

https://www.wsj.com/real-estate/lydia-corbett-picasso-muse-37f2e088
1•petethomas•1h ago•0 comments

The Computer, De-Invented

https://daylightcomputer.com
2•signa11•1h ago•0 comments

Calm Technologies That Excite Me

https://abhi.now/blog/calm-technologies/
2•signa11•1h ago•0 comments