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!

Scheduler0

https://scheduler0.com
1•vnwaokocha•1m ago•1 comments

Daddy long-legs–a weird and wonderful railway

https://blog.railwaymuseum.org.uk/daddy-long-legs-a-weird-and-wonderful-railway/
1•ajb•2m ago•0 comments

IINA 1.5.0

https://iina.io/blog/150-release/
1•vismit2000•5m ago•0 comments

A Brief History of Containers: From the 1970s Till Now

https://www.aquasec.com/blog/a-brief-history-of-containers-from-1970s-chroot-to-docker-2016/
1•theanonymousone•5m ago•0 comments

Auto-exist – A mouse protocol for flow-state induction

https://store.steampowered.com/app/5024600/Intend_System/
1•rejabusafchef•6m ago•0 comments

Borealis: Asahi Linux's Apple Silicon Mesa Vulkan Driver Forked for Vibe Coding

https://www.phoronix.com/news/Borealis-Vulkan-Driver
1•mehmetoguzderin•7m ago•0 comments

RFC 1149: Standard for the transmission of IP datagrams on avian carriers (1990)

https://www.rfc-editor.org/info/rfc1149/
1•vismit2000•7m ago•0 comments

5GW / $350B Power Plants and AI Data Centers

https://www.bloomberg.com/news/articles/2026-10-23/sk-data-center-arm-in-talks-to-fund-350-billio...
1•memming•10m ago•0 comments

Show HN: Multipeer, a multiplayer infinite canvas for people and their agents

https://multipeer.sh
3•sshresthh•17m ago•2 comments

The form of gear teeth for the Analytical Engine

https://blog.plan28.org/2026/10/the-form-of-gear-teeth-for-analytical.html
1•jgrahamc•19m ago•0 comments

Mace AI founders warn of AI double agents amid banks detecting unauthorized AI

https://www.thestreet.com/crypto/artificial-intelligence/mace-ai-founders-warn-of-ai-double-agent...
2•TruffleLabs•27m ago•1 comments

Who is London's Masked 'saviour' giving thousands to strangers?

https://www.standard.co.uk/news/london/london-batman-acts-of-kindness-b1301794.html
3•nephihaha•29m ago•0 comments

Chrome Now Warns Before Insecure HTTP Connections

https://blog.google/security/chrome-now-warns-before-insecure-http-connections/
3•lakeviewterrace•29m ago•0 comments

Sweden's Government Offices will block ChatGPT and Claude on staff computers

https://twitter.com/intcyberdigest/status/2113815992984080865
3•taubek•31m ago•0 comments

Rings of Risk: Consequence and Reachability in Vulnerability Chains [pdf]

https://kolega.ai/papers/rings-of-risk.pdf
1•jfaganel99•34m ago•0 comments

UK to invest £100M in 'world first' AI Biosecurity Lab

https://www.bbc.co.uk/news/articles/cqdjv8xllvyyo
3•chrisjj•37m ago•0 comments

Fire Engulfs Hitler's 'Eagles Nest'

https://www.cnn.com/2026/10/24/europe/nazi-house-fire-germany-intl-hnk
3•elliottmoos•38m ago•1 comments

Own Your Idea with Qalamide

https://qalamide.dev
1•raxwan•41m ago•1 comments

A world model that turns a few photos of a room into a simulation called Mundo

https://huggingface.co/blog/Luo-Yihang/mundo-world-model
1•sgiannopoulos•46m ago•0 comments

Switching Password Managers in 2026

https://rmondello.com/2026/09/07/switching-password-managers-2026/
1•birdculture•46m ago•0 comments

A public tourist webcam captured the fire at Kehlsteinhaus

https://claude.ai/artifact/KQRxeaEpmtmwT8HwzhHRUt
1•mtford•50m ago•0 comments

A Love Letter to the Super Dimension Fortress

https://brennan.day/a-love-letter-to-the-super-dimension-fortress/
2•jruohonen•52m ago•0 comments

CppC – memory-safe C++ compiler (catches UAF, double-free at build time)

https://github.com/0x7m7/cppC
1•0x7m7•1h ago•1 comments

iPhone Duo Durability: Destroyed [video]

https://www.youtube.com/watch?v=5laDGy4INB0
2•phoronixrly•1h ago•1 comments

ThinkRail from JetBrains

https://thinkrail.ai/
3•wilsonjholmes•1h ago•0 comments

ERC Starting Grant success rate likely to fall to 4.8%

https://sciencebusiness.net/news/r-d-funding/european-research-council/erc-starting-grant-success...
1•theanonymousone•1h ago•0 comments

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps

https://www.aikido.dev/blog/python-packages-vulnerable-node2shell-brotli-cve-2026-111497
3•theanonymousone•1h ago•0 comments

Show HN: Local AI for dictation, meetings, background tasks and more

https://sideos.ai
1•askintml•1h ago•0 comments

Same open model, two harnesses: 24/25 vs. 19/25 on 25 real merged pull requests

https://octomind.run/blog/coding-agent-benchmark-real-prs
1•donk8r•1h ago•0 comments

Ruby Regexp compilation fixes related to GitLab

https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/
2•ksec•1h ago•0 comments