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!

Lean Explained with TypeScript

https://gruhn.me/blog/2026-08-29/
1•ngruhn•3m ago•0 comments

Unlimited Codex, Inside ChatGPT

https://github.com/devnoname120/codexify
2•Ey7NFZ3P0nzAe•5m ago•0 comments

Building an open source (turbopuffer alternative)in Rust – Kosha

https://github.com/decover-tech/kosha
1•ravitandon1990•10m ago•1 comments

Meta Security Researcher's AI Agent Accidentally Deleted Her Emails

https://au.pcmag.com/ai/116091/meta-security-researchers-ai-agent-accidentally-deleted-her-emails
3•Bluestein•15m ago•0 comments

Croc v11.3 goes peer-to-peer

https://getcroc.com/blog/croc-v11-3-release-update
2•haunter•22m ago•0 comments

Advice on Upskilling [pdf]

https://www.justinmath.com/files/advice-on-upskilling.pdf
1•miletus•24m ago•0 comments

How to Pretty-Print Your Kubernetes YAML as Kyaml and Why You'd Want To

https://kubernetes.io/blog/2026/08/11/how-to-pretty-print-kubernetes-yaml-as-kyaml/
1•jamietanna•25m ago•0 comments

Habit tracker bullet journal ideas

https://trackthehabit.com/bullet-journal-habit-tracker-layouts/
1•ahmadhussain89•25m ago•0 comments

Conversations Can Shape Reality

https://nautil.us/how-conversations-can-shape-reality-1284420
1•XzetaU8•27m ago•0 comments

SK Hynix Weighs Japan Memory Plant Deal to Supply AI Boom

https://www.bloomberg.com/news/articles/2026-08-31/sk-hynix-weighs-japan-memory-fab-partnership-t...
1•aufklarer•27m ago•0 comments

US and Iran Exchange Attacks for First Time in About a Month

https://www.bloomberg.com/news/articles/2026-08-30/us-strikes-iranian-rocket-launchers-in-first-a...
1•ipotapov•32m ago•0 comments

Trump demands Canadian companies doing business with USA move there immediately

https://www.independent.co.uk/news/world/americas/us-politics/trump-canada-businesses-truth-socia...
5•emptybits•35m ago•1 comments

Setting Up a Kernel Debugging Environment (2021)

https://pwning.systems/posts/setting-up-a-kernel-debugging-environment/
1•vismit2000•35m ago•0 comments

Starting AI Safety Study Group to Do Arena Curriculum

https://www.lesswrong.com/posts/eysGHNdvgAYwZjC3r/starting-ai-safety-study-group-to-do-arena-curr...
1•joozio•36m ago•0 comments

Claude Code reduces it's weekly limit by 17% – compared to today

https://twitter.com/ClaudeDevs/status/2093742322525810912
4•partsch•36m ago•0 comments

Nvidia DLSS 5: Modders enable AI faces in all sorts of games

https://www.heise.de/en/news/Nvidia-DLSS-5-Modders-enable-AI-faces-in-all-sorts-of-games-11434015...
1•doener•40m ago•0 comments

Zenresume

https://www.zenresume.online/
1•jagadees21•43m ago•0 comments

Infinite Slop (24/7 AI video generation)

https://infiniteslop.ai/
1•mdrzn•44m ago•0 comments

Show HN: Albums Vault, my take on how to manage Spotify album library

https://codefloe.com/rabc/albums-vault
1•rabc•45m ago•0 comments

Free Image Upscale

https://imagepeel.com/
2•FrostDream•46m ago•1 comments

Open Source tool to detect software supply chain attacks

https://github.com/ossillate-inc/packj
1•daveP17•51m ago•0 comments

I Didn't Set a Cookie

https://belibre.be/cookies/
5•JeanKage•57m ago•0 comments

Reckless Ben confronted Ideal Living's CEO over trafficking claims

https://thecreatorwire.com/article/reckless-ben-posed-as-doordash-delivery-to-confront-peter-spie...
2•thevinter•1h ago•1 comments

Fifty Shades of Klinker: The Bricks That Shaped Hamburg

https://alsterrunde.com/fifty-shades-of-klinker-the-bricks-that-shaped-hamburg/
1•mertbio•1h ago•0 comments

Show HN: FlarePeek – a chrome extension for Cloudflare Worker developers

https://chromewebstore.google.com/detail/flarepeek-a-browser-exten/ffdbljcgdjkbbbbodnjbbgpahhnkfbnl
1•ioslh•1h ago•0 comments

The Aphantasia Lie [video]

https://www.youtube.com/watch?v=UyBikVRPh6c
3•IdealeZahlen•1h ago•0 comments

In less than a year, Google made scraping 10× harder

https://growtika.com/blog/google-goto-links-study
5•Growtika•1h ago•2 comments

Droptick – one ad slot per week, the price only falls

https://www.droptick.io
1•CarstenSachse•1h ago•1 comments

A 12TB Steam "teraleak" spills more than a decade of lost PC gaming history

https://arstechnica.com/gaming/2026/08/a-12tb-steam-teraleak-spills-more-than-a-decade-of-lost-pc...
34•WithinReason•1h ago•3 comments

How AI Agents Make Discord Support Faster with SeaTicket

3•Daniel-Pan•1h ago•1 comments