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!

CO3: Toward the Optimal FFI

https://mversic.github.io/co3/
1•manyatoms•1m ago•0 comments

Two Strangers, One Machine: A security model for a CDN on residential hardware

https://blog.evolvingedge.ai/post/how-little-do-you-have-to-trust-us-white-paper-launch/
1•gadgetboy•3m ago•0 comments

Nvidia chip-use emissions match that of a Russian state coal producer: report

https://www.euronews.com/next/2026/09/21/nvidia-chip-use-emissions-match-that-of-a-russian-state-...
3•devonnull•4m ago•0 comments

Xiaomi MiMo Desktop

https://mimo-ai.xiaomimimo.com/desktop/
1•gainsurier•5m ago•0 comments

Xaml.io v0.9: Build .NET Apps from a Prompt, in the Browser

https://blog.xaml.io/post/build-dotnet-apps-from-a-prompt
1•vasbu•5m ago•1 comments

Show HN: Jev powered knowledge graph search CLI

https://github.com/Emlembow/jev-graph-search
1•MikeLembo•7m ago•0 comments

Show HN: Context Tetris clear rows to bank the useful context Keep the noise out

https://vstorm-co.github.io/agenticos/arcade/context.html
1•outageroom•8m ago•0 comments

There May Be Nobody There

https://yusufaytas.com/there-may-be-nobody-there
1•bastrich•9m ago•0 comments

Arce: Design studio for furniture makers and interior designers

https://arce.design/
2•ivanenkoy•14m ago•0 comments

Delta: Highly available, strongly consistent storage using chain replication (2022)

https://engineering.fb.com/2022/05/04/data-infrastructure/delta/
1•grep_it•16m ago•0 comments

So, is AI going to kill us? 11 experts, 11 answers

https://sfstandard.com/2026/09/21/experts-ai-doom/
1•ghuntley•17m ago•0 comments

Motor Characterization for Small Running Robots (2016)

https://robot-daycare.com/posts/2016-01-06-motor-characterization-for-small-running-robots/
1•loughnane•18m ago•0 comments

I Redefined Partnership Terms to End the Sick Romanticization of Co-Founders

https://medium.com/startup-shop/in-lieu-of-technical-co-founder-i-redefined-better-partnership-te...
1•joeyomaita•20m ago•3 comments

Covert Caches: TLB Edition

https://parallelprogrammer.substack.com/p/covert-caches-tlb-edition
2•matt_d•23m ago•0 comments

Ukrainian naval drone sinks Russian kamikaze drone boat

https://arstechnica.com/gadgets/2026/09/military-milestone-ukrainian-naval-drone-sinks-russian-ka...
3•Gaishan•24m ago•0 comments

Making a game for the GBA and PC from the same codebase

https://mattgreer.dev/blog/making-a-game-for-gba-and-pc/
2•ibobev•26m ago•0 comments

Designing Silicon from Scratch [video]

https://www.youtube.com/watch?v=q6ytRHaTEXI
2•ibobev•27m ago•0 comments

Looking forward to Git 2.56 – and 3.0

https://lwn.net/SubscriberLink/1094575/2385e98583715c2b/
3•chmaynard•28m ago•0 comments

Self-Hosting Behind Cgnat

https://david.alvarezrosa.com/posts/self-hosting-behind-cgnat/
3•ibobev•29m ago•0 comments

Brad Smith and Kevin Rudd on AI, Regulation, and the Future of Work [video]

https://www.youtube.com/watch?v=hClbN_imH5Y
2•verdverm•29m ago•0 comments

U.S. Site Blocking Bill Adds VPNs to the List of Blocking Intermediaries

https://torrentfreak.com/u-s-site-blocking-bill-adds-vpns-to-the-list-of-blocking/
4•gslin•32m ago•0 comments

Show HN: Building Seven in Public

https://claude.ai/share/61ae35d6-82f2-425a-84b6-907a3ec1b5c4
2•o2zer0cool•32m ago•0 comments

Apple Watch Series 12 and Ultra 4 May Have Hidden Flash Storage

https://www.macrumors.com/2026/09/21/apple-watch-series-12-ultra-4-hidden-storage/
3•bookofjoe•36m ago•0 comments

Muse, Meta's extraordinarily privileged AI assistant, has a serious 0-day

https://arstechnica.com/security/2026/09/muse-metas-extraordinarily-privileged-ai-assistant-has-a...
4•spenvo•37m ago•0 comments

AI Risk Cheatsheet

https://umais.me/writing/ai-risk-cheatsheet/
2•umz•41m ago•0 comments

Spymarks, Not Watermarks

https://brand.io/article/spymarks/
14•possibilistic•41m ago•5 comments

Acubom

https://acubom.com/
2•autifill•42m ago•0 comments

Jev: System One Models for Prod, Not God – With Diogo Almeida, CEO, TypeSafe AI

https://www.latent.space/p/jev
4•swyx•43m ago•1 comments

I Am in need of Testers

https://agaro.ai/
4•yusufghyasi•49m ago•1 comments

An actively maintained and updated Motif fork exists

https://www.osnews.com/story/145877/an-actively-maintained-and-updated-motif-fork-actually-exists/
2•birdculture•50m ago•0 comments