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!

I got tired of seeing mistake fares on Reddit a day late

https://github.com/010zx00x1/faresnipe
1•01x02111•1m ago•0 comments

Show HN: CodeAlmanac – Self-updating wiki for your coding agent (local, Apache)

https://github.com/AlmanacCode/codealmanac
1•reveriedev•3m ago•0 comments

Fifty-seven self-contained web demos BY Fable in one run

https://elder-plinius.github.io/FABLE-SHOWCASE/
1•smusamashah•4m ago•1 comments

Stacks: Run classic HyperCard stacks on modern macOS without emulation

https://morphing.cloud/hypercard/
1•CharlesW•4m ago•0 comments

What If We Accidentally Outsource the Real Work to AI?

https://www.insidehighered.com/opinion/columns/just-visiting/2026/07/09/ai-scribes-medicine-are-s...
1•speckx•6m ago•0 comments

GPT-5.6 Is Live

https://openai.com/index/gpt-5-6/#
2•akarshhegde18•6m ago•0 comments

Nintendo in a Small Town, 1987

https://dfarq.homeip.net/nintendo-in-a-small-town-1987/
1•TMWNN•7m ago•0 comments

Lobsters Interview with Mitchell Hashimoto

https://alexalejandre.com/programming/interview-with-mitchell-hashimoto/
1•veqq•7m ago•0 comments

New York sues 3M, DuPont, others over 'forever chemicals' in consumer goods

https://www.reuters.com/world/new-york-sues-3m-dupont-others-over-forever-chemicals-consumer-good...
1•onemoresoop•8m ago•0 comments

How should group chats work in decentralized systems?

https://marindedic.com/groups/
2•Realman78•9m ago•0 comments

Show HN: EdgeSpeech, on-device speech-to-speech for React Native

https://github.com/switchboard-sdk/edgespeech
2•jimsrand•9m ago•0 comments

Feds Are Pushing a New Gas Station Chain Selling Cheap Fuel

https://www.thedrive.com/news/feds-are-pushing-a-brand-new-gas-station-chain-selling-strangely-ch...
1•randycupertino•9m ago•0 comments

Bonnie Tyler–80s pop legend known for 'Total Eclipse of the Heart,' dies aged 75

https://www.theguardian.com/music/2026/jul/09/bonnie-tyler-80s-pop-legend-known-for-total-eclipse...
1•bookofjoe•10m ago•0 comments

World’s First Commercial Nuclear-Powered Satellite

https://citylabs.net/first-commercial-nuclear-powered-satellite-aboard-spacex-transporter-17/
1•geox•10m ago•0 comments

DevOps Field Guide: Your Infrastructure Repo Is a Mess

https://www.gruntwork.io/blog/devops-field-guide-your-infrastructure-repo-is-a-mess-heres-how-to-...
2•likwitjunkie•11m ago•0 comments

Tarit – Self-host sandbox cloud and hypervisor for AI agents

https://github.com/instavm/tarit
1•mkagenius•12m ago•0 comments

Top research universities shrink doctoral programs amid federal funding decline

https://www.nytimes.com/2026/07/06/us/research-universities-fewer-phds-science.html
1•BISH-BASH-BOSH•12m ago•0 comments

Starbucks taps AI to cut reliance on Microsoft, IBM software

https://fortune.com/2026/07/09/starbucks-to-use-ai-to-replace-microsoft-ibm-software/
1•Brajeshwar•14m ago•0 comments

Show HN: Hyper – distributed Firecracker microVM orchestrator written in Elixir

https://github.com/harmont-dev/hyper
2•suis_siva•14m ago•0 comments

Should we spray burn scars with glyphosate? Californians reckon w/ grim reality

https://www.latimes.com/environment/story/2026-07-09/should-we-spray-burn-scars-with-glyphosate-c...
1•littlexsparkee•17m ago•0 comments

The Price of Palantir's Politics

https://www.ft.com/content/21038b20-646e-4773-a473-110c2d62ab15
2•helsinkiandrew•18m ago•0 comments

OpenCode MCP Integration Guide

https://www.arcade.dev/blog/opencode-mcp-integration/
1•manveerc•18m ago•0 comments

Divide and Compact: Segment-Oriented Compaction in SlateDB

https://slatedb.io/blog/segment-oriented-compaction/
4•agavra•19m ago•0 comments

Worker shortage endangers US chip production plans

https://www.taipeitimes.com/News/biz/archives/2026/07/09/2003860430
1•craigjb•19m ago•0 comments

Postgres locks do not scale

https://www.recall.ai/blog/postgres-locks-do-not-scale
3•timetoogo•19m ago•0 comments

ANSI X9.150-2026 Payment QR – Merchant-Presented QR Codes for Secure Payment

https://webstore.ansi.org/standards/ascx9/ansix91502026
1•petethomas•20m ago•0 comments

GPT-5.6

https://openai.com/index/gpt-5-6/
175•logickkk1•20m ago•91 comments

Using GPT-5.6

https://developers.openai.com/api/docs/guides/latest-model
2•minimaxir•20m ago•0 comments

The Download: a nuclear landmark, and China eyes Nvidia chips

https://www.technologyreview.com/2026/07/09/1140283/the-download-nuclear-power-milestone-nvidia-c...
1•joozio•20m ago•0 comments

ChatGPT Work

https://openai.com/index/chatgpt-for-your-most-ambitious-work/
31•Tiberium•21m ago•5 comments