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!

Stripe said to abandon $50B pursuit of PayPal

https://www.bloomberg.com/news/articles/2026-08-28/advent-stripe-consortium-is-said-to-drop-pursu...
1•1986•1m ago•0 comments

AI-Powered Tilichu VST/AU Synth Released by Butterlamp Audio

https://rekkerd.org/butterlamp-audio-releases-tilichu-wavetable-synthesizer-vst3-au/
1•boxstream•1m ago•0 comments

Has Gemini AI has altered the interpretation of Google trends?

https://old.reddit.com/r/mildyinteresting/comments/1vzz8y7/my_cycle_has_been_off_this_past_month_...
1•morkalork•3m ago•0 comments

A second model pays off in two shapes

1•Marvin_RunAI•9m ago•0 comments

The Dirty AI lie: How the GREATEST bet in human history started to crack [video]

https://www.youtube.com/watch?v=WcckBmkauBQ
1•ferryth•9m ago•0 comments

Toyota to roll out near autonomous cars from 2028

https://asia.nikkei.com/business/technology/toyota-to-roll-out-near-fully-autonomous-cars-from-2028
1•cwwc•12m ago•0 comments

ChatGPT Now Supports WebMCP

https://twitter.com/OpenAIDevs/status/2092344959248761263
1•brazukadev•13m ago•0 comments

Welcome Claudeforce

https://twitter.com/Benioff/status/2093028886800109914
1•varun_chopra•16m ago•0 comments

Tanjey – Task Timers and Asana Management

https://www.tanjey.com/
1•linkolnk•16m ago•0 comments

FreeBASIC

https://freebasic.net/
2•tuveson•18m ago•0 comments

For ancient Romans, pooping was a group activity

https://www.popsci.com/science/ancient-roman-toilets/
3•WaitWaitWha•22m ago•0 comments

Tech Companies Lobbied Away Stricter Rules on Gas-Powered Data Centers

https://www.engadget.com/2172704/tech-companies-lobbied-against-stricter-environmental-rules/
2•newsomix9xl•23m ago•0 comments

Show HN: A public feed of website changes

https://app.monity.ai/public/feed
3•kamilms21•25m ago•0 comments

Show HN: Leadcode – per-client account isolation for Claude Code, Codex, and gh

https://leadcode.build/
3•gsbecerrag•26m ago•0 comments

The New Student Visa Policy Doesn't Add Up

https://undark.org/2026/08/27/opinion-student-visa-policy-science/
2•EA-3167•29m ago•0 comments

Show HN: Pi-Black – Use Your Claude Max (Or Pro) Subscription with Pi

https://github.com/paoloanzn/pi-black
2•paoloanzn•30m ago•0 comments

Kubernetes Best Practices

https://kubernetes.io/docs/setup/best-practices/
2•Brysonbw•30m ago•0 comments

Astronomers discover a new type of astrophysical object: A black hole star

https://news.mit.edu/2026/astronomers-discover-brand-new-type-astrophysical-object-black-hole-sta...
4•handfuloflight•36m ago•1 comments

Pinning Down Rust's Pin

https://gmcgoldr.github.io/2026/08/27/pin-in-rust.html
1•garrinm•38m ago•0 comments

Selling Digital Products Online: A Practical Start-to-Sale Guide

https://www.a1ho.com/2026/07/selling-digital-products-online.html
2•alfotesr•38m ago•0 comments

Are Vandals Winning the War on Flock Cameras? [video]

https://www.youtube.com/shorts/SVUfvXqakEI
3•Cider9986•39m ago•0 comments

Ego Blockchain

https://github.com/ego-blockchain/ego-blockchain-
3•artitmuhaxhiri•39m ago•0 comments

Study captures how smog begins

https://news.ucr.edu/articles/2026/08/25/study-finally-captures-how-smog-begins
2•hbcondo714•42m ago•0 comments

Patterns of Enterprise Application Architecture

https://martinfowler.com/books/eaa.html
2•Brysonbw•42m ago•0 comments

Exploratory vs. Deterministic Assessments

https://corporate.comcast.com/stories/exploratory-vs-deterministic-assessments
2•officialhocc•43m ago•0 comments

TI-74 Basicalc

https://en.wikipedia.org/wiki/TI-74
2•rbc•46m ago•1 comments

Grand Theft Auto VI: An Extended Look [video]

https://www.youtube.com/watch?v=tJbzMqJGH4k
7•piotrgrabowski•46m ago•0 comments

Fractured Apps

https://medium.com/@kelseyhightower/12-fractured-apps-1080c73d481c
1•Brysonbw•55m ago•0 comments

Awareness Local: local-first memory for AI coding agents (96% R5 on LongMemEval)

https://github.com/everest-an/Awareness-Market
1•everestawarenes•55m ago•0 comments

The "I don't know, Claude wrote this" pandemic

https://www.manager.dev/newsletter/the-i-don-t-know-claude-wrote-this-pandemic
4•fagnerbrack•56m ago•1 comments