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!

UALink – Ultra Accelerator Link – Open-Source/Hardware Alternative to NVLink

https://en.wikipedia.org/wiki/UALink
1•peter_d_sherman•2m ago•1 comments

Why we committed to a zero-bugs policy (2025)

https://linear.app/now/zero-bugs-policy
1•zdw•4m ago•0 comments

Using Claude to reduce the attack surface of code

https://www.anthropic.com/research/attack-surface-reduction
1•dnw•5m ago•0 comments

SpacebarBench: Benchmarking Agents on Whiteboards

https://www.spacebar.ai/benchmark
1•zholer•8m ago•0 comments

mtt.sh – Mounting Linux Images

https://righteousit.com/2026/10/20/mtt-sh-mounting-linux-images/
1•indigodaddy•9m ago•0 comments

Show HN: Pope Pendle Pro

https://github.com/knitprong/Faith-cloud
1•Sorieter•11m ago•0 comments

The Best Monopoly Strategy, Tested on 300M Games [video]

https://www.youtube.com/watch?v=S_2eVAaw1UM
1•zdw•12m ago•0 comments

A2O Lite Neon AI Dance Generator

https://www.a2oliteneon.app
1•daisyjin•14m ago•0 comments

US Air Force pilots used malware-laden USB drives to plan Afghanistan missions

https://www.theregister.com/security/2026/10/15/us-air-force-pilots-used-malware-laden-usb-drives...
2•gumby•14m ago•0 comments

Every game of chess ends prematurely

https://www.infinitelymore.xyz/p/chess-games-end-one-move-early
1•FillMaths•15m ago•0 comments

Microkindness and the Science of Small Acts

https://hfh.fas.harvard.edu/post/microkindness
1•the-mitr•16m ago•0 comments

A noncommercial collection of easy-to-read history timelines

https://www.worldintimelines.com/
1•thedreammachine•26m ago•1 comments

Your LLM is probably overkill for text classification

https://jeffyclassify.com/blog/jeffy-vs-llm-classification/
1•nico•26m ago•0 comments

GLM-5.3 Sometimes Considers How Train-Time Actions Shape Future Behavior

https://www.lesswrong.com/posts/R5g8YT25G9DXJJ48n/glm-5-3-sometimes-considers-how-train-time-acti...
1•Gathering6678•28m ago•0 comments

DeepInfer in 10 Minutes [video]

https://www.youtube.com/watch?v=0glhZSkr0V8
1•tyrchen•28m ago•0 comments

Show HN: Mile Pace Calculator, free pace and split tools for runners

https://milepacecalculator.com/
1•khanzai•31m ago•0 comments

Diffeomorphic Optimization

https://arxiv.org/abs/2607.00947
2•E-Reverance•31m ago•0 comments

Why do some places just feel right?

https://kottke.org/26/10/why-do-some-places-just-feel-right
1•gdubs•32m ago•1 comments

Decompwlj: A 3D atlas of 5k integer sequences

https://decompwlj.net/
1•ilreb•32m ago•0 comments

Who Created This AWS Resource? Find Out with CloudTrail, Even After 90 Days

https://cloudsleuth.io/blog/who-created-this-aws-resource/
1•movingmovie•33m ago•0 comments

A 1967 Look at Computers, Software and Their Future Impact [video]

https://www.youtube.com/watch?v=iHV1-_2tBhs
1•caned•34m ago•0 comments

TUI file manager for cloud and remote (S3) storage

https://github.com/mrpbennett/bucky
1•kermatt•36m ago•0 comments

Blueprints, Not Prompts: Using TLA+ to Guide AI-Written Code

https://mulgadc.com/blog/blueprints-not-prompts-tla-plus
1•InsideStick•39m ago•1 comments

Discovery of a second-generation planet candidate accreting onto a white dwarf

https://www.nature.com/articles/s41550-026-02983-7
1•santiago-pl•40m ago•0 comments

Perplexity Computer now runs fully local on Mac

https://www.perplexity.ai/hub/blog/perplexity-computer-now-runs-fully-local-on-mac
2•thm•45m ago•1 comments

C# now beats Rust on WASM size

https://github.com/zion-sati/NetWasm
2•sumnole•48m ago•1 comments

Google's servers can scan what you copy in Chrome for unsafe content

https://www.neowin.net/news/google-can-now-monitor-your-clipboard-in-chrome-to-check-if-you-copie...
6•bundie•49m ago•1 comments

The Nature of the Swarm

https://hallerite.com/posts/on-the-nature-of-the-swarm/
1•simonpure•55m ago•0 comments

PHP2Shell

https://www.huntress.com/blog/php2shell-leaked-critical-php-vulnerabilities
1•metadat•1h ago•1 comments

Trump DHS admits it invented child abuse claims against activist to unlock phone

https://www.rawstory.com/samuel-tunick-trump-border-patrol/
13•NDlurker•1h ago•1 comments