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!

Fly-paradise: Fruit flies on your Windows desktop

https://github.com/pyd021226/fly-paradise
1•csmantle•1m ago•0 comments

SDCC – Small Device C Compiler

https://sdcc.sourceforge.net/
2•lioeters•6m ago•0 comments

Swarm_ethics.txt

https://www.guidavid.com/writing/autopoietic-ethics-constitution.txt
1•gdss•8m ago•0 comments

Managers Are Catalysts

https://laughingmeme.org/2026/09/14/managers-are-catalysts.html
1•mavelikara•10m ago•0 comments

Opus 5 has a Noun Problem

https://www.reddit.com/r/ClaudeCode/comments/1wk0s2i/opus_5_has_a_noun_problem/
1•nonethewiser•13m ago•1 comments

Science Is Open Software

https://jepedersen.dk/blog/202505_research/
6•jegp•17m ago•2 comments

Show HN: LaTeX to Image Converter – Free PNG, SVG and JPG

https://latextoimg.com
1•light001•20m ago•0 comments

Let's Fix Bug Bounty

https://fixbugbounty.com/
2•nwang783•23m ago•0 comments

The Rise of Parasite Authors

https://www.theatlantic.com/technology/2026/09/ai-authors-impersonating-writers-amazon/688709/
3•pseudolus•23m ago•1 comments

Show HN: Swormhörn a one-of-one cicada synthesizer [video]

https://www.youtube.com/watch?v=GHiStriaaso
2•zorlack•26m ago•0 comments

Elon Musk and Tesla Forged a New EV Path

https://spectrum.ieee.org/elon-musk-tesla
4•vinhnx•29m ago•0 comments

Einstein on the Atomic Bomb (1945)

https://www.theatlantic.com/magazine/archive/1945/11/einstein-on-the-atomic-bomb/656626/
3•cisc•33m ago•0 comments

Official mold linker rewrite in Rust

https://github.com/rui314/mold
2•adamnemecek•35m ago•0 comments

I found love at an Irish matchmaking festival – and I want others to do the same

https://www.bbc.com/news/articles/cw5y4jz6k2p3o
1•rmason•37m ago•1 comments

The Contract on America

https://3quarksdaily.com/3quarksdaily/2026/09/the-contract-on-america.html
6•hkhn•37m ago•2 comments

Plotly for Highly Customizable and Non-Interactive Data Visualization

https://chris-parmer.com/plotly-for-highly-customizable-and-non-interactive-data-visualization/
1•chriddyp•40m ago•0 comments

Master of Malt Hacked, User Data Compromised

https://www.masterofmalt.com/sorry/
1•Naracion•41m ago•0 comments

Prompts Aren't Real

https://evaluation.club
1•mcfunley•43m ago•1 comments

Kev – A Jev-Compatible API on top of DiffusionGemma running on Workers AI

https://kev.workers-ai-mle.workers.dev/
1•kflansburg•46m ago•1 comments

Gemini hacked three companies in first known breakout by Google's AI

https://www.reuters.com/business/gemini-hacked-three-companies-first-known-breakout-by-google-ai-...
6•usernomdeguerre•58m ago•3 comments

Nuclear tests at Mt. Mantap have reactivated intraplate faults

https://www.science.org/doi/10.1126/science.adx5917
1•geox•1h ago•0 comments

NIST Elliptic Curves Seeds Bounty (2023)

https://words.filippo.io/seeds-bounty/
1•greyface-•1h ago•0 comments

Google's Gemini becomes latest AI model to break out and hack computer systems

https://www.cnbc.com/2026/09/18/googles-gemini-becomes-latest-ai-model-to-break-out-and-hack-comp...
5•ahmedhossamdev•1h ago•1 comments

Australian government considers ban on smart glasses in public buildings

https://www.theguardian.com/technology/2026/sep/17/albanese-government-considers-world-leading-ba...
2•dabinat•1h ago•0 comments

Muse gets all your unclaimed money back!

https://auth.muse.ai/aymh/?origin=https%3A%2F%2Fmuse.ai
1•mayahalp•1h ago•0 comments

Show HN: Typesafe Java SDK (Unofficial)

https://github.com/QAInsights/typesafe-java-sdk
1•qainsights•1h ago•1 comments

The Race for 1000 Goals

https://1k.football/
1•anydigital•1h ago•0 comments

Rare Gene Drastically Raises Lung Cancer Risk in People Who Never Smoked

https://www.nytimes.com/2026/09/17/science/lung-cancer-gene-mutation-risk.html
2•bookofjoe•1h ago•1 comments

macOS Liquid Glass in VS Code: Cursed or Blursed?

https://alec.is/posts/macos-liquid-glass-and-vscode/
1•arm32•1h ago•0 comments

Federated Learning Is Not Private for Google GBoard Next Word Prediction [pdf]

https://arxiv.org/abs/2210.16947
1•thunderbong•1h ago•0 comments