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!

Consciousness and Orch OR

https://hameroff.arizona.edu/research-overview/orch-or
1•andsoitis•2m ago•0 comments

Badc – optimizing cross-platform C compiler built with Claude

https://github.com/kromych/badc
1•kromych•2m ago•1 comments

Show HN: Browse the web your way

https://browse-your-way.vercel.app
1•MaxLeiter•4m ago•0 comments

Puppeteer Stealth: Complete Guide to Avoiding Detection

https://scrapfly.io/blog/posts/puppeteer-stealth-complete-guide
1•ankitg12•6m ago•0 comments

Show HN: Eye-brain-hand – a quick neuro coordination and memory test

https://ubershmekel.github.io/eye-brain-hand/
1•ubershmekel•9m ago•0 comments

Absolute State of Unreal 2026

https://www.joewintergreen.com/absolute-state-of-unreal-2026/
1•anonymousab•11m ago•0 comments

ShipFast: Production-ready deploy templates for devs who hate DevOps

https://dpaste.com/94VY3XYU9
1•shipfastdev•12m ago•1 comments

Danish privacy activist Lars Andersen raided by police

https://xcancel.com/LarsAnders1620/status/2068208864747540516#m
11•I_am_tiberius•17m ago•0 comments

Ask HN: Favorite Sorting Algorithm?

1•akashwadhwani35•22m ago•1 comments

Ask HN: Do you have an unusual income source

3•xupybd•25m ago•0 comments

Japan to raise visa fees for foreign nationals

https://www.japantimes.co.jp/news/2026/06/20/japan/japan-raise-visa-fees/
4•geox•28m ago•0 comments

Cini, an app to rank movies and shows

1•jtsilver123•33m ago•1 comments

Sharing a Good One

1•SharingAGoodOne•34m ago•0 comments

Show HN: 2Flights – Track your flights; delays and stats (iOS/Android)

https://2flights.io
1•umuslitdinov•37m ago•0 comments

Stop Fearing Incidental Findings

https://ostro.ws/post-healthcare
1•robbieo•39m ago•1 comments

About the writing process (or lack thereof)

https://www.thefoxfirepub.com/blog/blog-post-title-four-lr658-tcthp-wf5mw-mx4m8-tgp6b
1•FantasticPulp•51m ago•0 comments

Chinas War on Female Delusion

https://mamathemagazine.com/chinas-war-on-female-delusion/
14•trojanalert•59m ago•0 comments

Samsung Electronics brings ChatGPT and Codex to employees

https://openai.com/index/samsung-electronics-chatgpt-codex-deployment/
1•doppp•1h ago•0 comments

How do you process asynchronous tasks today?

https://meerkatagents.com/
1•kannanreghu•1h ago•1 comments

SC law legalizes pinball for youth, ending decades-old prohibition

https://scdailygazette.com/2026/06/17/sc-law-legalizes-pinball-for-youth-ending-decades-old-prohi...
3•eric_h•1h ago•0 comments

Magpie-search – a federated search engine for LLM's/agents

https://github.com/xfloukiex-lab/magpie-search
1•Floukie•1h ago•0 comments

Niaid funded Wuhan Institute of Virology coronavirus gain-of-function research

https://www.dni.gov/index.php/newsroom/press-releases/press-releases-2026/4166-pr-11-26
8•stinkbeetle•1h ago•2 comments

China targets U.S. firms in retaliation for Pentagon blacklist

https://www.cnbc.com/2026/06/22/china-trade-curbs-us-companies-export-controls-procurement-exclus...
2•ilreb•1h ago•0 comments

Timesharing on the MIT Weather Radar PDP-8/IX

https://retrocomputingforum.com/t/timesharing-on-the-mit-weather-radar-pdp-8-ix/5569
1•signa11•1h ago•0 comments

ILX Launcher – a developer cockpit for Python apps (hot reload, crash capture)

https://github.com/ilxstudio/ILX-Launcher
1•ilxstudio•1h ago•1 comments

Hundred Hour Workweek

https://jeremynixon.net/100-hr-workweek
1•jeremynixon•1h ago•1 comments

Lloyd's Lab: Accelerating innovation in the insurance industry (2023) [pdf]

https://assets.lloyds.com/media/dc22cd29-1c4e-441c-a872-e1bf5ce9142a/Lloyds%20Lab_impact%20report...
1•mooreds•1h ago•0 comments

When AI Agents Do the Work, What Do We Lose?

https://milvus.io/blog/when-ai-agents-do-the-work-what-do-we-lose.md
1•Fendy•1h ago•0 comments

Show HN: Crespo – Tree-sitter AST blueprints instead of raw code for LLMs

https://github.com/hrudulmmn/crespo
2•ByteJoseph•1h ago•0 comments

Show HN: I applied Lyapunov stability theory to detect when LLM agents spiral

https://github.com/vishal-dehurdle/state-harness
1•visha1v•1h ago•0 comments