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!

Clop Returns with Custom Implant in Mass-Extortion Campaign

https://reliaquest.com/blog/clop-returns-with-custom-implant-in-mass-extortion-campaign/
1•nyku•3m ago•0 comments

Many Ways to Win

https://stephango.com/moats
1•futurecat•6m ago•0 comments

Nitrogen pollution from the sky is a likely driver of global vegetative greening

https://nsojournals.onlinelibrary.wiley.com/doi/10.1002/ecog.08631
1•vixen99•8m ago•0 comments

The Great ADHD Myth?

https://www.theguardian.com/tv-and-radio/2026/aug/18/the-great-adhd-myth-review-most-controversia...
1•Gupie•8m ago•0 comments

Oh Yeah That Guy

https://ohyeahthatguy.com/
1•4pkjai•9m ago•0 comments

"The most terrifying 11 hours of my life"

https://meduza.io/feature/2026/08/17/samye-zhutkie-11-chasov-v-zhizni
1•Michelangelo11•11m ago•0 comments

CapsLock Enhancement

http://capslock.vonng.com/
1•figmert•23m ago•0 comments

High Capacity Color Barcode

https://en.wikipedia.org/wiki/High_Capacity_Color_Barcode
1•plaguna•25m ago•0 comments

The Equations of Reasoning – Pathway AI

https://pathway.com/research/the-equations-of-reasoning
2•unprovable•25m ago•0 comments

OpenAI makes ChatGPT less 'human' for teens in new safety update

https://www.bbc.com/news/articles/czxqz91n5n8o
1•1659447091•25m ago•0 comments

US Military funding propelled China's robot dogs

https://www.reuters.com/world/asia-pacific/how-us-military-funding-propelled-chinas-robot-dogs-20...
2•ironyman•28m ago•0 comments

10M for Spirit Airlines data, a bargain and a question?

1•srguarapo•31m ago•0 comments

GLM 5.3 Available in OpenRouter

https://openrouter.ai/z-ai/glm-5.3
1•herlon214•32m ago•0 comments

BeneFITs: Bypassing Signature Verification in U-Boot SPL

https://www.binarly.io/blog/signature-verification-bypass-in-u-boot-spl
2•n0blenote•37m ago•0 comments

Thoughts about Scaling Law (from Z.ai Cofounder)

https://xcancel.com/jietang/status/2089941544581403107#m
2•theanonymousone•38m ago•0 comments

Show HN: Carbon8r – Option+click React elements to open their source (React 19)

2•carboni-rob•38m ago•0 comments

Show HN: AI PR reviewer built to stay quiet – 89% of merged PRs got no comments

https://github.com/Kyeom1997/pr-sage
1•gudrua1543•42m ago•0 comments

The Myth of Jewish High IQ

https://forbiddentexts.substack.com/p/the-myth-of-jewish-high-iq
2•LAC-Tech•50m ago•0 comments

Dry – Principia Mathematica

https://www.futilitycloset.com/2026/08/18/dry/
1•beardyw•51m ago•1 comments

Cropping Images with CSS While Keeping a Focal Point in the Center (2023)

https://odland.dev/2023/02/26/cropping-images-with-css-while-keeping-a-focal-point-in-the-center....
2•lukasgelbmann•55m ago•0 comments

Remote-Timer-as-a-Service: Microarchitectural Leakage in the Cloud

https://arxiv.org/abs/2608.17043
1•sbulaev•55m ago•0 comments

The AI Revolution – History Repeating Itself – On Economics

https://www.alanbonnici.com/2026/07/the-ai-revolution-history-repeating_01939218328.html
1•TTMO•58m ago•0 comments

Show HN: Veyra - Self evolving AI agent

https://github.com/iondodon/veyra
1•iondodon•1h ago•0 comments

Elite Deformation

https://thecritic.co.uk/elite-deformation/
2•barry-cotter•1h ago•0 comments

Yoshua Bengio, the godfather of AI, explains the risks of AI [video]

https://www.youtube.com/watch?v=fvvvtbBvh6Q
2•micku7zu•1h ago•0 comments

What the Heck Is Hyperscale? (2020)

https://www.kc8apf.net/2020/05/what-the-heck-is-hyperscale/
1•JW_00000•1h ago•2 comments

How to Solve a Grid-Based Logic Puzzle

https://logic.puzzlebaron.com/how-to-solve-a-logic-puzzle.php?t=introduction
2•soupspaces•1h ago•0 comments

Meta and Google mobile apps gorge on user data: Study

https://www.theregister.com/personal-tech/2026/08/18/meta-and-google-mobile-apps-gorge-on-user-da...
1•nyku•1h ago•0 comments

UK ATC Partners with Google to Avoid Contrails

https://blog.google/innovation-and-ai/models-and-research/google-research/blue-skies/
1•a_paddy•1h ago•2 comments

A Thermodynamic Failure of the Soul

https://sightlessscribbles.com/posts/a-thermodynamic-failure-of-the-soul/
3•robin_reala•1h ago•0 comments