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!

Bringing Swift to the Apple ][

https://yeokhengmeng.com/2026/06/swift-on-apple-ii/
1•LucidLynx•3m ago•0 comments

Stanford's Fraud Pipeline [video]

https://www.youtube.com/watch?v=57-OZSXGcxA
1•onemoresoop•4m ago•0 comments

I fed the people building the metaverse

https://yeastconfections.substack.com/p/i-fed-the-people-building-the-metaverse
1•faldor20•10m ago•1 comments

Show HN: Playable City Intelligence

https://golb.fun/
1•nih567•11m ago•0 comments

OXWM – A dynamic window manager written in Zig

https://github.com/tonybanters/oxwm
1•modinfo•11m ago•0 comments

Real-world impact of AI adoption. "Acceleration whiplash"

https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways
1•ARayOutOfBounds•12m ago•0 comments

Mad Fucking Witches

https://www.mfw.org.au/
6•Alien1Being•13m ago•1 comments

W Social, Fictional Metrics and the Beauty of Open Data

https://blog.elenarossini.com/w-social-fictional-metrics-and-the-beauty-of-open-data/
1•nemoniac•13m ago•0 comments

New EV-makers keep appearing in China

https://www.economist.com/business/2026/06/24/strange-new-ev-makers-keep-appearing-in-china
2•edward•15m ago•0 comments

Show HN: iNaturalist Bingo

https://kylenessen.github.io/iNaturalist-Bingo-App/
1•kylenessen•15m ago•0 comments

Aura Max Your Startup

https://gtmgame.ai/
1•Jaredwk•16m ago•1 comments

Show HN: Annalium – a world-history map and timeline in the browser

https://annalium.com
1•i18nagentai•18m ago•0 comments

ROCm

https://en.wikipedia.org/wiki/ROCm
1•tosh•20m ago•0 comments

I cut GTA Online loading times by 70% (2021)

https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/
1•downbad_•20m ago•0 comments

How to Destroy the Earth (2003)

https://qntm.org/destroy
2•downbad_•21m ago•0 comments

Pesticide exposure may relate to colorectal cancer in younger adults

https://www.medicalnewstoday.com/articles/pesticide-exposure-linked-colorectal-cancer-younger-adults
1•akyuu•22m ago•0 comments

Aisle Discovers 6 New CVEs in Curl, Including the Oldest Issue Ever Reported

https://aisle.com/blog/aisle-discovers-6-new-cves-in-curl-including-the-oldest-issue-ever-reported
1•ragebol•22m ago•0 comments

Local AI orchestrator with computer and browser access

https://github.com/shreyasks094/Zeus
1•blackhawk094•28m ago•1 comments

Trailing Dots Are the Worst

https://daniel.haxx.se/blog/2026/06/25/trailing-dots-are-the-worst/
2•TangerineDream•28m ago•1 comments

LLMs amplify code quality, they don't improve it

1•c99e•29m ago•2 comments

These are real, actual slides from a SoftBank presentation

https://discuss.systems/@dev/116807460725864716
3•robin_reala•31m ago•1 comments

Japan defense forces used USB drives with China-linked virus

https://asia.nikkei.com/spotlight/cybersecurity/japan-defense-forces-used-usb-drives-with-china-l...
2•0in•31m ago•0 comments

Show HN: Mute non-ENG Mastodon posts and RSS GitHub wall (browser automation)

https://taskbot.app
1•pancsta•33m ago•0 comments

Cursor auto-review vs. YOLO – picking the middle safety tier

https://outofcontext.dev/blog/cursor-auto-review-vs-yolo/
1•leianixcheese•34m ago•0 comments

We found a bug in the hyper HTTP library

https://blog.cloudflare.com/hyper-bug/
2•Pop_-•35m ago•0 comments

OpenAI and Broadcom announce chip designed for LLM inference at scale

https://www.techsentiments.com/article/2026/06/24/openai-and-broadcom-announce-chip-designed-for-...
1•rajsuper123•37m ago•0 comments

Ask HN: What's your favorite AI tool for front end design?

2•AlanAAG•43m ago•0 comments

Silicon Valley has much to learn from the spreadsheet jockeys it despises

https://economist.com/business/2026/06/24/silicon-valley-has-much-to-learn-from-the-spreadsheet-j...
1•wiseowise•44m ago•0 comments

Formula for how cold outreach works

1•shoman3003•45m ago•1 comments

The Monastery of Nahal – An AI Cyberchurch

https://nahal.church/
1•ChilledTonic•46m ago•0 comments