frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Gitea is 10 years old, but official repo is still hosted on GitHub

https://github.com/go-gitea/gitea
1•notRobot•1m ago•0 comments

Google Is Quietly Buying Code from Play Store Developers to Train AI

https://www.404media.co/google-is-quietly-buying-code-from-play-store-developers-to-train-ai/
1•SpyCoder77•3m ago•0 comments

"Virus – Vishanu" – Jayant V Narlikar

https://mitpress.mit.edu/9780262056281/virus/
1•aanet•3m ago•1 comments

Visual editor for React/MUI that touches your repo atomically

https://studio.crossui.com
1•linb•4m ago•0 comments

Microsoft Announces Open-Source "Intelligent Terminal"

https://www.phoronix.com/news/Microsoft-Intelligent-Terminal
1•Bender•5m ago•0 comments

Timebook – my time tracker is now an official ChatGPT app

https://chatgpt.com/apps/timebook/asdk_app_6a00269ef3bc8191b4238be56cffcbaa
1•pro_methe5•5m ago•0 comments

Anthropic faces AI spending backlash before IPO

https://www.axios.com/2026/06/02/anthropic-ipo-ai-sticker-shock-spending-usage
1•1vuio0pswjnm7•7m ago•0 comments

Show HN: Brontosaurus, a voice-driven generative AI canvas

https://thomasdhughes.com/brontosaurus/
1•thomasdhughes2•10m ago•0 comments

Ecdsa Fail

https://www.ecdsa.fail/
1•aburan28•12m ago•0 comments

Floating Point: The Origin Story

https://thechipletter.substack.com/p/floating-point-the-origin-story
2•hasheddan•15m ago•0 comments

GitHub Copilot App

https://github.blog/news-insights/product-news/github-copilot-app-the-agent-native-desktop-experi...
1•soheilpro•17m ago•1 comments

My Students Can't Read

https://www.chronicle.com/article/my-students-cant-read
3•computerliker•19m ago•2 comments

This Month in Ladybird – May 2026

https://ladybird.org/newsletter/2026-05-31/
1•bactobene•21m ago•0 comments

The Google Engineer Accused of Risking It All with an Insider Polymarket Bet

https://www.wsj.com/tech/google-engineer-polymarket-bet-4d27b6b7
1•1vuio0pswjnm7•22m ago•1 comments

Prototype theories deserve different evaluation criteria than finished ones

https://zenodo.org/records/20433733
2•ErystelaThevale•23m ago•0 comments

YouTube Auto speed for premium members [video]

https://www.youtube.com/shorts/P2cdhi1aSac
1•hentrep•26m ago•0 comments

1 in 5 U.S. Adolescents and Young Adults Use AI Chatbots for Mental Health

https://www.rand.org/news/press/2026/06/nearly-1-in-5-us-adolescents-and-young-adults-use-ai.html
2•mgh2•27m ago•0 comments

Winners of the 2026 Apple Design Awards

https://www.apple.com/newsroom/2026/06/apple-reveals-winners-of-the-2026-apple-design-awards/
1•soheilpro•27m ago•0 comments

More than 6 out of 10 people turn to AI for psychological support

https://www.axa.com/en/press/press-releases/2026-mind-health-report
2•mgh2•27m ago•0 comments

Why Does OpenAI Pretend to Be a Nonprofit?

https://www.wsj.com/opinion/why-does-openai-pretend-to-be-a-nonprofit-ca83ed83
2•1vuio0pswjnm7•29m ago•0 comments

2× – nine months later: We did it

https://ideas.fin.ai/p/2x-nine-months-later
1•mooreds•29m ago•0 comments

Why Fossil DVCS is so awesome for the lone developer; A podcast

1•techman001•32m ago•0 comments

AI Outperforms Law Professors in Stanford Law Study

https://law.stanford.edu/press/ai-outperforms-law-professors-in-stanford-law-study/
4•berlianta•39m ago•0 comments

Bernie Sanders: The American AI Sovereign Wealth Fund Act [video]

https://www.youtube.com/watch?v=VN4b4UCWMKI
3•Avicebron•39m ago•1 comments

Exploding immune cells splatter potent toxins everywhere

https://www.nature.com/articles/d41586-026-01766-4
3•berlianta•42m ago•0 comments

Release of MonVisoer 0.1.0

https://github.com/linuxrebel/MonVisor
1•linuxrebe1•54m ago•0 comments

Companies to pay over $4M after gender reveal ignited deadly SoCal wildfire

https://ktla.com/news/inland-empire/settlement-gender-reveal-ignites-deadly-el-dorado-fire-califo...
3•Bender•54m ago•1 comments

LLMs are not the black box you were promised

https://www.jay.ai/blog/llms-are-not-a-black-box
4•_jayhack_•55m ago•0 comments

Second rabid bat found in crowded California neighborhoods sparks concern

https://www.dailymail.com/health/article-15865653/rabid-bat-san-francisco-rabies-exposure.html
3•Bender•55m ago•1 comments

Soon 80k-pound self-driving trucks could deliver packages to your door

https://www.dailymail.com/yourmoney/article-15868457/self-driving-trucks-fedex-aurora-texas.html
2•Bender•57m ago•0 comments