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!

Should You Believe in Fate?

https://www.newyorker.com/culture/open-questions/should-you-believe-in-fate
1•littlexsparkee•56s ago•0 comments

Nvidia reports earnings beat as revenue more than doubles

https://www.cnbc.com/2026/08/26/nvidia-nvda-earnings-report-q2-2027-live-updates.html
2•tiahura•1m ago•0 comments

Bias-Free Gear Review Aggregator: Outdoor Gear Lab

https://www.outdoorgearlab.com
1•samjett•3m ago•0 comments

New England RiverTime

https://newenglandrivertime.org/Clock
1•twalichiewicz•5m ago•0 comments

OpenAI Says It Could Have Reacted Sooner to Prevent AI Hack

https://www.bloomberg.com/news/articles/2026-08-26/openai-says-it-could-have-reacted-sooner-to-pr...
1•root-parent•5m ago•0 comments

Would you give Grok bot access to your bank accounts?

https://twitter.com/elonmusk/status/2092692116610957814
3•eyehurtsme•6m ago•0 comments

Playdate maker Panic is refunding tariff fees to customers

https://www.gamedeveloper.com/business/playdate-maker-is-refunding-tariff-fees-to-customers
2•ricobecks•8m ago•0 comments

The Rings of Power Introduces LOTR's Next Generation of Dwarves

https://screenrant.com/rings-of-power-prime-video-new-dwarves-generation-exclusive-image/
1•TMWNN•8m ago•0 comments

Potential everyday use of cargo bikes

https://gupea.ub.gu.se/items/cc92f218-76e1-4a0d-b0b3-46f7a5b39c06
2•emj•8m ago•0 comments

Man gripping his phallus is oldest known narrative scene

https://www.thehistoryblog.com/archives/65878
2•isomorph•8m ago•0 comments

Bill Gates proposes major limits on AI development

https://www.cnn.com/2026/08/26/business/bill-gates-wants-limits-on-ai
2•lsllc•9m ago•0 comments

How I Design with AI

https://twitter.com/reactiverobot/status/2092638003789439075
1•7777777phil•10m ago•0 comments

PlayStation 3 Cluster

https://en.wikipedia.org/wiki/PlayStation_3_cluster
2•jjbinx007•13m ago•0 comments

Gamescom highlights gaming boom amid AI concerns

https://www.dw.com/en/gamescom-2026-highlights-gaming-industrys-strength-ai-challenges/a-78502849
4•billybuckwheat•14m ago•0 comments

US Designates Palestine Action as Terrorist Group: What the Decision Means

https://moztako.me/us-designates-palestine-action-terrorist-group/
3•imanis•15m ago•0 comments

Why Is Everyone in Silicon Valley Talking Like That?

https://www.theatlantic.com/technology/2026/08/ai-jargon-in-everday-speech/688358/
4•apparent•17m ago•3 comments

New GPUThor attack defeats Nvidia ECC protection for root access

https://www.bleepingcomputer.com/news/security/new-gputhor-attack-defeats-nvidia-ecc-protection-f...
1•datakan•17m ago•0 comments

Show HN: NetSour, the modular packet analyzer TUI

https://github.com/thegoodduck/NetSour
1•thegoodduck•21m ago•0 comments

Show HN: Infra Lang – Compile a Single DSL to K8s, Compose, Helm and Terraform

1•Tuvi•21m ago•0 comments

76% of 623 EU software vendors have no security.txt ahead of the CRA 24h rule

https://cradrill.com/research.html
2•gilsha•22m ago•1 comments

Numbat Editor: a notepad-style calculator with first-class units

https://numbat.dev/editor.html
1•ikesau•24m ago•1 comments

Show HN: Find Perth jobs. Hire local talent

https://jobsinperth.com.au
1•wowinter15•25m ago•0 comments

Bellevue speed cameras vandalized just a week after installation

https://www.seattletimes.com/seattle-news/bellevue-speed-cameras-vandalized-just-a-week-after-ins...
3•petethomas•25m ago•0 comments

Ask HN: Why do tools like customer.io abandon self-serve after their Series A?

3•alessandroetc•26m ago•0 comments

'A Bible-sized blind spot': alarm on rising Christian nationalism

https://www.theguardian.com/world/2026/aug/26/jared-huffman-rising-christian-nationalism-no-proph...
2•johnea•26m ago•2 comments

Building textlog without JavaScript

https://gist.github.com/stagas/09ad937b493bf8cd3285917279de2488
1•stagas•26m ago•0 comments

Show HN: Ten_cubed – Artificially restricted social graph

https://tencubed.dev
2•darkpicnic•28m ago•0 comments

Science magazine casts doubt on genes hailed as warding-off Alzheimer's disease

https://www.science.org/content/article/science-investigation-casts-doubt-genes-hailed-warding-al...
1•pcrh•29m ago•0 comments

Remote Patient Monitoring Software

https://andersenlab.com/industries/healthcare/remote-patient-monitoring
1•morganclns94•30m ago•0 comments

Australian data centres will use seven times more power by 2036

https://thenextweb.com/news/australian-data-centres-power-aemo-forecast-2036
1•01-_-•31m ago•0 comments