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!

Show HN: Cronloop, run Claude Code or Codex on a schedule

https://cronloop.ai/
1•miketromba•55s ago•0 comments

Amazon Leo plans to connect mobile devices from space

https://www.aboutamazon.com/news/amazon-leo/amazon-leo-direct-to-device-satellite-service-explained
1•nateb2022•1m ago•0 comments

Self-Verification with DeepSeek V4 Flash Beats Claude Fable 5 on Terminal-Bench

https://github.com/llm-as-a-verifier/llm-as-a-verifier
1•yogthos•2m ago•0 comments

Trump Labels Map of Strait of Hormuz 'New U.S. Territory'

https://www.forbes.com/sites/zacharyfolk/2026/08/18/trump-labels-map-of-strait-of-hormuz-new-us-t...
1•bushwart•2m ago•0 comments

Sol Loves to Cheat

https://jumploops.com/blog/sol-loves-to-cheat/
1•jumploops•2m ago•0 comments

Ranked: Popular Cities for Digital Nomads

https://www.visualcapitalist.com/cp/ranked-the-30-most-popular-cities-for-digital-nomads/
1•mdp2021•2m ago•0 comments

Claude: Degraded Performance for Multiple Models

https://status.claude.com/incidents/q7txxvbsftgq
3•matt89•4m ago•0 comments

Superpowers, Not Superintelligence

https://bond.now/news/superpowers-not-superintelligence
1•edbernays•4m ago•0 comments

Changes for Apps in the European Union

https://developer.apple.com/news/?id=gmws0jgp
1•johnbehnke•5m ago•1 comments

How Turkey may have solved the Kurdish insurgency

https://www.nytimes.com/2026/08/18/opinion/turkey-kurds-pkk-hamas.html
1•marojejian•5m ago•1 comments

Git at Any Scale

https://cursor.com/blog/git-at-any-scale
2•meetpateltech•5m ago•0 comments

Launch HN: machine0 (YC S26) – Persistent CPU and GPU VMs from the CLI

https://machine0.io
3•bwm•5m ago•0 comments

Some contradictions of hybrid back to work (2023)

https://euri.ca/blog/2023-hybrid-back-to-work/
1•mooreds•6m ago•0 comments

Magnitude – Open-source AI coding agent that runs local models offline

https://digitalescapetools.com/tools/tool.html?id=magnitude
2•xabd•7m ago•0 comments

The new Framework 12 [video]

https://www.youtube.com/watch?v=459a7YBmBOE
2•what-is-water•7m ago•0 comments

Acadia Bringing the benefits of elm to SQLite and PostgreSQL

https://acadia.engineering/
2•BoumTAC•8m ago•1 comments

Mindful Motorcycle Racing

https://samsonracing.substack.com/p/mindful-motorcycle-racing
2•Wagthesam•8m ago•0 comments

Mojo is now open source!

https://www.modular.com/blog/mojo-open-source
6•visheshdembla•9m ago•0 comments

Swinth – By Sung J. Woo

https://www.goto10retro.com/p/the-history-of-swinth
3•rbanffy•9m ago•0 comments

A Transcript Is a Choice

https://sprag.ai/blog/a-transcript-is-a-choice
2•ericalind•9m ago•0 comments

A local ePub eBook server for my xteink

https://solariz.de/posts/26/04-xteink-local-epub-server
2•speckx•10m ago•0 comments

Apple announces changes for apps in the European Union

https://www.apple.com/newsroom/2026/08/apple-announces-changes-for-apps-in-the-european-union/
11•newusertoday•11m ago•1 comments

Tell HN: Cursor has a hidden terminal command for steering its desktop AI agents

3•ryanmerket•11m ago•0 comments

A Green Light for Crooks

https://www.theatlantic.com/ideas/2026/08/corrupt-administration-shell-company-business-transpare...
2•paulpauper•11m ago•0 comments

New report takes closer look at the Space Force spending surge – SpaceNews

https://spacenews.com/new-report-takes-closer-look-at-the-space-force-spending-surge/
1•rbanffy•12m ago•0 comments

Show HN: Pg_disorder – shuffle or reverse unordered SELECT results

https://github.com/viralpraxis/pg_disorder
1•viralpraxis•12m ago•0 comments

How to Hack a Crypto Currency Company

https://www.itsecurityawareness.ie/news/88/how-to-hack-a-crypto-currency-company-
1•Rubayo•13m ago•1 comments

Show HN: Notmutt – Async Terminal Mail client with HTML render, images, Lua

https://github.com/fishman/notmutt
1•rjzzleep•13m ago•0 comments

Show HN: Minus HDMI hardware ad-blocker with local vision model

https://github.com/garagehq/Minus-streaming-stick
1•NickySlicks•13m ago•1 comments

Berlin artist makes people invisible to the city's first AI surveillance cameras

https://simonweckert.com/digitalcamouflage.html
3•dlvr•13m ago•0 comments