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!

Show HN: Servitor – simplest way to run local dev containers

https://sndsabin.github.io/servitor/
1•havu12•2m ago•0 comments

Bending Spoons to Acquire Airtable

https://twitter.com/fedesimio/status/2084539635829465266
1•jbegley•3m ago•0 comments

Homebench – Benchmark local LLMs for speed, memory, and quality

https://github.com/david-g-3654/homebench
1•davai-g•4m ago•0 comments

AI Appliances: AI Agents and Agencies in YAML

https://leanpub.com/kdeps
1•jjuliano•5m ago•0 comments

Show HN: Clawx – A package manager where packages are agent tasks

https://github.com/debarshibasak/clawx
1•debarshri•7m ago•0 comments

57,000 tines lighter than Loom (download the HTML)

https://www.dropbox.com/scl/fi/kex0qo53gkxy8jb4cqaox/deck-recorder.html?dl=0&e=1&noscript=1&rlkey...
1•astonfred•8m ago•0 comments

ZeroLeaks: Automated red teaming for AI agents

https://zeroleaks.ai
1•lucknite•12m ago•0 comments

Why the Fed Can Look Hawkish. The Machinery for Financial Repression Is Ready

https://anishgodha.com/2026/08/04/why-the-fed-can-look-hawkish-the-pieces-of-financial-repression...
1•anishgodha•12m ago•0 comments

The US is not a democracy but an oligarchy, study concludes (2014)

https://www.upi.com/Top_News/US/2014/04/16/The-US-is-not-a-democracy-but-an-oligarchy-study-concl...
2•giov4•12m ago•0 comments

Flare Redact – scoped secret redaction for JavaScript AI agents

https://github.com/flare-collection/flare-redact
1•umudhasanli•13m ago•0 comments

An Honest Review of AI Programming

https://mropert.github.io/2026/08/04/an_honest_review_of_ai_programming/
2•ingve•17m ago•0 comments

FFmpeg 9.0

https://github.com/FFmpeg/FFmpeg/blob/n9.0/RELEASE_NOTES
24•gyan•22m ago•1 comments

The Shape of Things to Come

https://yegge.ai/essays/model-welfare/
1•j4yav•22m ago•0 comments

Bending Spoons makes first post-IPO acquisition with $1.3B Airtable deal

https://live.euronext.com/en/financial-news/bending-spoons-makes-first-post-ipo-acquisition-13-bi...
2•riffraff•25m ago•0 comments

You Can Build Tools Yourself

https://jlopes.eu/blog/build-your-own-browser-tools/
2•offeringofpie•25m ago•2 comments

Google's synced passkeys can be stolen by malware

https://www.bleepingcomputer.com/news/security/new-pass-ta-key-attacks-let-malware-hijack-google-...
3•BlueBerry2001•27m ago•0 comments

OSM2CDR

https://osm2cdr.com/
1•altilunium•27m ago•0 comments

What the Bliss Taught Us

https://daniel.haxx.se/blog/2026/08/03/what-the-bliss-taught-us/
2•knuckleheads•33m ago•0 comments

Re: Ghosts in My Phone

https://rldane.space/re-ghosts-in-my-phone.html
1•meysamazad•33m ago•0 comments

NoFaceScan

https://nofacescan.app/
1•Cider9986•34m ago•0 comments

Getting a Haircut

https://jasonthai.me/posts/on-getting-a-haircut
1•meysamazad•34m ago•0 comments

AUR

https://afranca.com.br/aur/
1•meysamazad•34m ago•0 comments

The A.I. Revolt Is Here

https://www.nytimes.com/2026/08/04/opinion/ezra-klein-podcast-jasmine-sun.html
3•doener•36m ago•0 comments

Ask HN: Why are comments under news articles gone?

1•sam_lowry_•37m ago•2 comments

Apple seeks preliminary injunction against OpenAI in trade secrets case

https://www.reuters.com/legal/litigation/apple-seeks-preliminary-injunction-against-openai-trade-...
1•jack0111•40m ago•0 comments

A My-Name-in-Products Page

https://daniel.haxx.se/my-name-in-products.html
1•indiantinker•41m ago•0 comments

'Nobody cares' Turkish farmers bearing the burden of UK's plastic waste problem

https://www.theguardian.com/environment/2026/aug/04/plastic-waste-microplastics-exports-recycling...
2•hebelehubele•43m ago•0 comments

Show HN: Lex – a calm language-learning toolkit for 34 languages

https://lex.school
1•Ako03•46m ago•1 comments

Migration numbers are a distributed counter without coordination

https://vvka-141.github.io/pgmi/articles/migration-numbers-distributed-counter/
1•aevlampiev•47m ago•0 comments

Show HN: Autonomous daily AI news briefing blog

https://ai0.news/
1•Komte•48m ago•0 comments