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•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!

Finding a needle in a 4 GB haystack: from 0.75 GB/s to 49 GB/s in Go

https://segflow.github.io/post/fast-file-search-go/
1•marksomnian•48s ago•0 comments

My IP Address – MyIPNow

https://apps.apple.com/us/app/myipnow-ip-network-tools/id6763992136
1•myipnow•56s ago•0 comments

Openrsync: A BSD-licensed implementation of rsync, by the OpenBSD team

https://github.com/kristapsdz/openrsync
1•sph•5m ago•0 comments

The Paint.net Domain Has Been Secured

https://blog.getpaint.net/2026/05/29/the-paint-net-domain-has-been-secured/
1•tamnd•5m ago•0 comments

Best Simple System for Now

https://www.youtube.com/watch?v=oaHshjX50VY
1•RebootStr•8m ago•0 comments

Millions of Bees Have Thrived Under a New York Cemetery for More Than a Century

https://www.wired.com/story/millions-of-bees-have-thrived-under-a-new-york-cemetery-for-more-than...
1•beardyw•8m ago•0 comments

GPO Style Manual [pdf]

https://www.govinfo.gov/content/pkg/GPO-STYLEMANUAL-2016/pdf/GPO-STYLEMANUAL-2016.pdf
1•ankitg12•10m ago•0 comments

The fastest and easiest way to use Stremio

https://duck-tools.pages.dev/quackstart/
1•Cider9986•12m ago•0 comments

Show HN: DocOCR – Convert document images to Markdown locally on macOS

https://github.com/riddleling/docOCR
1•riddleling•16m ago•0 comments

Congress moves to integrate US and Israeli militaries

https://responsiblestatecraft.org/israel-us-military/
1•endorphine•21m ago•0 comments

Return on Intelligence, Part 1: Echoes

https://rebecca-powell.com/posts/return-on-intelligence-01-echoes/
1•bovermyer•22m ago•0 comments

Museum of Algorithms: A Digital Exhibition of Interactive Algorithm Art

https://www.museumofalgorithms.org
1•birdculture•25m ago•0 comments

Leo's first encyclical attacks technological messianism

https://www.economist.com/europe/2026/05/28/leos-first-encyclical-attacks-technological-messianism
2•1vuio0pswjnm7•25m ago•0 comments

Why the failure of Blue Origin's New Glenn rocket is so catastrophic

https://arstechnica.com/space/2026/05/heres-why-the-failure-of-blue-origins-new-glenn-rocket-is-s...
2•rbanffy•26m ago•0 comments

Misguided JavaScript API: Origin Private File System

https://lapcatsoftware.com/articles/2026/5/5.html
2•latexr•26m ago•0 comments

Blue Origin rocket explodes ahead of launch, in major setback for space company

https://www.washingtonpost.com/technology/2026/05/29/blue-origin-rocket-explodes-ahead-satellite-...
2•1vuio0pswjnm7•30m ago•0 comments

Megaphone: Social Media Without Ads

https://apps.apple.com/ge/app/megaphone-social/id6755971304
2•v-starlight•42m ago•0 comments

What ever became of Microsoft's $150M investment in Apple?

https://www.engadget.com/2014-05-20-what-ever-became-of-microsofts-150-million-investment-in-appl...
3•chistev•42m ago•0 comments

Blue Origin investigates, public is warned re: possible wreckage washing ashore

https://www.latimes.com/world-nation/story/2026-05-29/blue-origin-investigates-rocket-explosion-a...
2•1vuio0pswjnm7•44m ago•0 comments

Generalist AI – building general intelligence for the physical world

https://www.youtube.com/channel/UCwV9z8IGmbUQUb5D8KSv3mQ
2•age123456gpg•44m ago•2 comments

Let's Take Esoteric Programming Languages Seriously (2025)

https://arxiv.org/abs/2505.15327
3•sargstuff•47m ago•2 comments

Rewriting stale OSS projects using LLM

https://loopholelabs.io/blog/rewriting-oss-in-the-ai-era
2•axod•47m ago•0 comments

Furs: Eliminate the Forth CMSIS memory tax

2•techman001•51m ago•1 comments

Show HN: I wrote a program that hashes files into poems

https://github.com/alebeck/rhymesum
2•0x12A•51m ago•0 comments

From lottery draws to fiscal spending, China broadens digital yuan footprint

https://www.reuters.com/business/finance/lottery-draws-fiscal-spending-china-broadens-digital-yua...
2•giuliomagnifico•53m ago•0 comments

Will We Run Out of Unicodes?

https://owl.billpg.com/the-expanding-universe-of-unicode/
5•billpg•59m ago•0 comments

Multi-Lora-Continual-Learning

https://trajectory.ai/field-notes/multi-lora-training-for-continual-learning
3•j316chuck•59m ago•2 comments

We're starting to see some PC makers respond to Apple's MacBook Neo

https://arstechnica.com/gadgets/2026/05/were-starting-to-see-some-pc-makers-respond-to-apples-mac...
2•rbanffy•59m ago•0 comments

Pandoc Templates

https://pandoc-templates.org/
14•ankitg12•1h ago•0 comments

Trump Accounts Jumpstart the American Dream

https://trumpaccounts.gov/
2•xiaoyu2006•1h ago•0 comments