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!

Garmin Autoland Demonstration [video]

https://www.youtube.com/watch?v=ZEe9SKfQrU4
1•marklit•1m ago•0 comments

Wazn-2B decision model: separating candidate encoding from candidate competition

https://huggingface.co/numidlabs/wazn-2b-v0.1
3•dmaniss•7m ago•0 comments

Generated and Suppressed Demand

https://lethain.com/generated-demand/
1•fagnerbrack•9m ago•0 comments

Latest and Most Common User Agents

https://useragents.me/
1•shaunpud•11m ago•0 comments

Empinet.dev – Free dev tools that process your data in the browser

https://empinet.dev/
1•digitalmahdi•17m ago•1 comments

Monte Kali

https://en.wikipedia.org/wiki/Monte_Kali
1•steve_wilson•21m ago•0 comments

Age Verification

https://frisk.space/posts/age-verification/
1•rapnie•27m ago•0 comments

The GIL: from the cache line to the eval loop

https://harut8.github.io/system-design/python-mastery/24-the-gil/
1•Har8•29m ago•0 comments

Teenager suspected of leading KillSec ransomware group

https://www.europol.europa.eu/media-press/newsroom/news/teenager-suspected-of-leading-killsec-ran...
3•jruohonen•29m ago•0 comments

What ownership means when agents write the code, Edgar Bermudez, sept.8 2026

https://medium.com/@viajesubmarino/what-ownership-means-when-agents-write-the-code-ae269f04ace5
1•based2•31m ago•0 comments

NIST AI SEC Core

https://airc.nist.gov/airmf-resources/airmf/5-sec-core/
1•based2•32m ago•0 comments

EU Enforcement AI Act

https://digital-strategy.ec.europa.eu/en/policies/enforcement-ai-act
2•based2•33m ago•1 comments

Nightwatch – a Mac menu-bar app that tells you when tonight is clear

https://github.com/rsutcliffe/nightwatch
1•delphidolphin•39m ago•0 comments

China Importer's Pre-Production Checklist

https://jpchair.com/
2•Dinajp•45m ago•0 comments

Show HN: AI search for every photo and every frame of video on macOS

https://github.com/allenv0/SCM
3•allenleee•45m ago•0 comments

I got targeted: Trying to get your credentials via a Git post-checkout hook

https://frankwiles.com/posts/i-got-targeted/
1•birdculture•47m ago•0 comments

"Ack, will follow up."

1•hmert•52m ago•2 comments

Show HN: Vinay – Like Instinct, for India, Lives in WhatsApp

https://getvinay.com/
2•lakshmananm•56m ago•0 comments

The Crawler Zoo – a live menagerie of web crawlers

https://crawlerzoo.com/
2•thunderbong•57m ago•0 comments

Why are paper cranes so iconic? (2022)

https://www.reddit.com/r/origami/comments/xymrdr/why_are_paper_cranes_so_iconic/
2•vismit2000•1h ago•0 comments

Hal 9000 Voice Assistant

https://github.com/campwill/hal-voice-assistant
1•vismit2000•1h ago•0 comments

The Agent Said It Was Done. The Database Disagreed

https://huggingface.co/blog/microsoft/thinkingbox
1•sbulaev•1h ago•0 comments

VGHF Digital Archive passes 5000 magazines. Here's what's next

https://gamehistory.org/5k-magazines/
7•rdmuser•1h ago•1 comments

This fancy computer runs Wall Street [video]

https://www.youtube.com/watch?v=KP6g_3iZDro
1•helloplanets•1h ago•0 comments

Authoritarian Tendencies of Android Developer Verification Program – Eval.blog

https://eval.blog/blog/authoritarian-tendencies-of-android-developer-verification-program/
1•0xcrypto•1h ago•0 comments

'This can't go on': thousands protest against housing crisis in Spain

https://www.theguardian.com/world/2026/oct/03/spain-housing-protest
20•akbarnama•1h ago•23 comments

BBC Domesday Project 40

https://www.theregister.com/offbeat/2026/10/04/spies-prime-ministers-and-balls-the-bbc-domesday-p...
1•defrost•1h ago•0 comments

Does gravity create reality? A shocking path to a theory of everything

https://www.newscientist.com/article/2526507-does-gravity-create-reality-a-shocking-path-to-a-the...
2•the-mitr•1h ago•1 comments

Improper redaction reveals Lincoln's Google Data Center water, electricity usage

https://www.1011now.com/2026/09/30/more-questions-than-answers-about-lincolns-google-data-center-...
1•theanonymousone•1h ago•0 comments

AI, Desire, and Fictional Characters

https://endsdontjustifythemeans.com/p/on-ai-desire-and-fictional-characters
1•BerislavLopac•1h ago•0 comments