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!

Altrillio

https://apps.apple.com/us/app/altrillio/id6777105544
1•levelhabits•1m ago•0 comments

IMF says AI investment keeps global growth around 3%

https://www.reuters.com/world/china/imf-says-ai-investment-keeps-global-growth-around-3-with-majo...
1•geox•2m ago•0 comments

Down with Monospace and the TTY Layer

https://p.janouch.name/text/death-to-monospace.html
1•premysl•3m ago•0 comments

Open Source Trading Bot

https://ribqa.com
1•Myzura•8m ago•0 comments

Is PHP a Rusty Language?

https://tomasvotruba.com/blog/is-php-a-rusty-language
1•moebrowne•15m ago•0 comments

Mathematician Who Waited 50 Years for Proper Credit for Her Work Has Died

https://www.nytimes.com/2026/10/10/science/mary-tsingou-menzel-dead.html
2•pseudolus•16m ago•1 comments

Amazon EC2 R8g Instances

https://aws.amazon.com/ec2/instance-types/r8g/
1•tosh•19m ago•0 comments

Yet Another Literary Prizewinner Seems to Be AI

https://www.theatlantic.com/books/2026/10/caine-prize-winning-short-story-seems-be-ai/688967/
1•atomicnature•20m ago•0 comments

Zen Browser

https://zen-browser.app/
1•Bluestein•20m ago•0 comments

I assume I'm below average

https://sive.rs/below-average
2•sodic•22m ago•0 comments

Files v4.3

https://files.community/blog/posts/v4-3-0
1•maxloh•26m ago•0 comments

Show HN: NostrComments – comment threads on any URL, stored on public relays

https://github.com/briskness-byte/NostrComments
1•NostrComments•28m ago•0 comments

New Apple TV 4K, HomeView, and HomePod Mini: 16 Details Just Leaked

https://www.macrumors.com/2026/10/11/apple-tv-4k-homeview-homepod-mini-2-leaks/
1•thm•28m ago•0 comments

A decade after Stardew Valley, Eric Barone is still going it alone

https://www.gq-magazine.co.uk/article/a-decade-after-stardew-valley-eric-barone-is-still-going-it...
2•HelloUsername•28m ago•0 comments

Physical activity weakens link between genetic risk and depression severity

https://medicalxpress.com/news/2026-10-physical-weakens-link-genetic-depression.html
1•pseudolus•28m ago•0 comments

RSA vs. ML-DSA: 256 vs. 2,420-Byte Signatures (2026)

https://shattered.io/rsa-vs-ml-dsa-signatures-2026/
1•msgchainhq•29m ago•0 comments

AI-Customized Plush Toys × Early Education Software – One-Stop OEM/ODM

https://niokyar.com/
1•aronsmith007•30m ago•0 comments

Gbos-VM: Run Googlebook OS in a GPU-Accelerated VM on Apple Silicon Macs

https://github.com/skylartaylor/gbos-vm
1•maxloh•31m ago•0 comments

Hetzner: The New GPU Server GEX63 for Professional AI Workloads

https://www.hetzner.com/_ray/pow
2•tosh•31m ago•0 comments

Show HN: Expose – Self-hosted ngrok alternative in Go

https://github.com/kernelshard/expose
1•samiulsk•34m ago•0 comments

1M multi-lingual synthetic corporate emails to stress-test your RAG

https://huggingface.co/datasets/sinabis-group/sinabis-1m-synthetic-emails
1•sinabis_1•34m ago•1 comments

AI boom keeps global growth near 3 percent despite energy shock, IMF says

https://middle-east-online.com/en/ai-boom-keeps-global-growth-near-3-percent-despite-energy-shock...
1•01-_-•36m ago•0 comments

A Russian operator's DDoS-amplification lab, with an AI co-pilot

https://huntback.io/blog/ddos-amplification-lab-ai-copilot
1•noktec•37m ago•0 comments

Building an Observability Dashboard for a Claude Subscription

https://prakhargurunani.com/blog/building-claude-observability/
2•prakhargurunani•39m ago•0 comments

Inside The Failed Fight to Unionize One of Gaming's Most Idealized Studios

https://kotaku.com/inside-the-failed-fight-to-unionize-one-of-gamings-most-idealized-studios-2000...
1•schrototo•40m ago•0 comments

Writing a Demoscene Intro for the ZX Spectrum

https://www.markround.com/blog/2026/zx-spectrum-intro
3•signa11•42m ago•0 comments

Show HN: I built a banking demo with LavinMQ to test messaging failures

https://github.com/cloudamqp/lavinmq-demos/tree/main/nodejs-clients-demo
1•hailay•43m ago•0 comments

Formally Verifying a Compiler Using Automated Research

https://www.paradigm.xyz/writing/solidus
1•ronfriedhaber•44m ago•0 comments

Show HN: Figranium – Build browser automations visually and run them as APIs

https://github.com/figranium/figranium
1•asernasr•45m ago•0 comments

Evidence theater: how AI fooled smart entrepreneurs

https://mcastenfors.substack.com/p/evidence-theater-how-ai-fooled-smart
1•mcastenfors•45m ago•0 comments