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!

GLP-1s and their unknown impacts on human creativity

https://hereisyourbrain.substack.com/p/should-we-all-take-glp1
1•prdgl_daughter•43s ago•0 comments

Faster floating point math with Rust's new API

https://pythonspeed.com/articles/faster-float-math-rust/
1•birdculture•45s ago•0 comments

Don't Take the Black Pill (Text Adaptation)

https://andrewkelley.me/post/dont-take-black-pill.html
1•gabrielgio•1m ago•0 comments

Octane – React's programming model, compiled

https://octanejs.dev
2•nnx•4m ago•0 comments

Can Animals Be Right- or Left-Pawed?

https://www.discovermagazine.com/the-animal-kingdom-is-full-of-righties-and-lefties-42164
1•thunderbong•5m ago•0 comments

Travel

https://www.google.com/
1•BrentLakin•5m ago•0 comments

How to Switch from Windows to Linux

https://sprune.com/blog/how-to-switch-from-windows-to-linux/
1•nreece•7m ago•0 comments

Show HN: Daily Math Puzzle

https://dozenal.game
1•sarreph•10m ago•0 comments

Police Surveillance Technology: Last Week Tonight with John Oliver (HBO) [video]

https://www.youtube.com/watch?v=lnBPhelCdWE
1•jhonovich•17m ago•0 comments

Pipe – A runtime where AI operations are language primitives

https://pipe-lang.com
1•harrymachura•17m ago•0 comments

A C++ toolchain from 357 bytes, in Bazel

https://fzakaria.com/2026/08/01/a-c++-toolchain-from-357-bytes-in-bazel
1•ingve•20m ago•0 comments

Napoleon (1926)

https://gutenberg.org/cache/epub/79253/pg79253-images.html
1•petethomas•22m ago•0 comments

Show HN: Eight: a symbolic, indentation-based programming language

https://git.disroot.org/EightLang/Eight/src/branch/alpha
1•Vextoly•23m ago•1 comments

How rogue officers turned a nationwide camera network into a tool for stalking

https://www.washingtonpost.com/technology/2026/08/02/how-police-officers-used-vast-network-camera...
1•baranul•28m ago•0 comments

Sony BMG copy protection rootkit scandal from 2005

https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootkit_scandal
2•thinkingemote•31m ago•0 comments

Fastmail offers EU data region

https://www.fastmail.com/blog/fastmail-offers-eu-data-region/
2•jamesog•36m ago•1 comments

Show HN: ssh paint.dn.ht

1•dhotson•44m ago•0 comments

The Shape of Things to Come

https://yegge.ai/essays/the-shape-of-things-to-come/
3•tosh•45m ago•0 comments

What the Bliss Taught Us

https://daniel.haxx.se/blog/2026/08/03/what-the-bliss-taught-us/
2•robin_reala•49m ago•0 comments

I stopped trusting USB-C cable labels and started testing them

https://www.makeuseof.com/i-stopped-trusting-usb-c-cable-labels-started-testing-with-meter-instead/
2•baranul•55m ago•0 comments

Giggity – Conference Schedule Viewer

https://wilmer.gaa.st/main.php/giggity.html
1•n_plus_1_acc•55m ago•0 comments

The AI Productivity Gap

https://bjorg.bjornroche.com/management/ai-productivity-gap/
2•kiyanwang•1h ago•0 comments

Language Models Agree with Each Other, Not with Readers

https://arxiv.org/abs/2607.29274
1•sbulaev•1h ago•0 comments

Practical Memory Safety

https://ohadravid.github.io/posts/2026-08-unsafe-water/
1•jandeboevrie•1h ago•0 comments

Trust Is Gone: AI Safety Needs Individuals

https://www.lesswrong.com/posts/cm3Ea9tBHpjj9zjji/trust-is-gone-ai-safety-needs-individuals
2•joozio•1h ago•0 comments

The silent handoff of the new MCP release [video]

https://www.youtube.com/watch?v=3uOoG6rholU
3•sam_3•1h ago•0 comments

Ask HN: Do you ever think about the environmental impacts of the AI datacenters?

1•roschdal•1h ago•1 comments

Adding Go's Defer to the TypeScript Compiler

https://healeycodes.com/adding-defer-to-the-typescript-compiler
1•ingve•1h ago•0 comments

Spain's plan for the first octopus farm has been abandoned

https://www.bbc.com/future/article/20260731-spains-attempt-to-farm-octopuses-has-failed
2•geox•1h ago•0 comments

A 3-line HTML drop-in that replaces passwords with FaceID

https://nxspulse.com
1•paulnexus•1h ago•0 comments