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!

DoorDash's $131.5M Settlement with the City of New York

https://about.doordash.com/en-us/news/dcwp
1•sizzle•2m ago•0 comments

'Rex Jr.' Could Be Most Important T. Rex Ever Discovered

https://cowboystatedaily.com/2026/09/19/rex-junior-found-on-newcastle-ranch-could-be-most-importa...
1•in-silico•2m ago•0 comments

TSA is rolling out a new scanner – it could be a headache for carry-on travelers

https://www.independent.co.uk/travel/news-and-advice/tsa-new-scanner-carry-on-bags-b3055280.html
1•mikhael•4m ago•0 comments

Contrastive Language Models

https://contrastive-lm.notion.site/
2•erichocean•10m ago•0 comments

Trump White House Press Ban Matches 1933 Nazi Law

https://www.flyingpenguin.com/trump-white-house-press-ban-matches-1933-nazi-law/
1•speckx•14m ago•0 comments

Universities Must Reinvent Themselves for the Intelligent Age

https://time.com/article/2026/04/13/universities-must-reinvent-themselves-for-the-intelligent-age/
2•the-mitr•15m ago•0 comments

Nori LLM: Achieving Over 1M tok / s

https://noriagentic.com/nori-llm.html
1•theahura•20m ago•0 comments

An Undercover Google Analyst Infiltrated a Notorious Supply-Chain Hacking Gang

https://www.wired.com/story/an-undercover-google-analyst-infiltrated-a-notorious-supply-chain-hac...
2•chris_overseas•25m ago•0 comments

A 13-Year-Old Has Been Cured of DIPG, the Deadliest Childhood Brain Cancer

https://www.imapac.com/news-updates/world-first-a-13-year-old-has-been-cured-of-dipg-the-deadlies...
4•thunderbong•28m ago•0 comments

ThinkingCap-Qwen3.8-27B: the same answers, 37% less thinking

https://bottlecapai.com/post/thinkingcap-qwen3-8-27b/
2•jackbravo•29m ago•0 comments

China's Approach to AI

https://madeinchinajournal.com/2026/09/23/chinas-approach-to-ai-infrastructural-statecraft-manage...
3•paimapi•30m ago•0 comments

Show HN: Tokenhush – keeps your secrets out of what Claude Code sends

https://github.com/fregie/tokenhush
2•fregie•31m ago•0 comments

16GB iPod Nano 3G Upgrade

https://tuckerosman.com/projects/16gb-ipod-nano
2•Ivoah•32m ago•0 comments

OpenAI's Next Marketing Stunt

https://www.youtube.com/watch?v=NshlVxYnjFo
7•adithyassekhar•34m ago•0 comments

Show HN: How long do I need to work at my salary before I can coast, or retire?

https://github.com/karmanyaahm/budget-tools/tree/main/fire
10•karmanyaahm•37m ago•2 comments

Ask HN: I just talked to an AI-obsessed client, and I need a shower afterwards

3•platevoltage•42m ago•1 comments

Moggi, a statically typed, purely functional language on JVM, .NET and PHP

https://github.com/moggi-lang/moggi/
1•prolic•48m ago•1 comments

Free 3D CAD designing/modeling software

https://supra.silviaai.dev
1•Seeper•54m ago•0 comments

Chinese authorities reportedly in possession of F-35 components in Hong Kong

https://www.cnbc.com/2026/09/24/chinaf-f35-components-hong-kong.html
4•shinryudbz•58m ago•0 comments

Show HN: Built-in APM for vibe-coded apps so your AI can fix them

https://oncroft.net/blog/monitoring-built-in-for-every-croft-app/
1•richchetwynd•59m ago•0 comments

Muse Charm

https://www.meta.com/in/muse-charm/
3•kamaal•1h ago•3 comments

The AI Build-Out Is Becoming the Biggest Economic Bet in U.S. History

https://www.wsj.com/economy/the-ai-build-out-is-becoming-the-biggest-economic-bet-in-u-s-history-...
4•AnodicElegy•1h ago•3 comments

What the Labs Kept Secret: The German Wiki and RubyGems Hacks [video]

https://www.youtube.com/watch?v=giTmBaNGaHw
1•vismit2000•1h ago•0 comments

Sync Alexa Lists to Apple Reminders

https://github.com/ow/Alexa-apple-reminders
1•owenwil•1h ago•1 comments

Cursor launches bots that watch code from pull request to production

https://cursor.com/blog/rollouts-and-security-reviewer
3•fourfire•1h ago•0 comments

Two-dimensional billiards are Turing complete

https://www.crm.cat/a-single-ball-on-a-fixed-table-can-compute-eva-miranda-and-isaac-ramos-prove-...
1•Anon84•1h ago•0 comments

Show HN: I made Jev moderate Discord servers

https://soter.frolleks.site
1•frolleks•1h ago•1 comments

PersistentWindows – persists window positions on some events for Windows

https://github.com/kangyu-california/PersistentWindows
2•xgdgsc•1h ago•1 comments

We Run Kaizen on AI

https://kznconsulting.com/work/how-we-run-kaizen
1•atonse•1h ago•0 comments

Show HN: SocatUI A task manager for Socat tunnels

https://github.com/esurharun/socatui/
1•marcusfrex•1h ago•0 comments