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!

Advertising Is Shit Now

https://james.cridland.net/blog/2026/advertising-is-shit-now/
2•1317•3m ago•1 comments

Show HN: Ask the news – Find relevant news faster

https://news.svpn.com/chat
1•svpn•6m ago•0 comments

ASD-STE100: What It Is and What It Has to Do with LLMs

https://kgolubic.com/posts/asd-ste100-and-llms/
1•taubek•6m ago•0 comments

Muse Home Link

https://gadgets.muse.ai/home-link
1•big_toast•6m ago•1 comments

A BGP-Inspired Identity Network for Autonomous AI Agents

https://medium.com/@rodmontiel/uai-a-bgp-inspired-identity-network-for-autonomous-ai-agents-73b89...
1•rodmontiel•8m ago•0 comments

Zoho's ZeptoMail Is Now Cpaas to Incorporate WhatsApp, SMS and Voice

https://www.zoho.com/blog/cpaas/zeptomail-is-now-zoho-cpaas.html
1•rodolphoarruda•8m ago•0 comments

Everyone's Packing Up

https://widdershins.verja.net/everyones-packing-up/
1•speckx•8m ago•0 comments

Two US-bound vessels apparently compromised by hackers

https://www.reuters.com/world/two-us-bound-vessels-apparently-compromised-by-hackers-us-officials...
3•wslh•9m ago•0 comments

Looking for Work

https://github.com/Sovereign-Intel-Founder/sovereignintelfounder
1•Joshua445•10m ago•0 comments

BlueFerry – iPhone's Messages on Linux over Bluetooth

https://blueferry.weirdware.io/
1•smartmic•13m ago•0 comments

CA tech executive arrested for allegedly smuggling $300M in Nvidia chips to CN

https://qz.com/greg-lui-earthmade-nvidia-ai-chips-smuggling-china-100226
3•littlexsparkee•14m ago•0 comments

Show HN: Building a Better Story for Your Brand

1•jarieb•17m ago•1 comments

OpenStax-LLM: tools for OpenStax LLM access

https://github.com/michaelnavazhylau/openstax-llm
1•Mechasparrow•18m ago•0 comments

The Algorithm Still Running Your GPS: Edsger Dijkstra and His Impact on CS

https://nirmalutwani.substack.com/p/the-algorithm-still-running-your
1•nutwani91•19m ago•1 comments

Google's science AI ranks #1 in CDC evaluation

https://blog.google/innovation-and-ai/models-and-research/google-research/google-science-ai-flu-f...
2•acossta•21m ago•0 comments

Show HN: Made an open-source Lego AI generator

https://github.com/anteloc/ldraw-nova
13•antelocnova•21m ago•3 comments

The definitive guide to ClickHouse query optimization

https://clickhouse.com/resources/engineering/clickhouse-query-optimisation-definitive-guide
1•costco•22m ago•0 comments

Build Your Agents.md

https://agentsprofiles.com/
4•ecce_homo•23m ago•1 comments

Show HN: A lean formalization of From Linearity to Borrowing

https://github.com/empath-nirvana/bolo-formalization
1•empath75•24m ago•0 comments

When Your Agent Publishes Your Secrets: An AI Forensics, Containment and Audit

https://simonroses.com/2026/10/when-your-coding-agent-publishes-your-secrets-an-ai-forensics-cont...
1•speckx•26m ago•0 comments

Favorite capybara helping you out without ever leaving your machine

https://github.com/giga-dylan/capy
1•dolanhwang•26m ago•1 comments

GLP-1 diabetes drugs linked to increased risk of hair loss

https://bmjgroup.com/glp-1-diabetes-drugs-linked-to-increased-risk-of-hair-loss/
1•Bluestein•27m ago•0 comments

Show HN: VeriSigil AI – Cryptographic identity and trust network for AI agents

2•VeriSigilAI•28m ago•0 comments

Dual defence betrayal: China reveals case of executive spying for 2 countries

https://www.scmp.com/news/china/politics/article/3365817/dual-defence-betrayal-china-reveals-rare...
1•snarky-comments•29m ago•0 comments

Moorcheh Edge on Arduino UNO Q vs. Ventuno Q: 1536-D Vector Benchmark

https://moorcheh.ai/blog/moorcheh-edge-arduino-uno-q-vs-ventuno-q-1536-benchmark
4•supportm•30m ago•0 comments

Hello, World

https://rockhymas.com/blog/hello-world/
1•rockhymas•32m ago•0 comments

GrapheneOS has fixed the Android 17 QPR1 kernel performance regression

https://discuss.grapheneos.org/d/42511-grapheneos-has-fixed-the-massive-android-17-qpr1-kernel-pe...
36•Cider9986•36m ago•4 comments

Show HN: Cligram – Terminal Flowcharts

https://github.com/isacikgoz/cligram
1•isacikgoz•39m ago•0 comments

InterstellOr's Space Tourism Capsule Makes Progress, Books More Customers

https://www.china-in-space.com/p/interstellors-space-tourism-capsule
1•JPLeRouzic•40m ago•0 comments

Show HN: Portable Kokoro TTS binary with g2p, normalizer, lexicon, and guesser

https://github.com/RobViren/kokoallovero
1•robviren•41m ago•0 comments