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!

Formal Verification Gates for AI Coding Loops

https://reubenbrooks.dev/blog/structural-backpressure-beats-smarter-agents/
1•pyrex41•58s ago•0 comments

How Musk Might Defeat the Statute of Limitations Defense

https://chatlaw.substack.com/p/how-musk-might-defeat-the-statute
1•dsubburam•1m ago•0 comments

Alexander Grothendieck Revolutionized 20th-Century Mathematics

https://www.quantamagazine.org/how-alexander-grothendieck-revolutionized-20th-century-mathematics...
1•digital55•1m ago•0 comments

Data centers loom over Georgia governor race

https://www.politico.com/news/2026/05/19/data-centers-loom-over-georgia-governor-race-00929073
1•1vuio0pswjnm7•2m ago•0 comments

Cybertruck owner believed Elon Musk that it could cross lake – now he's in jail

https://electrek.co/2026/05/19/tesla-cybertruck-owner-believed-elon-musk-lake-jail/
1•neilfrndes•3m ago•0 comments

Awesome database stories from the best

https://github.com/erenworld/awesome-database/
1•erenturkoglu•4m ago•0 comments

Benchmarking AI coding agents for distributed SQL: 350 runs, 17 models

https://www.yugabyte.com/blog/benchmarking-ai-coding-agents-for-distributed-sql-lessons/
1•mityash•4m ago•0 comments

Notes on AI, Labor, and China

https://jasmi.news/p/party-in-the-permanent-underclass
1•ripe•5m ago•1 comments

Co-Scientist: A multi-agent AI partner to accelerate research

https://deepmind.google/blog/co-scientist-a-multi-agent-ai-partner-to-accelerate-research/
1•smooke•6m ago•0 comments

How to set up a secure back end for hosting a shadow library mirror

https://software.annas-archive.gl/AnnaArchivist/annas-archive/-/work_items?show=eyJpaWQiOiIzMDUiL...
1•Cider9986•8m ago•0 comments

Woman dies after falling into NYC manhole

https://abcnews.com/US/woman-dies-after-falling-nyc-manhole/story?id=133109814
1•SilverElfin•10m ago•0 comments

Training a 22MB prompt injection classifier

https://www.stackone.com/blog/training-22mb-prompt-injection-classifier/
1•Hiskias•11m ago•0 comments

Show HN: Google Search Console MCP – read-only, OAuth, free

https://calmseo.com/google-search-console-mcp
2•noahflk•11m ago•0 comments

Denver has a plan to heat and cool buildings without fossil fuels

https://text.npr.org/nx-s1-5734477
3•mooreds•13m ago•0 comments

Gender Gaps in Education and Declining Marriage Rates (2025)

https://opportunityinsights.org/paper/bachelors-without-bachelors/
2•mooreds•13m ago•0 comments

I committed to writing and sharing 30 jokes in 30 days. Here's what I learned

https://pammoore.substack.com/p/i-committed-to-writing-and-sharing
2•mooreds•14m ago•0 comments

Why Aren't Americans Living Longer?

https://now.tufts.edu/2026/03/09/why-arent-americans-living-longer
3•littlexsparkee•14m ago•1 comments

Nobel laureate Olga Tokarczuk apparently used AI to write her latest novel

https://lithub.com/nobel-laureate-olga-tokarczuk-apparently-used-ai-to-write-her-latest-novel/
11•bookofjoe•16m ago•7 comments

Stable Audio 3

https://arxiv.org/abs/2605.17991
3•guardienaveugle•16m ago•0 comments

Russian Troops' Fear Grows as Ukraine AI "Slaughterbot" Drones Headhunt Them

http://www.thelowdownblog.com/2026/05/russian-troops-fear-grows-as-ukraine-ai.html
3•tim333•17m ago•0 comments

California gubernatorial candidate investigation re: payments to influencers

https://www.washingtonpost.com/technology/2026/05/15/tom-steyers-influencer-campaign-triggers-cal...
2•1vuio0pswjnm7•17m ago•0 comments

Google is its own worst enemy

https://disconnect.blog/google-is-its-own-worst-enemy/
2•speckx•18m ago•0 comments

Handcrafted with Care: Alfred's Core Values – Alfred Blog

https://www.alfredapp.com/blog/productivity/handcrafted-with-care-alfreds-values/
2•samtrack2019•18m ago•0 comments

Meta begins 8k job cuts in AI efficiency push

https://www.latimes.com/business/story/2026-05-20/meta-begins-8-000-global-job-cuts-in-ai-efficie...
7•1vuio0pswjnm7•20m ago•0 comments

Wi-Wi Is Wireless Time Sync at 1 Nanosecond

https://www.jeffgeerling.com/blog/2026/wi-wi-is-wireless-time-sync-less-than-5ns/
4•Brajeshwar•20m ago•0 comments

How I burned 389K Claude Code cache-creation tokens before the real prompt

https://www.skinny.cloud/
2•vipdestiny•20m ago•0 comments

Meta Begins 8k Global Job Cuts in AI Efficiency Push

https://news.bloomberglaw.com/artificial-intelligence/meta-begins-job-cuts-in-efficiency-push-spu...
4•1vuio0pswjnm7•22m ago•0 comments

Betlang: A tiny (50kb) programming language detection model

https://github.com/DioxusLabs/betlang
2•demonthos•22m ago•0 comments

Microsoft Agent 365: Autonomous AI for enterprise governance by 2026

https://www.hitechies.com/microsoft-agent-365-autonomous-ai-enterprise-governance-2026/
2•dhakalster•23m ago•0 comments

ChatGPT and other AI bots made errors before Scottish election, study finds

https://www.theguardian.com/technology/2026/may/20/ai-chatbots-chatgpt-replika-grok-gemini-misinf...
2•chrisjj•24m ago•1 comments