frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•6mo ago

Comments

zljdanceholic•6mo 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!

Cloud Fair Sucks

1•QuantumGod•35s ago•0 comments

AI Is an English Compiler

https://hengar.pika.page/posts/ai-is-an-english-compiler
1•hengar•2m ago•0 comments

EMMI: Where Experimentation Meets Machine Intelligence

https://www.terraytx.com/insights/introducing-emmi-where-experimentation-meets-machine-intelligence
1•ashvardanian•3m ago•0 comments

3.5B Accounts: Complete WhatsApp Directory Retrieved and Evaluated

https://www.heise.de/en/news/3-5-Billion-Accounts-Complete-WhatsApp-Directory-Retrieved-and-Evalu...
2•doener•4m ago•0 comments

Trump Administration Releases Amelia Earhart Files

https://www.nytimes.com/2025/11/17/us/politics/trump-amelia-earhart-flight-records.html
1•whack•4m ago•0 comments

LLM-Driven Active Listwise Tournaments for Large Universe Portfolio Selection

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5764903
1•kyuksel•4m ago•0 comments

Cloudflare is working again for my servers (US East)

1•potatowaffle•7m ago•0 comments

Earth's earliest life 3.3B years ago revealed by faint biosignatures

https://phys.org/news/2025-11-earth-earliest-life-billion-years.html
1•Brajeshwar•9m ago•0 comments

Gulf separating Africa and Asia is still pulling apart – 5M years after

https://www.livescience.com/planet-earth/geology/a-gulf-separating-africa-and-asia-is-still-pulli...
1•Brajeshwar•9m ago•0 comments

'Sophisticated' Bronze Age City Unearthed in Kazakhstan

https://www.livescience.com/archaeology/sophisticated-bronze-age-city-unearthed-in-kazakhstan-tra...
2•Brajeshwar•10m ago•0 comments

Latest Servo release hints at a real Rust alternative to Chromium

https://www.theregister.com/2025/11/18/servo_002_arrives/
2•beardyw•11m ago•0 comments

TUI based typing test application inspired by MonkeyType

https://github.com/kraanzu/smassh
1•christoph-heiss•13m ago•0 comments

Ask HN: Is Python's weak typing a liability when generating code with AI?

1•ashed96•13m ago•0 comments

Monitoring and Analysis of Land Subsidence Induced by Social Aggregation Effects

https://www.mdpi.com/2076-3417/15/21/11492
1•PaulHoule•13m ago•0 comments

Pyrefly Is Now in Beta

https://pyrefly.org/blog/pyrefly-beta/
1•javabster•14m ago•0 comments

Autonomous driving in five new cities

https://waymo.com/blog/2025/11/safe-routine-ready-autonomous-driving-in-new-cities
2•ra7•16m ago•0 comments

BuildList: Personal Online Factory

https://buildlist.org/
1•gessha•16m ago•1 comments

Awesome-Cyber-Monday-2025

https://github.com/punkpeye/awesome-cyber-monday-2025
1•punkpeye•17m ago•0 comments

Rust on the Moon? Far-side dirt says yes

https://www.theregister.com/2025/11/18/rust_on_moon/
1•beardyw•18m ago•0 comments

Kontak Resmi Customer Support CS Pluang

1•Paolohaiti1•19m ago•0 comments

Ask HN: Reasonable ways to avoid single points of failure in web services?

1•nnyms1•21m ago•0 comments

LeetCode Is Down

https://leetcode.com
1•koinedad•21m ago•0 comments

Short Little Difficult Books

https://countercraft.substack.com/p/short-little-difficult-books
9•crescit_eundo•23m ago•0 comments

The Social Cost of Being a Morning Person

https://www.theatlantic.com/family/2025/11/morning-routine-productivity-culture-hidden-cost/684965/
2•pseudolus•23m ago•1 comments

From prompt to Excel custom function in 30 seconds

https://alexjreid.dev/posts/xllify-claude-code-agent/
1•alexjreid•25m ago•0 comments

Hubungi Pluang

https://news.ycombinator.com/from?site=bbc.com
1•Winterkill•26m ago•1 comments

Why Don't Jet Engines Melt? [video]

https://www.youtube.com/watch?v=QtxVdC7pBQM
1•lisper•26m ago•0 comments

Why Software Development Fell to AI First

https://davegriffith.substack.com/p/why-software-development-fell-to
3•dxs•27m ago•1 comments

6 years after too much crypto

https://bfswa.substack.com/p/6-years-after-too-much-crypto
2•pingoo101010•29m ago•0 comments

Cloudflare Is Down and I Can't Log into DigitalOcean. Anyone Else?

1•alexk74•31m ago•3 comments