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!

Software Engineering fundamentals matter more

https://rhonabwy.com/2026/08/15/software-engineering-fundamentals-matter-more-than-ever/
1•ingve•2m ago•0 comments

SugarTrack – an offline Android logbook for blood sugar (no account, no cloud)

https://sugartrack-beta.vercel.app/
2•hunzaboy•5m ago•0 comments

Learning Project – Zero Knowledge Vault Sharing

https://emergencyvault.net
2•mtmulch0191•5m ago•1 comments

Oracle – a photorealistic browser for every Magic card ever printed

https://magic-oracle.com/
2•egstad•6m ago•1 comments

Automating Microsoft Edge Rewards

2•anonomity•9m ago•0 comments

Xteink's tiny e-readers are getting access to free books through Libby

https://www.theverge.com/tech/976390/xteink-x3-x4-x4-pro-e-reader-libby-plug-ins-drm-crosspoint-r...
2•sohkamyung•10m ago•0 comments

Sentinel Scan: an authorized LLM red-team audit, run by an AI agent

https://fbirds5230.github.io/sentinel-scan/
2•ventrovadev•10m ago•0 comments

Show HN: ElevenMusic Sounds, loop library that grows as other people generate

https://elevenmusic.io/sounds
2•sigvef•11m ago•0 comments

We benchmarked 5 ways to generate PDFs in Laravel

https://bladepdf.com/blog/laravel-pdf-generation-benchmark
2•bladepdf•14m ago•1 comments

Triple Product Rule of Partial Derivatives

https://en.wikipedia.org/wiki/Triple_product_rule
3•srean•18m ago•0 comments

Engineers will do anything to avoid learning from history

https://horn.gg/blog/engineers-will-do-anything-to-avoid-learning-from-history/
7•madrox•25m ago•4 comments

Anthropic shares details about how Claude's new watermarks will work

https://techcrunch.com/2026/08/15/anthropic-shares-more-details-about-how-claudes-new-watermarks-...
3•sbulaev•26m ago•0 comments

Ask HN: I created a web browser using Claude, everybody hates it

4•roschdal•28m ago•3 comments

Free personalised attachment style quiz

https://tally.so/r/0QP0lj
2•ElysiumAbove•31m ago•0 comments

Dress Rehearsal for Life; ambition, self-myth and a cheque as heavy as the world [video]

https://www.youtube.com/watch?v=Wo2_zhS1uYY
2•devrob•32m ago•0 comments

Ask HN: What is your favorite lightweight tool or CLI utility in 2026?

2•pranav_tech26•34m ago•0 comments

Early Influences of Photography on Art – Part 1

https://www.artinsociety.com/pt-1-initial-impacts.html
2•breppp•38m ago•0 comments

Calorie tracker for my Garmin watch

https://ashu1461.com/posts/a-calorie-tracker-on-my-garmin-watch/
2•ashu1461•41m ago•0 comments

ActivityPub Won by Being Boring

https://o.ee/blog/activitypub-won-by-being-boring/
5•birdculture•42m ago•0 comments

Ask HN: Anyone got a deauthentication attack script?

2•emn4tor•42m ago•0 comments

Neo: A distraction-free word processor for authors, by a wannabe author

https://github.com/hughhowey/neo
2•jasonpeacock•43m ago•1 comments

Modeling and Verification of Keeta's Consensus [pdf]

https://xescu.re/keeta-consensus.pdf
3•xescure•44m ago•1 comments

Were Touch Bar's problems software rather than hardware?

https://unsung.aresluna.org/deeper-dive-were-touch-bars-problems-software-rather-than-hardware/
2•ingve•45m ago•0 comments

Bede Liu, a digital signal processing pioneer, has died

https://spectrum.ieee.org/digital-signal-processing
16•Jimmc414•47m ago•1 comments

Why AI agents need verified identity

https://chrisbergeron.com/2026/08/11/why_ai_agents_need_verified_identity/
3•speckx•48m ago•0 comments

The Wow signal was a strong narrowband radio signal detected on August 15, 1977

https://en.wikipedia.org/wiki/Wow!_signal
23•firefax•50m ago•1 comments

Show HN: Live Claude Usage HUD for a $38 Thermalright Trofeo Vision LCD

https://github.com/christensen143/claude-trofeo-hud
3•christensen143•51m ago•0 comments

Tracking down a Zsh history data loss bug

https://michael.stapelberg.ch/posts/2026-08-09-zsh-history-truncation-bug/
3•ingve•54m ago•0 comments

Book Review: The Escape Artist

https://www.astralcodexten.com/p/your-book-review-the-escape-artist
2•paulpauper•55m ago•0 comments

No-New-Physics Consciousness

https://www.overcomingbias.com/p/no-new-physics-consciousness
5•paulpauper•55m ago•1 comments