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!

Israel is building a miles-long barrier in Gaza, entrenching its division

https://apnews.com/article/israel-gaza-yellow-line-barrier-ceasefire-941ed80f6d4398ce88916f6b0875...
1•hebelehubele•2m ago•0 comments

Show HN: A new kind of FPS aim trainer

https://openaim.pramit.gg/
2•pmazumder•4m ago•0 comments

Trust but verify doesn't work when verification of AI processes is difficult

https://www.theregister.com/ai-and-ml/2026/07/21/ais-cheatin-heart-will-make-you-weep/5275784
1•Gaishan•5m ago•0 comments

The secret Trump administration battle to fight Chinese AI

https://www.axios.com/2026/07/20/ai-us-china-open-source-kimi
1•hentrep•5m ago•0 comments

Ukraine's drone strikes put pressure on Russian economy

https://www.politico.eu/article/ukraine-drone-strikes-russian-economy-pressure/
1•Gaishan•6m ago•0 comments

Librrd Playground

https://systemf.epfl.ch/etc/librrd/
1•E-Reverance•13m ago•0 comments

DeepSeek Search Down

https://status.deepseek.com/incidents/6741259174287
1•Linserin•13m ago•0 comments

Show HN: JavaScript framework where code order matches the UI sequence

https://github.com/livetrails/targetjs
1•ahmadwasfi•13m ago•0 comments

Macaron-V1

https://macaron.im/mindlab/research/introducing-macaron-v1
1•ilreb•18m ago•0 comments

NVIDIA Synthetic Video Detector

https://build.nvidia.com/nvidia/synthetic-video-detector
1•jonbaer•19m ago•0 comments

China's 'AI for All' Offensive Defies US Containment Playbook

https://www.bloomberg.com/news/articles/2026-07-22/china-s-ai-for-all-offensive-defies-us-contain...
2•thm•22m ago•0 comments

CinematicBench, a reproducible benchmark for scroll craft

https://github.com/MustBeSimo/cinematic-scroll-skill
2•mustbesimo•24m ago•0 comments

'Everything I know about evil I learned in that small town': John Carpenter

https://www.theguardian.com/lifeandstyle/2026/jul/20/everything-i-know-about-evil-i-learned-in-th...
2•Michelangelo11•25m ago•0 comments

Samsung in talks to invest in Mistral at €20B valuation

https://www.ft.com/content/67a5d255-c6e9-4269-b8a0-3105db69c1ec
3•petethomas•25m ago•0 comments

Original Apollo 11 Guidance Computer source code for command and lunar modules

https://github.com/chrislgarry/Apollo-11
8•noteness•26m ago•2 comments

App vs. Website: Why Apps Feel Smoother Than Sites

https://lazerg.uz/en/blog/ilova-va-sayt-tezlik-farqi
2•lazerg•27m ago•0 comments

Human-Centered Change and Innovation

https://bradenkelley.com/2026/06/mechanistic-interpretability-ai-trust/
2•mahirsaid•27m ago•0 comments

News Corp accuses search engine Brave of AI copyright infringement

https://www.semafor.com/article/07/21/2026/newscorp-accuses-search-engine-brave-of-ai-copyright-i...
2•thm•35m ago•0 comments

Study: Digital media may reshape people's willingness to invest cognitive effort

https://cs.ut.ee/en/news/digital-media-may-reshape-peoples-willingness-invest-cognitive-effort
2•giuliomagnifico•43m ago•0 comments

How Anthropic runs large-scale code migrations with Claude Code

https://twitter.com/ClaudeDevs/status/2079654423828304282
3•pretext•44m ago•1 comments

India's Cockroach movement protesters show no sign of backing down

https://www.theguardian.com/world/2026/jul/21/india-cockroach-movement-protesters-delhi
3•akbarnama•48m ago•0 comments

Show HN: Public-safe skin packs for the Codex desktop app

https://codex-theme-gallery.howardhua.chatgpt.site/codex-skin-pack-installer
2•howardV•51m ago•0 comments

LanguageTool Joins Learneo

https://forum.languagetool.org/t/languagetool-joins-learneo/8865
2•Evapont•52m ago•0 comments

Central Valley farmers reluctantly turn to solar as water supplies dry up

https://www.latimes.com/environment/story/2026-07-20/as-water-restrictions-hit-farmers-solar-is-m...
3•littlexsparkee•53m ago•2 comments

Terry Tao's ChatGPT Session about the Jacobian Conjecture

https://chatgpt.com/share/6a5fdc7a-d6f8-83e8-bbea-8deb42cfed56
3•porridgeraisin•55m ago•0 comments

Airglow browser lets users modify YouTube, Gmail and Spotify in real time

https://runtimewire.com/article/airglow-browser-lets-users-modify-youtube-gmail-and-spotify-in-re...
6•ryanmerket•55m ago•0 comments

AppRelay

https://apprelay.io/
2•wrightscs•55m ago•0 comments

State of Software Architecture Survey

https://www.reddit.com/r/softwarearchitecture/s/QBTWdrwmkV
2•asdfdelta•58m ago•0 comments

Show HN: VectorArtGen – Generate editable SVG vector art from text prompts

https://vectorartgen.com/
2•chynnahe•58m ago•0 comments

Video Demo: AI Employee Scheduling

https://www.youtube.com/watch?v=e9KqwB56vBI
2•dethstrobe•1h ago•0 comments