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!

AI to Kids by Letting Them Tweak Local Chatbots [video]

https://www.youtube.com/watch?v=fNkt41q7eqs
1•dbreunig•12m ago•0 comments

Rsync 3.5 Released as "Extraordinary" Update to Fix 33 Security Issues

https://www.phoronix.com/news/Rsync-3.5
1•Bender•12m ago•0 comments

Long Story Short: Daily word game

https://gizmodo.com/long-story-short-wants-to-be-the-wordle-of-editing-bad-sentences-2000797842
1•akashwadhwani35•14m ago•0 comments

General Dynamics Failed to Build Artillery Shells for the Army

https://www.propublica.org/article/general-dynamics-artillery-factory-failed
2•colinprince•17m ago•0 comments

Is Bending Spoons Good for Startups?

https://s-1.vercel.app/posts/bending-spoons-a-capital-cycle-play/
2•Altaba•17m ago•0 comments

Show HN: UTC Time - live clock, ISO 8601, Unix timestamp

https://utctime.app/
1•nadermx•22m ago•0 comments

DeepSeek V4 Pro 0813: Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/deepseek-v4-pro
1•theanonymousone•23m ago•0 comments

Install Manticore Search with one command

https://medium.com/@s_nikolaev/install-manticore-search-with-one-command-8ab5ba07a06b
1•snikolaev•28m ago•0 comments

Specula: Scaling formal specs for autonomous model checking of system code

http://muratbuffalo.blogspot.com/2026/08/specula-scaling-formal-specifications.html
1•matt_d•31m ago•0 comments

16GB EGPU for AI Inference, $699

https://www.amazon.com/GIGABYTE-Graphics-128-bit-Server-Grade-Thunderbolt/dp/B0GKFHSPN8
2•shrubble•31m ago•3 comments

Show HN: I asked Claude to write DDIA as a live comic

https://systemscomic.com/ddia/read
2•samuelxing•32m ago•0 comments

How the smiley face was born

https://www.history.com/articles/smiley-face-history
2•inatreecrown2•37m ago•0 comments

Edge is dropping older extensions(Manifest V2), affecting popular privacy tools

https://www.malwarebytes.com/blog/news/2026/08/edge-is-dropping-older-extensions-affecting-popula...
5•BearBest•42m ago•0 comments

You're Absolutely Right

https://www.lesswrong.com/posts/u8TdDutDyaSxG76hn/you-re-absolutely-right
1•LinchZhang•55m ago•1 comments

Show HN: Rule-lite – Tiny dependency-free TS engine for JSON conditional rules

https://github.com/tejas821/rule-lite
1•tejas821•55m ago•0 comments

From assistance to execution: How enterprises put AI to work

https://openai.com/index/how-enterprises-put-ai-to-work/
2•vcfgdev•57m ago•0 comments

A unified CLI for native OS keychains – x keyring

https://www.x-cmd.com/blog/260811/
1•Zhengqbbb•1h ago•0 comments

OpenLiving - A data center you can live in [video]

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

Pixel Watch 5 adds a feature Apple Watch desperately needs

https://www.cultofmac.com/news/pixel-watch-5-insulin-resistance-trends
4•ValentineC•1h ago•1 comments

Examples for use of AI and especially LLMs in major mathematical developments

https://mathoverflow.net/questions/502120/examples-for-the-use-of-ai-and-especially-llms-in-major...
1•vismit2000•1h ago•0 comments

Show HN: Agent Memory Leaderboard – first public results for AI memory systems

https://agentmemoryleaderboard.ai/leaderboard/academic/textual
2•IreneAI•1h ago•0 comments

SLAC: CPU-to-GPU Side-Channel Attacks via System-Level Cache on Apple Silicon

https://arxiv.org/abs/2608.09075
3•sbulaev•1h ago•0 comments

Clamiga: Common Lisp for the Amiga

https://nnamgreb.de/blog/Clamiga+-+Common+Lisp+for+the+Amiga
3•emptybits•1h ago•0 comments

Dart 3.13

https://dart.dev/blog/announcing-dart-3-13
2•wstrange•1h ago•0 comments

Show HN: I'm tired replying my social media visitors, I let AI agent handle it

https://www.agle.app/
1•tapriliando•1h ago•0 comments

Notation as a Tool of Thought (1980)

https://www.jsoftware.com/papers/tot.htm
2•colinprince•1h ago•0 comments

Tech adds phone tracking to license plate readers, associating devices with cars

https://theconversation.com/new-tech-adds-phone-tracking-to-license-plate-readers-associating-dev...
9•asdefghyk•1h ago•1 comments

Two weeks later and Adsense is still serving up Scareware

https://bsky.app/profile/redbluething.bsky.social/post/3mswnjfufs22v
2•redbluething•1h ago•0 comments

'Near-autonomous' AI agents attack Taiwan's nuclear safety agency

https://www.theregister.com/security/2026/08/12/near-autonomous-ai-agents-attack-taiwans-nuclear-...
5•Bender•1h ago•0 comments

Tailscale says deeply buried 16-year-old SQLite bug caused last year's outages

https://www.theregister.com/databases/2026/08/12/tailscale-says-deeply-buried-16-year-old-sqlite-...
4•Bender•1h ago•0 comments