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!

Some things are worth dying for: Karl Bushby's 28-year walk

https://www.theguardian.com/lifeandstyle/2026/oct/13/karl-bushby-incredible-28-year-walk-home-gol...
1•dustfinger•1m ago•0 comments

A frame analysis of Hitman World of Assassination

https://blog.simonrodriguez.fr/articles/2026/10/a_frame_analysis_of_hitman_world_of_assassination...
1•ibobev•2m ago•0 comments

Best Open Source ETL Tools Reviewed in 2026

https://thectoclub.com/tools/best-open-source-etl-tools/
1•ejboy•3m ago•0 comments

Vhené – Any Condition MP3 Download

1•djafronaija•6m ago•0 comments

Native Markdown Quick Look for macOS

https://www.gumino.com/madquill/
1•guglielmino•6m ago•0 comments

OCP Summit 2026: Innovations in Scale-Up, Scale-Out, and Scale-Across Networks

https://engineering.fb.com/2026/10/12/open-source/ocp-summit-2026-powering-ai-with-open-innovatio...
1•gmays•8m ago•0 comments

OWASP's finbot Defended with Tenuo: 0 successful attacks

https://github.com/tenuo-ai/finbot-ctf
2•daniel_tenuo•10m ago•0 comments

Quantum Sensing of Gravitational Frame-Dragging with a Superfluid 4He Gyrometer

https://arxiv.org/abs/2510.20772
1•PaulHoule•10m ago•0 comments

Show HN: Imagor MCP – agent-written image layouts that compile to one URL

https://github.com/cshum/imagor-mcp
1•cshum•11m ago•0 comments

I know why Mathematicians weep

https://www.derekthompson.org/p/i-know-why-the-mathematicians-weep
3•RickJWagner•11m ago•0 comments

Apertus 1.5 Technical Report

https://apertus-ai.org/articles/2026-07-apertus-1-5/
1•seism•11m ago•0 comments

Stochastic Graph Compression for Constant-Memory Differentiable Light Tracing

https://arxiv.org/abs/2610.10847
1•ibobev•12m ago•0 comments

Transcribing the Accedence of Armorie

https://benovermyer.com/blog/2026/10/transcribing-the-accedence-of-armorie/
1•bovermyer•13m ago•0 comments

When Software Meets Hardware

https://martinfowler.com/articles/software-meets-hardware.html
1•ibobev•13m ago•0 comments

The cryptoint library (2025) [pdf]

https://cr.yp.to/papers/cryptoint-20250424.pdf
1•akkartik•15m ago•0 comments

Agent can now ship reliable distributed systems

https://antithesis.com/blog/2026/time-traveling-agents/
2•ghuntley•15m ago•0 comments

The intricate sky art of Benjamin McDaniel and N1810R

https://www.flightradar24.com/blog/flight-tracking-news/just-for-fun/the-intricate-sky-art-of-ben...
1•MBCook•16m ago•0 comments

"Parakeet Turbo"

https://birchtree.me/blog/say-hello-to-parakeet-turbo/
1•surprisetalk•16m ago•0 comments

AI Data Centers Cost Billions to Build. This Is Why

https://www.bloomberg.com/features/2026-ai-data-center-build-costs/
2•gmays•16m ago•0 comments

Beyond GDP: Tenzin Seldon's Vision for an Economy That Regenerates Life

https://worldsensorium.com/beyond-gdp-tenzin-seldons-vision-for-an-economy-that-regenerates-life/
1•dnetesn•17m ago•0 comments

Show HN: Embedding classifier ~100x lighter than Jev, try it offline in-browser

https://lusob.github.io/embeddings-is-all-you-need/
1•lusob•18m ago•0 comments

Humans drew pictures on the sky, and what they tell us about ourselves

https://blue-continuum.com/connect-the-dots
1•dnetesn•18m ago•0 comments

Things are finally looking up for NASA's first missions to Venus in a generation

https://arstechnica.com/space/2026/10/nasas-embattled-venus-missions-are-back-on-track-after-canc...
3•Brajeshwar•19m ago•1 comments

From 2,500 requests to 24: Rebuilding star history without the stargazers

https://github.blog/engineering/architecture-optimization/from-2500-requests-to-24-rebuilding-sta...
2•Brajeshwar•19m ago•0 comments

Stripe and Plasma co-develop a new multi-currency card experience

https://twitter.com/StripeCrypto/status/2110717778244018535
2•tosh•20m ago•1 comments

Training a local model to play browser games on the fly

https://ironbee.ai/blog/how-we-trained-an-ai-model-to-play-browser-games
4•berkay•21m ago•1 comments

Special cased quaternion log and exp

http://marc-b-reynolds.github.io/quaternions/2026/10/10/QuatExpMap.html
1•ibobev•22m ago•0 comments

Egg: Using egraphs to build program optimizers and synthesizers

https://egraphs-good.github.io/
2•SerCe•22m ago•0 comments

Ask HN: Apple HomeView. What problem is Apple Home solving?

2•NarcisMirandes•23m ago•1 comments

Show HN: Arneb – A Trino-compatible distributed SQL engine in Rust

https://arneb.io
2•jackypan1989•24m ago•0 comments