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!

PrivAiTe, a local LLM proxy that redacts PII in tool-call arguments

https://github.com/crp4222/PrivAiTe
1•crp4222•36s ago•0 comments

Life Without Google

https://untangled.bearblog.dev/life-without-google/
1•speckx•2m ago•0 comments

Yes, AI Will Take Your Job

https://blog.calebjay.com/posts/ai-will-take-your-job/
1•HotGarbage•2m ago•0 comments

A System of Systems for the Selection of Optimal Climate Change Decisions

https://ieeexplore.ieee.org/document/11357917
1•rbanffy•3m ago•0 comments

Stymied datacentre projects threaten global AI revolution

https://www.theguardian.com/technology/2026/jul/07/stymied-datacentre-projects-threaten-global-ai...
1•Brajeshwar•3m ago•0 comments

Show HN: VESlocker – stop offline brute-force of PIN-protected local data

https://github.com/vesvault/VESlocker
1•VESvault•4m ago•0 comments

With more prison space than prisoners, correctional facilities are shutting down

https://san.com/cc/with-more-prison-space-than-prisoners-correctional-facilities-are-shutting-down/
2•Cabal•6m ago•1 comments

Why I Built an AI That Ignores You

https://zhengxianlin.substack.com/p/why-i-built-an-ai-that-ignores-you
1•jasonlili•6m ago•0 comments

AI Engineer Fair 2026: Takeaways and Verification

https://jorypestorious.com/blog/ai-engineer-verification/
1•joryeugene•7m ago•1 comments

Windows GDID Changer

https://github.com/gd03gd031/Windows-GDID-Changer
1•maxo133•8m ago•1 comments

Markdown Now Has a UTI in Apple's Version 27 OSes

https://daringfireball.net/linked/2026/07/06/markdown-uti-os-27
2•ingve•8m ago•0 comments

Optical Scale Up Fabrics Are Limited by Manufacturing, Not Architecture

https://www.nextplatform.com/connect/2026/06/30/optical-scale-up-fabrics-are-limited-by-manufactu...
1•rbanffy•8m ago•0 comments

Show HN: Markdown Arena – Compare Markdown Editors Side by Side

https://markdownarena.com/
1•Wdorf•9m ago•0 comments

Theory of constraints, AI, and code review

https://swizec.com/blog/theory-of-constraints-ai-and-code-review/
1•Swizec•10m ago•0 comments

High-performance Rust: Understanding and eliminating memory fragmentation

https://kerkour.com/rust-high-performance-memory-fragmentation-allocations
1•Keyb0ardWarri0r•11m ago•0 comments

Show HN: MIRA – Multiplayer World Model Trained on Rocket League

https://mira-wm.com/
7•MasterScrat•12m ago•4 comments

If you have one, how do you use Reachy mini?

1•plkt_studios•12m ago•0 comments

Aug 31st 2026: All Manifest V2 extensions removed from the Chrome Web Store

https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline
2•gildas•12m ago•0 comments

Democratic Project 2029 calls for child social media ban, safety rules on tech

https://thehill.com/policy/technology/5945564-democratic-project-2029-calls-for-child-social-medi...
1•iamnothere•12m ago•0 comments

Show HN: Why We Built MicroLeague Sports Vol. 2

https://www.microleaguesports.com/blogs/why-we-built-microleague-sports-vol-2
1•esolar07•13m ago•0 comments

Show HN: Shutdown Timer for Windows

https://wyattt.gumroad.com/l/shutdown-timer
1•wyatt2106•13m ago•0 comments

China may stop open-sourcing its most powerful AI models

3•tom2026hn•13m ago•0 comments

A Stargate for Data

https://willdepue.substack.com/p/a-stargate-for-data
4•felixdoerp•17m ago•0 comments

Know thyself – why your chatbot hallucinates you; and what to do instead

https://github.com/anthropics/claude-code/issues/75291
1•parrik•18m ago•0 comments

Cynefin Framework

https://en.wikipedia.org/wiki/Cynefin_framework
2•hasley•19m ago•0 comments

Redditor has mystery data corruption; realises their desk fan is the cause

https://old.reddit.com/r/EagleCool/comments/1tw9gtc/i_have_several_questions_currently_love_hate/
1•davidbarker•19m ago•0 comments

Microsoft, Google and Cloudflare just made 2029 the new quantum deadline

https://thenewstack.io/post-quantum-cryptography-deadline-2029/
1•Brajeshwar•20m ago•0 comments

Almost all coders at Id Software have been fired, following Xbox reset

https://xcancel.com/ScottApogee/status/2074198967550685268#m
9•LucidLynx•20m ago•1 comments

The Revenge of the Philosophy Majors

https://www.nytimes.com/2026/07/05/business/philosophy-majors-ai-jobs.html
13•benbreen•21m ago•4 comments

Africa's animals fear human voices more than the sound of lions/gunshots (2023)

https://www.iflscience.com/africas-animals-fear-the-sound-of-humans-more-than-lions-dogs-or-gunsh...
1•maxloh•21m ago•0 comments