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!

Duplicate Detection and Remediation

https://codeberg.org/epsilon-phase/rsdupes
1•modinfo•32s ago•0 comments

AI, open code and vulnerability risk in the public sector

https://www.gov.uk/guidance/ai-open-code-and-vulnerability-risk-in-the-public-sector
1•jimvin•2m ago•0 comments

1/4 of this month's Crypto-Gram articles are about Mythos

https://www.schneier.com/crypto-gram/archives/2026/0515.html
1•Kaibeezy•3m ago•0 comments

IEA: AI data center electricity demand could nearly double by 2030

https://www.iea.org/reports/key-questions-on-energy-and-ai/executive-summary
1•latentframe•5m ago•0 comments

Explore Wikipedia Like a Windows XP Desktop

https://explorer.samismith.com/
4•smusamashah•11m ago•0 comments

°C: a short history of the standard reference temperature for industrial dim

https://pmc.ncbi.nlm.nih.gov/articles/PMC4654601/
1•fanf2•15m ago•0 comments

Andy Jassy Is Rewriting Amazon's Playbook for the AI Age

https://www.bloomberg.com/features/2026-andy-jassy-amazon-ai/
1•thm•16m ago•0 comments

OpenAI Considering Legal Action Against Apple over 'Strained' Siri Partnership

https://www.macrumors.com/2026/05/14/openai-considering-legal-action-against-apple/
1•tosh•18m ago•0 comments

The chaotic development of Modern Warfare3 – A Documentary

https://www.youtube.com/watch?v=eC7eS0_O8ng
1•marconey•19m ago•0 comments

Actions is experiencing degraded availability

https://www.githubstatus.com/incidents/ctf7nxpq5jzn
1•Hamuko•19m ago•0 comments

Show HN: Using the same method from TikTok to concentrate better on meetings

https://chromewebstore.google.com/detail/miito-tiktok-like-videos/hlnfebhmljcldnhepjeiodhmijahlhcc
1•miemex•21m ago•0 comments

Margin Trading and Securities Lending Strategy Backtesting

https://medium.com/@DolphinDB_Inc/why-your-backtests-fail-in-margin-trading-securities-lending-an...
1•CrazyTomato•25m ago•0 comments

Food 4 Agile Thought #544: Knowledge Work Tools, Buy-In Trap, Agentic Coding ROI

https://age-of-product.com/food-agile-thought-544-knowledge-work-tools/
1•swolpers•26m ago•0 comments

Tabular-nums for numbers that line up

https://iprodan.dev/l/font-variant-tabular-nums/
2•thunderbong•28m ago•0 comments

How do I write Elixir tests?

https://hauleth.dev/post/writing-tests/
1•hauleth•31m ago•0 comments

Wood burning reintroduces lead poisoning in US

https://www.theguardian.com/environment/2026/may/15/wood-burning-for-heat-reintroducing-lead-poll...
2•oliculipolicula•35m ago•0 comments

Kog AI – Building a Real-Time Inference Stack on AMD Instinct GPUs [video]

https://www.youtube.com/watch?v=ndSA9T5yvmM
6•NicoConstant•39m ago•0 comments

Where's Ed: Anthropic Told Court $5B but Public $19B

https://www.flyingpenguin.com/wheres-ed-anthropic-told-court-5-billion-but-public-19-billion/
2•jorisw•40m ago•0 comments

Overworked AI Agents Turn Marxist, Researchers Find

https://www.wired.com/story/overworked-ai-agents-turn-marxist-study/
2•aleksjess•49m ago•1 comments

Rosetta Check 2.0 scans Pro Tools, Logic and Photoshop plugins for Intel builds

https://rosettacheck.com/testflight
2•jonnokid•50m ago•0 comments

Ask HN: Im a back end dev, how do you go from designing the UI with AI?

3•cristyg0101•1h ago•5 comments

A Technical Deep Dive into the New Raycast

https://www.raycast.com/blog/a-technical-deep-dive-into-the-new-raycast
1•vaishnavsm•1h ago•0 comments

VI65 Text Editor - vi for the 6502

https://vi65.sourceforge.net/
2•rbanffy•1h ago•0 comments

2028: Two scenarios for global AI leadership

https://www.anthropic.com/research/2028-ai-leadership
4•pretext•1h ago•0 comments

Power up your Domain Specific Language

https://slangify.org/
4•librasteve•1h ago•1 comments

Show HN: Pairfuse – Professional Photoshoots for Couples

https://pairfuse.com
1•katerina198b•1h ago•1 comments

Windscribe – We'll move HQ and take our taxes elsewhere

https://twitter.com/windscribecom/status/2055044048122003569
5•mvdwoord•1h ago•1 comments

America is experiencing a productivity miracle

https://www.economist.com/finance-and-economics/2026/05/11/america-is-experiencing-a-productivity...
2•edward•1h ago•0 comments

UUID vs. NanoID – ID Generation Compared

https://tools.pinusx.com/compare/uuid-vs-nanoid
2•ankitg12•1h ago•0 comments

One-of-One Indirapuram Sets a New Standard for Luxury Living

https://realty.economictimes.indiatimes.com/news/brand-connect-initiative/harmandeep-singh-kandha...
1•KirtiKKapoor•1h ago•0 comments