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!

Nancy Grace Roman Space Telescope

https://science.nasa.gov/mission/roman-space-telescope/
1•JumpCrisscross•18s ago•0 comments

Thailand: Where does the planned cut in visafree stays from 60 to 30 days stand?

https://visasnews.com/en/thailand-where-does-the-planned-cut-in-visa-free-stays-from-60-to-30-day...
1•Markoff•1m ago•0 comments

The first AI use case that genuinely saves me time (outside of programming)

https://ducret.dev/grocery-shopping-with-ai/
1•tducret•2m ago•0 comments

Quantifying Colour

https://ekunazanu.foo/lab/quantifying-colour/
3•vismit2000•4m ago•0 comments

Parsing the Infamous Japanese Postal CSV

https://www.dampfkraft.com/posuto.html
1•birdculture•5m ago•0 comments

Whats4Linux: A Desktop Linux Client for WhatsApp

https://github.com/lugvitc/whats4linux
1•derpitron•5m ago•1 comments

Heat Waves Are Disproportionately Harming People with Schizophrenia

https://www.wired.com/story/heat-wave-schizophrenia/
2•karakoram•6m ago•0 comments

Smartphone Shipments Set for Record 16.7% Drop in 2026, as Memory Crisis Hits

https://www.idc.com/resource-center/blog/smartphone-shipments-set-for-record-16-7-drop-in-2026-as...
1•clumsysmurf•6m ago•0 comments

Manchester Airports breach exposes data on 8.7M customers

https://forgeeks.net/manchester-airports-data-breach-8-7-million/
1•kuuuzya•7m ago•0 comments

Show HN: Scraper that probes a site before promising it works

https://github.com/vhsgreed/scrapeforge
1•vhsgreed•9m ago•0 comments

Show HN: Skillbased Versioning v1.0.2

https://www.skillbased.space/
1•baalimago•11m ago•0 comments

Show HN: Seedeep – I couldn't see what Claude Code was doing, so I drew it

https://github.com/duqaXxX/seedeep
1•duqaxxx•12m ago•0 comments

Reproducible Builds: Wie Man Python-Software Vor Supply-Chain-Angriffen Schützt

https://linuxnews.de/reproducible-builds-wie-man-python-software-vor-supply-chain-angriffen-schue...
1•manfred-kaiser•14m ago•0 comments

Ex-White House teleprompter operator ordered to pay $172k for Trump speech bets

https://www.bbc.com/news/articles/c4gj2dl4x52o
1•tartoran•19m ago•0 comments

Thomas Massie reups PRIME Act after Trump meat processing order

https://thehill.com/homenews/house/6058340-massie-prime-act-trump-meatpacking-order/
1•bilsbie•21m ago•0 comments

GrapheneOS project: pixel 11 no longer supports hardware memory tagging (MTE)

https://bsky.app/profile/grapheneos.org/post/3mua32q4ds22e
2•400thecat•21m ago•1 comments

Music in Even Parts

https://adelpha.studio/learn/euclidean-rhythms/
2•vismit2000•23m ago•0 comments

80% Prompt Injection Success Rate Against Claude Auto Mode

https://embracethered.com/blog/posts/2026/breaking-claude-code-opus-5-and-automode/
2•gr_norm•24m ago•0 comments

Metric Spaces – An Interactive Exploration

https://evan-leach.github.io/metric-spaces/
1•vismit2000•26m ago•0 comments

The fixer at the center of FIFA's meltdown

https://www.politico.com/news/2026/08/29/mario-gallavotti-infantino-fixer-center-fifa-meltdown-01...
2•JumpCrisscross•26m ago•0 comments

Google further buries search results under AI mode

https://www.theverge.com/tech/986364/google-search-ai-overviews-auto-expand
2•chicken-stew•27m ago•1 comments

Thousands of Interstellar Objects May Be Lurking in Our Solar System

https://www.404media.co/thousands-of-interstellar-objects-may-be-lurking-in-our-solar-system/
3•Brajeshwar•29m ago•0 comments

Firefox Addon – "summary" link for Hacker News posts

https://addons.mozilla.org/en-GB/firefox/addon/hacker-news-summary/
1•JSeiko•30m ago•1 comments

Show HN: Too many articles to read, let random algorithm decide what I read next

https://read.mustakim.dev/bored
3•mustak_im•32m ago•1 comments

Iceland votes on whether to restart talks on joining European Union

https://www.nbcnews.com/world/europe/iceland-votes-whether-restart-talks-joining-european-union-r...
1•newgolobal•33m ago•0 comments

QDay Algebra 2M prime factor in nanoseconds

https://zenodo.org/records/22157593
2•GeometryKernel•33m ago•0 comments

Tiny World Model

https://paul.mou.dev/posts/2026-08-16-twm/
2•ppymou•34m ago•0 comments

Let the Clicks Speak: A Simple Score for Popularity-Driven Ranking

https://medium.com/@oleber_62556/let-the-clicks-speak-a-simple-score-for-popularity-driven-rankin...
1•softwaredoug•35m ago•0 comments

Quis Custodiet Ipsos Custodes?

https://en.wikipedia.org/wiki/Quis_custodiet_ipsos_custodes%3F
3•tosh•40m ago•1 comments

News-deframe: Structural comparison of how news outlets frame the same event

https://github.com/422August/news-deframe
1•August0422•42m ago•0 comments