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!

Microsoft's new DocumentDB rethinks NoSQL on PostgreSQL

https://www.infoworld.com/article/3812630/microsofts-new-documentdb-rethinks-nosql-on-postgresql....
1•amai•28s ago•0 comments

CoreWeave ARIA: AI Research and Iteration Agent

https://wandb.ai/wandb/aria/reports/Introducing-CoreWeave-ARIA-AI-Research-and-Iteration-Agent--V...
1•OnlineInference•34s ago•0 comments

Show HN: Wealtii – Digital Asset index funds with on-chain 1:1 backed vaults

https://wealtii.com/funds
2•zayd7861•3m ago•0 comments

macOS California Camino

https://basicappleguy.com/basicappleblog/macos-california-adventure
1•herbertl•3m ago•0 comments

PostgreSQL Jsonb vs. MongoDB BSON: The Real Architectural Tradeoffs

https://visualeaf.com/blog/postgresql-jsonb-vs-mongodb-bson-architectural-tradeoffs/
1•amai•5m ago•0 comments

Show HN: I built Exfault, agentic mobile app pentesting tool

https://www.exfault.com/
2•shubh_sidhu•7m ago•0 comments

Swarm intelligence without degradation using two Qwen models

1•kofdai•7m ago•0 comments

Creating a Personalised Bin Calendar

https://alexwlchan.net/2026/bin-calendar/
1•surprisetalk•9m ago•0 comments

Toto: From Toilets to E-Chucks [video]

https://www.youtube.com/watch?v=CIB49e_r1OI
1•lyall•10m ago•0 comments

Show HN: Interactive Calculators Hub

2•StizzurpXDD•11m ago•0 comments

SteamOS now offered with new gaming prebuilt PCs

https://videocardz.com/newz/steamos-now-offered-with-new-gaming-prebuilt-pcs
2•LorenDB•13m ago•0 comments

Browser CLI for Agents

https://github.com/detrin/brow
3•kekqqq•14m ago•0 comments

A playbook to rank #1 of the day on ProductHunt

https://m-ric.com/blog/how-to-get-number-1-on-producthunt/
1•aubanel•15m ago•0 comments

Teaching AI how people work is fraught with problems

https://www.economist.com/business/2026/06/25/teaching-ai-how-people-work-is-fraught-with-problems
1•andsoitis•15m ago•1 comments

MD5 Implemented in Bash

https://www.youtube.com/watch?v=VDQmu6KzDvU
2•HeadlessChild•16m ago•2 comments

Show HN: ZUSE – 69x causal compression of a period-15 CA oscillator

https://github.com/conchaestradamiguelangel-droid/zuse-automat-agent
2•conchaestrada•17m ago•0 comments

Metis Learning – Personal Education Platform

https://metis-learn.io/
2•0xfinney•20m ago•0 comments

DRAM Crisis Until 2028

https://www.techpowerup.com/350343/micron-predicts-dram-crisis-until-at-least-2028
3•mr_fantastic•20m ago•0 comments

CaseHero – their call is recorded, yours isn't

https://apps.apple.com/us/app/casehero/id6757936177
1•root_theory•21m ago•0 comments

Did an experienced alpinist leave his girlfriend to die atop a mountain?

https://www.newyorker.com/magazine/2026/07/06/did-a-climber-leave-his-girlfriend-to-die-at-the-to...
2•bookofjoe•21m ago•2 comments

Is closed source even a moat anymore?

https://www.makerchecker.ai/insights/open-source-is-in-again/
1•smashini•22m ago•0 comments

Atrial Fibrillation

https://en.wikipedia.org/wiki/Atrial_fibrillation
1•efavdb•23m ago•0 comments

Zig and the Zig Guy

https://rosswintle.uk/2026/06/zig-and-the-zig-guy/
2•surprisetalk•24m ago•0 comments

GameBoy Emulator on ESP32 and eInk (M5Stack PaperS3) [video]

https://www.youtube.com/watch?v=oPbOK90aJEo
2•HelloUsername•25m ago•0 comments

Instagram is incorporating users' photos in ads for Mera Glasses

https://twitter.com/i/status/2071277885646868536
17•notRobot•28m ago•0 comments

Universal NT Installer: A Lightweight Linux-Based Installer for Windows NT

https://github.com/ages2001/Universal-NT-Installer
1•LorenDB•28m ago•0 comments

Why Spreading Yourself Thin Feels Like Winning

https://alifeengineered.substack.com/p/why-spreading-yourself-thin-feels
2•speckx•29m ago•0 comments

Reflections on 1,000 Days of Math

https://twitter.com/gabemays/status/2071441859709145563
2•gmays•29m ago•0 comments

Show HN: Create agents that grow to fulfill their purpose

https://github.com/opsyhq/wolli
3•saba-ch•29m ago•0 comments

France records around 1k excess deaths in heatwave

https://www.lemonde.fr/en/france/article/2026/06/28/france-records-around-1-000-excess-deaths-in-...
3•rawgabbit•30m ago•0 comments