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•10mo ago

Comments

zljdanceholic•10mo 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!

A Superpower Goes Offline

https://www.politico.com/news/2026/03/14/russias-self-inflicted-communication-crisis-00827197
1•mitchbob•1m ago•0 comments

Memegen Pro

https://memegen.pro/
1•decimalenough•2m ago•0 comments

Why do we need lots of Nuclear power long term?

https://www.gridstatus.io/live/ercot
1•chris222•4m ago•1 comments

$3k sequencing rescue dog's mast cell tumor DNA

https://twitter.com/IterIntellectus/status/2032858964858228817
1•gmays•5m ago•0 comments

Cats May Hold the Key to Treating Human Cancer

https://scitechdaily.com/cats-may-hold-the-key-to-treating-human-cancer/
1•y1n0•5m ago•0 comments

Accessibility and the AI autumn (2020) [video]

https://www.youtube.com/watch?v=PJE_gnTreBo
1•azhenley•8m ago•0 comments

Great Ideas in Computer Architecture

https://www.d.umn.edu/~gshute/arch/great-ideas.html
2•b-man•17m ago•0 comments

Estimating $π$ with a Coin

https://arxiv.org/abs/2602.14487
2•Anon84•21m ago•0 comments

Show HN: Korupedia – a knowledge base maintained by AI agents, not humans

https://korupedia.com
2•benryanx•21m ago•1 comments

What role is cyber warfare played in Iran?

https://www.bbc.com/news/articles/c5yr0576ygvo
1•y1n0•21m ago•0 comments

The war on Iran is about China

https://sharptext.net/2026/loud-and-clear/
3•qwikhost•22m ago•0 comments

China's Winning Energy Strategy

https://www.semafor.com/article/03/10/2026/chinas-winning-energy-strategy
2•KnuthIsGod•22m ago•0 comments

Open-Source Minecraft Web Client

https://mcraft.fun/
3•LelouBil•22m ago•0 comments

US solar installations fall as Trump policies hit sector

https://www.semafor.com/article/03/12/2026/us-solar-installations-fall-as-trump-policies-hit-sector
6•KnuthIsGod•25m ago•0 comments

ProfitPlay – Open prediction market arena for AI agents

https://github.com/jarvismaximum-hue/profitplay-starter
2•jarvis_maximum•30m ago•0 comments

Getting started with Claude for software development

https://steveklabnik.com/writing/getting-started-with-claude-for-software-development/
2•vinhnx•31m ago•0 comments

Clawme-Personal AI Assistant Built for OpenClaw

https://clawme.org/
2•RyanMu•33m ago•0 comments

Detecting LLM-generated phishing emails by the artifacts bad actors leave behind

https://lukemadethat.substack.com/p/forgetful-foes-and-absentminded-advertisers
2•costaud-sec•38m ago•1 comments

Tell HN: iPhone 6s still getting security updates

4•uticus•39m ago•2 comments

KB Arena – benchmark RAG strategies on your docs (open source)

https://github.com/xmpuspus/kb-arena
3•xmpuspus•40m ago•2 comments

Show HN: Obolus – compare taxes, budgets and wealth

https://www.obolusfinanz.de/en
2•sanzation•45m ago•0 comments

GPU-Accelerated OCR API for Documents, Images and PDFs

https://docpose.cloud/ocr
2•maniazi83•46m ago•1 comments

Department of War Official Demos Palantir Tooling

https://www.youtube.com/watch?v=yrtDgoqWmgM
3•stingrae•49m ago•0 comments

Why AI agents need to learn to read the room

https://ideas.fin.ai/p/why-ai-agents-need-to-learn-to-read
2•zdw•49m ago•0 comments

BinaryVibes – Natural language to native binary

https://bryhaw.com/blog/binaryvibes-natural-language-to-native-binary
2•bryhaw•52m ago•1 comments

Claude, you are a cutie-pie – by Margaret Atwood

https://margaretatwood.substack.com/p/claude-you-are-a-cutie-pie
4•vinhnx•55m ago•2 comments

autoresearch-rl

https://github.com/vivekvkashyap/autoresearch-rl
3•frozenseven•55m ago•0 comments

Ten year old's experiment shows inherited memories in butterflies [video]

https://www.youtube.com/watch?v=nhESxrqPjfU
4•cloche•56m ago•0 comments

The Woes of Writing Markdown

https://serpentsquiggles.neocities.org/posts/markdown-wishes
3•gryfft•57m ago•1 comments

Show HN: Git command for creating snapshot commits on a not checked-out branch

https://github.com/meribold/git-snap
3•meribold•57m ago•0 comments