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!

Writing code vs. shipping code [pdf]

https://www.nber.org/system/files/working_papers/w35275/w35275.pdf
1•mustaphah•39s ago•0 comments

Army commissions second cohort of tech executives

https://www.army.mil/article/293173/army_commissions_second_cohort_of_tech_executives_into_execut...
1•sbuccini•41s ago•0 comments

SpaceX raises $75B in its IPO, making Elon Musk the first trillionaire

https://www.axios.com/2026/06/11/spacex-ipo-prices-75-billion
1•chakintosh•47s ago•0 comments

MCP tools groups. How Datadog proved the pattern

https://www.speakeasy.com/blog/mcp-tool-filtering-datadog
1•simplesagar•1m ago•0 comments

Cooling in Space

https://guille.site/posts/space-cooling/
1•LolWolf•3m ago•0 comments

Montir – The Beli for Movies

https://apps.apple.com/us/app/montir/id6776378113
1•michaelahn•3m ago•1 comments

He Hacked Teslas for Elon Musk. Now He's Launching a $100M AI Cyber Agent

https://www.forbes.com/sites/thomasbrewster/2026/06/10/elon-musk-favorite-hacker-launches-100-mil...
1•MistyMouse•3m ago•0 comments

An interactive tour to the terrific technical debt of Arabic typography

https://lr0.org/blog/p/arabic/
1•ghd_•4m ago•0 comments

Learning a regular language by inferring a DFA with the TTT algorithm

https://rahul.gopinath.org/post/2026/06/09/ttt-grammar-inference/
1•fanf2•4m ago•0 comments

Diabetes org apologizes for ejecting scientists over criticism of Trump

https://arstechnica.com/health/2026/06/diabetes-org-apologizes-for-ejecting-scientists-over-criti...
1•leephillips•6m ago•0 comments

Playing with Payphones

https://www.theguardian.com/society/2026/jun/12/payphones-phone-booths-free-calls-australia-resur...
1•mopoke•6m ago•0 comments

3D necroprinting: Leveraging biotic material as the nozzle for 3D printing

https://www.science.org/doi/10.1126/sciadv.adw9953
1•oidar•6m ago•0 comments

"Regulate AI? And lose our edge?"

https://deep.liveblog365.com/en/index-en.html?post=283
1•TonyBorlini•8m ago•0 comments

Show HN: NalityAI – desktop voice assistant with 9 personalities built in Python

https://nalityai.com/
1•Lashaga•8m ago•1 comments

Photos to 3D Model Offline – Cross-Platform App (Android, Desktop, Web)

https://github.com/yeicor/colmap-openmvs-app
1•yeicor•8m ago•1 comments

Tokenomics

https://www.citadelsecurities.com/news-and-insights/global-macro-strategy/tokenomics/
1•vikrum•9m ago•0 comments

Show HN: Free Music for Money

https://0g.software/freemusicformoney
1•0gs•9m ago•1 comments

Show HN: OpenClacky – A token-efficient personal agent written in Ruby

https://www.openclacky.com/
1•gemHunter•11m ago•0 comments

The University in the AI Era

https://htmx.org/essays/universities-and-ai/
1•recursivedoubts•12m ago•1 comments

Elon Musk under fire for stoking anti-immigrant riots in Belfast

https://www.nbcnews.com/world/united-kingdom/belfast-riots-elon-musk-anti-immigrant-violence-stab...
3•Chinjut•13m ago•0 comments

Turing Conjugation

https://lacker.substack.com/p/turing-conjugation
1•stopachka•14m ago•0 comments

Show HN: Plannotator – annotate agent plans, diffs, and HTML

https://github.com/backnotprop/plannotator
2•ramoz•18m ago•0 comments

It feels to practice for IOAI in Iran

https://howitfeels.netlify.app/
1•linmer•19m ago•0 comments

Extended interview: Steven Spielberg about Disclosure Day [video]

https://www.youtube.com/watch?v=MjAp_NlOH1g
1•wslh•19m ago•1 comments

Show HN: Artist Kit – One-Page Website Builder for DJs and Music Artists

https://www.artistkit.co/
3•truetaurus•19m ago•1 comments

Webflow hosting is currently down

https://statusgator.com/services/webflow
2•datadrivenangel•21m ago•0 comments

Local Privacy Filter for Claude Code

https://github.com/outgate-ai/og-local
1•alikh31•21m ago•0 comments

Malware developers added nuclear and biological weapons text to to their spyware

https://twitter.com/jsrailton/status/2064661778978533571
1•marc__1•22m ago•0 comments

SpaceX valued at nearly $1.8T ahead of record share sale

https://www.bbc.com/news/articles/cwy034q89j4o
3•amclennon•25m ago•0 comments

Apple Shares List of 250 Changes Across iOS 27, macOS Golden Gate, and More

https://www.macrumors.com/2026/06/10/apple-lists-250-changes-ios-27-and-more/
3•ksec•26m ago•0 comments