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!

The OpenAI and Anthropic AI Hacking Sprees Are a Messy New Legal Frontier

https://www.wired.com/story/openai-anthropic-ai-hacking-sprees-illegal/
1•joozio•34s ago•0 comments

A Hermes Agent Skill Looping Between Codex and Claude Code

https://codenote.net/en/posts/issue-to-pr-autonomous-loop-hermes-agent-skill/
1•yruzin•55s ago•0 comments

Waxy Refresh: Supercut.org – 20% of Videos Hosted On Vimeo No Longer Accessible

https://waxy.org/2026/07/waxy-refresh-supercut-org/
1•tech234a•2m ago•0 comments

IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requests

https://arxiv.org/abs/2607.20759
2•yruzin•2m ago•0 comments

The Kotlin Benchmark for AI Coding Agents

https://blog.jetbrains.com/kotlin/2026/07/introducing-the-kotlin-benchmark-evaluate-ai-coding-age...
2•yruzin•3m ago•0 comments

Tesla Spyware

https://ma.tt/2026/07/tesla-spyware/
2•speckx•3m ago•0 comments

Floundering A.I. 'Nostradamus' Hedge Fund Is Rescued by Rival

https://www.nytimes.com/2026/07/30/business/artificial-intelligence-situational-awareness-citadel...
2•thm•5m ago•0 comments

The Process Is the Point

https://seekingtrust.substack.com/p/the-process-is-the-point-on-asymmetric
3•FinnLobsien•5m ago•0 comments

LLMs Can't Jump [pdf]

https://www.tomzahavy.com/files/llms-cant-jump.pdf
3•root-parent•8m ago•0 comments

DNS propagation checker that shows the results as a box of 24 donuts

https://donutdns.com
3•axeldelat•8m ago•2 comments

I ♥ RSS – A directory of people who love RSS

https://andrewshell.org/2026/07/i-%e2%99%a5-rss/
4•speckx•9m ago•0 comments

Twelve Years Without a VPN

https://khessin.de/twelve-years-without-a-vpn/
2•taubek•9m ago•0 comments

The Dartmouth Workshop: The $7,500 investment that gave birth to AI

https://www.france24.com/en/technology/20260801-the-dartmouth-workshop-the-7-500-investment-that-...
2•hackthemack•9m ago•0 comments

Ranked: Where the iPhone Costs the Most in 2026

https://www.visualcapitalist.com/ranked-where-iphones-cost-the-most-in-2026/
2•cyberlurker•10m ago•0 comments

World Radio History

https://www.worldradiohistory.com/index.htm
2•gregsadetsky•16m ago•0 comments

Kaisel – Routes as Values. Dart 3 Native Router for Flutter

https://kaisel.dev/
4•TheWiggles•16m ago•0 comments

Franken.domains: Stitched-Together Domains, Because Every .com Is Taken

https://franken.domains/
3•klausbreyer•17m ago•0 comments

Amazon spent $1.8M using Claude for menial coding task, went 860% over budget

https://www.tomshardware.com/tech-industry/artificial-intelligence/amazon-accidentally-spent-usd1...
2•PLenz•17m ago•0 comments

US authorities see 'significant escalation' in attacks on water system devices

https://www.cybersecuritydive.com/news/us-authorities-escalation-attacks-water-system-devices/826...
3•ripe•19m ago•0 comments

Simplicity

https://commandcenter.blogspot.com/2023/12/simplicity.html
3•pbohun•20m ago•0 comments

I Fired My AI Assitant

https://chreke.com/posts/i-fired-my-ai-assistant
3•speckx•23m ago•0 comments

When AI Starts Writing Systems Code

https://www.coreauto.com/blog/when-ai-starts-writing-systems-code
1•skidrow•24m ago•0 comments

We stopped using RSC on Tanstack.com

https://tanstack.com/blog/we-stopped-using-rsc-on-tanstack-com
1•agos•24m ago•0 comments

An AI radio station that draws a live comic of its hosts' thoughts

https://hiveweaver.fm/en/
1•Yesbert•24m ago•0 comments

An Open Letter to AI for Generating Gnome Shell Extensions

https://blogs.gnome.org/jrahmatzadeh/2026/07/27/ego-ai-reference/
1•Shock9889•25m ago•0 comments

Arch Linux disables AUR package adoption to stop malware flood

https://www.bleepingcomputer.com/news/security/arch-linux-disables-aur-package-adoption-to-stop-m...
1•Brajeshwar•25m ago•0 comments

Better tools made Copilot code review worse. Here's how we actually improved it

https://github.blog/ai-and-ml/github-copilot/better-tools-made-copilot-code-review-worse-heres-ho...
1•opwizardx•26m ago•0 comments

Go 1.27 Interactive Tour

https://victoriametrics.com/blog/go-1-27/index.html
1•birdculture•26m ago•0 comments

Show HN: Goulash – heckler/helper to local-LLM your shell as little as possible

https://github.com/chaboud/goulash
1•chaboud•27m ago•0 comments

Show HN: An MCP server that knows what that error message means

https://errors.standardbeagle.com/
1•andybrummer•28m ago•0 comments