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!

SimpleDMARC – DMARC monitoring that turns the raw XML reports into plain English

https://simpledmarc.com/
1•maniargaurav•37s ago•0 comments

Show HN: Gitwig – Mouse-drivable Git TUI and multi-repo dashboard in Rust

https://gitwig.dev/
1•tareqmy•2m ago•0 comments

China memory chipmaker CXMT's shares soar in blockbuster listing

https://www.euronews.com/business/2026/07/27/china-memory-chipmaker-cxmts-shares-soar-in-blockbus...
1•amelius•3m ago•0 comments

ZeroEntropy Joins Notion

https://zeroentropy.dev/articles/zeroentropy-is-joining-notion/
1•kisamoto•4m ago•0 comments

The Indie Hacker Economy Is a Pyramid Scheme

https://medium.com/westenberg/the-indie-hacker-economy-is-a-pyramid-scheme-d06cb5789648
2•latexr•8m ago•0 comments

China State Media Says Support for Open AI Models Has Limits

https://www.bloomberg.com/news/articles/2026-07-27/china-state-media-says-support-for-open-ai-mod...
1•maxloh•14m ago•1 comments

Warden – run a fleet of coding agents without losing your mind

https://github.com/srjn45/warden
1•srjn45•15m ago•0 comments

Shake: Stimulating Haptics Add-In for Kinematic Enhancement

https://github.com/sideline-int/SHAKE
1•wertyk•17m ago•0 comments

Git Without a Forge

https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/git-no-forge/
1•olexsmir•19m ago•0 comments

How Unix spell ran in 64 kB of RAM

https://blog.codingconfessions.com/p/how-unix-spell-ran-in-64kb-ram
2•donw•20m ago•0 comments

Opus Cost = Minimum Wage in South Africa

2•bridgettegraham•23m ago•0 comments

Show HN: We built an MCP server for document generation

https://docuqueue.com/#mcp
1•dvcoolarun•27m ago•0 comments

Why does everything feel so joyless?

https://www.theguardian.com/us-news/ng-interactive/2026/jul/26/age-of-decadence-pleasure-ai
2•mattjhall•31m ago•0 comments

Ask HN: Where do those LLM-generated outreach emails come from?

2•nicbou•33m ago•0 comments

Modern email can be built from borrowed parts

https://en.andros.dev/blog/d7ed8b07/modern-email-can-be-built-from-borrowed-parts/
2•andros•36m ago•0 comments

Would you choose £50k over the chance of £1M?

https://yougov.com/en-gb/daily-results/20260722-c0b92-3
2•yzydserd•39m ago•1 comments

Elevated errors on Claude Opus 5

https://status.claude.com/incidents/lhqp09kxq7pb
3•flyaway123•43m ago•1 comments

Sam Altman says we are in the singularity

https://www.businessinsider.com/sam-altman-openai-the-singularity-agi-prediction-anthropic-nvidia...
1•ColinEberhardt•44m ago•2 comments

Show HN: adCasa OS – AI marketing workspace built with Bayesian attribution

https://adcasa.io/
1•adcasa•45m ago•0 comments

Nvidia in talks with OpenAI to guarantee $250B financing for data center

https://www.reuters.com/business/media-telecom/nvidia-talks-with-openai-guarantee-250-billion-fin...
1•01-_-•47m ago•0 comments

Zeiss expands German site that caps ASML's EUV scanner output

https://www.tomshardware.com/tech-industry/zeiss-expands-german-site-that-caps-asmls-euv-scanner-...
1•01-_-•48m ago•0 comments

Doom Running on a Regex Engine

https://4rh1t3ct0r7.github.io/doom-regex/
1•abareplace•50m ago•0 comments

Meta launched a new AI optimism ad set to a song about human extinction

https://techcrunch.com/2026/07/23/meta-launched-a-new-ai-optimism-ad-set-to-a-song-about-human-ex...
10•robin_reala•54m ago•0 comments

Do Agent Benchmarks Measure Capability? Protocol Validity in the Age of Agentic

https://arxiv.org/abs/2607.22368
1•sbulaev•56m ago•0 comments

I'm running the ICFP programming contest

https://eieio.games/blog/im-running-the-icfp-programming-contest/
1•birdculture•57m ago•0 comments

The AI bioweapon risk isn't jailbreaks

https://point.free/blog/the-ai-bioweapon-risk-isnt-jailbreaks/
1•cafkafk•58m ago•1 comments

Keigo Higashino, author of The Devotion of Suspect X, dies at 68

https://www.oricon.co.jp/news/2470322/
4•linzhangrun•1h ago•0 comments

Even in Utah Families Are Getting Smaller

https://www.nytimes.com/2026/07/25/us/politics/utah-birth-rate-fertility-decline.html
2•geox•1h ago•0 comments

Show HN: A browser-based vector animation engine rendering animated objects

https://thorvg-janitor.vercel.app/
4•hermet•1h ago•2 comments

Show HN: I made a convenient and fast file sharing service

https://coldfiles.dev/
2•bunchy7s•1h ago•5 comments