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!

Duane Arnold

https://tomasbjartur.substack.com/p/duane-arnold
1•zetalyrae•11s ago•0 comments

Decimen Optical Transfer: fountain-coded QR file transfer

https://github.com/bashalarmistalt/decimen-optical-transfer/
1•gloxkiqcza•15s ago•0 comments

How do I get users on my vibecoded website?

https://www.jobblast.nl/
1•k7_5831•1m ago•1 comments

Promote.chat: AI Marketing Agent for Vibe Coders

https://www.promote.chat/
1•alokjnv10•1m ago•0 comments

Tool search: Finding the right tool at the right time

https://commandline.microsoft.com/tool-search-toolboxes-foundry/
1•0xchamin•2m ago•0 comments

Keep It Real: A Schema-Level Deferral Channel for Concise LLM Dialogue [pdf]

https://raw.githubusercontent.com/noamt/kir/cfdc97de467de8d84d60f073773c0dcfd9975849/paper/arxiv/...
1•beerdappel•2m ago•1 comments

Founding Member for Prodigy

1•samayashar•3m ago•0 comments

Android rolls out local 'Documents' backup that syncs to Google Drive

https://9to5google.com/2026/07/30/android-documents-local-backup/
1•ivell•4m ago•0 comments

LinkedIn Is Cracking Down on 'AI Slop' with New Reporting Tool

https://www.bloomberg.com/news/articles/2026-07-30/linkedin-is-cracking-down-on-ai-slop-with-new-...
1•mancerayder•5m ago•0 comments

Winamp aims for a comeback with a new music player powered by Deezer

https://techcrunch.com/2026/07/29/winamp-aims-for-a-comeback-with-a-new-music-player-powered-by-d...
2•AdmiralAsshat•7m ago•0 comments

Department of Commerce takes equity stake in 7 private semiconductor firms

https://www.nist.gov/news-events/news/2026/07/department-commerce-announces-letters-intent-7-comp...
1•throw0101d•7m ago•0 comments

About 60k migrants arrive in Ceuta in 24 hours, Spanish territory's leader says

https://www.bbc.com/news/articles/cx2kp639yx4o
1•bbg2401•8m ago•0 comments

Man Accused of Spying for Iran at British Air Base in Cyprus

https://www.nytimes.com/2026/07/31/world/europe/iran-spy-uk-air-base-cyprus-sultanov.html
1•jbegley•12m ago•0 comments

New York Has Sued Kalshi for Running Illegal Gambling Operation

https://ag.ny.gov/press-release/2026/governor-hochul-and-attorney-general-james-announce-new-york...
1•impish9208•13m ago•0 comments

Warner Bros. Deal Collapse Would Cost the Ellisons $9.8B

https://finance.yahoo.com/media-advertising/articles/warner-bros-deal-collapse-cost-184428975.html
1•randycupertino•14m ago•1 comments

Anthropic says its AI models hacked 3 organizations during testing

https://apnews.com/article/anthropic-ai-models-hack-cybersecurity-b0a2c284b981de79c55e2a33712f4bec
1•bildiba•15m ago•1 comments

AI's Execution Problem

https://time.com/article/2026/07/20/ai-execution-problem/?es_id=70fefe0c9f
2•Gigacore•17m ago•0 comments

Just tried DeepSeek V4 Flash 0731 (she got her brain updated again)

https://www.reddit.com/r/consentbar/comments/1vbpsc1/just_tried_deepseek_v4_flash_0731_and_wow_th...
1•genesem•18m ago•0 comments

Three Myths on the Chinese Economy

https://zixuanma.blog/p/three-myths-on-the-chinese-economy
1•surprisetalk•18m ago•0 comments

Show NH: FreqWave EQ – An 8-band parametric audio equalizer for browsers

https://chromewebstore.google.com/detail/freqwave-eq/emikokoknlgeiloipjheoafjjeoicjap
1•borislav_gn•20m ago•1 comments

Show HN: I built an AI that reads German real estate listings for buyers

https://immo-lens.com/?lang=en
1•martinvoelker•20m ago•0 comments

Path of Exile 2: Shaders and Device Removed Issues Fixed [video]

https://www.youtube.com/watch?v=XDEJLOHcdWw
1•James87211•20m ago•1 comments

We ensure agents leave feedback on our Docs

https://medusajs.com/blog/two-things-every-mcp-author-should-add/
3•amoopa•21m ago•0 comments

We track 4400 technologies in 165 categories used on websites

https://www.wmtips.com/technologies/
1•theanonymousone•22m ago•0 comments

Europe gets ready to police frontier AI

https://www.theparliamentmagazine.eu/news/article/europe-gets-ready-to-police-frontier-ai
1•perelin•24m ago•0 comments

Cursor for iPad

https://cursor.com/changelog/ipad
1•slymax•26m ago•0 comments

Diffuse puffs of "missing" matter surround most galaxies

https://news.mit.edu/2026/missing-matter-diffuse-puffs-surround-most-galaxies-0721
1•speckx•26m ago•0 comments

Calibre – E-Book Management

https://calibre-ebook.com/
1•routeroff•27m ago•0 comments

WordPress and Drupal score almost identically, but fail in opposite directions

https://replatformradar.com/research/cms-migration-readiness-2026
1•replatformradar•28m ago•1 comments

"Cool" façades expected to reduce summer building temperature

https://www.aimplas.net/blog/cool-facades-expected-reduce-summer-building-temperatures/
1•JeanKage•28m ago•0 comments