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

Comments

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

Why do gas prices always have an extra 9/10 of a cent added on?

https://thehill.com/homenews/nexstar_media_wire/5215334-why-do-gas-prices-always-have-an-extra-9-...
1•thunderbong•30s ago•0 comments

Why do we do astrophysics?

https://arxiv.org/abs/2602.10181
1•doener•1m ago•0 comments

Show HN: AI tool to merge people from two photos into one realistic group photo

https://animateoldphotos.org/add-loved-one-to-photo
1•imgdesgen•4m ago•0 comments

Cybernetic Entropy Control of LLMs

https://github.com/orthogonaltohumanity/Cybernetic_Entropy_Control
1•tiredgirl4•6m ago•0 comments

The machines are fine. I'm worried about us

https://ergosphere.blog/posts/the-machines-are-fine/
1•doener•6m ago•0 comments

Apple: The First 50 Years – David Pogue

https://www.simonandschuster.com/books/Apple/David-Pogue/9781982134594
1•mitchbob•7m ago•0 comments

ClawCode – a Rust rewrite of Claude Code with 100% behavioral parity

https://github.com/StartripAI/claw_code
1•AlfredHua1•8m ago•0 comments

Smarter Live Streaming at Scale: Rolling Out VBR for All Netflix Live Events

https://netflixtechblog.com/smarter-live-streaming-at-scale-rolling-out-vbr-for-all-netflix-live-...
1•mfrw•11m ago•0 comments

QRL 2.0 testnet has been released

https://github.com/theQRL/go-qrl
1•munrocket•11m ago•1 comments

White label crypto exchange

1•Shamlatech•18m ago•0 comments

The Luton writer behind the original Airplane!

https://www.bbc.com/news/articles/cx24rd1xp4go
1•1659447091•18m ago•0 comments

Latent Introspection: Models Can Detect Prior Concept Injections

https://arxiv.org/abs/2602.20031
1•tosh•21m ago•0 comments

I may have solved a long standing problem with Object Oriented systems

https://blog.mempko.com/an-abject-horror/
1•signa11•21m ago•0 comments

I used AI. It worked. I hated it

https://taggart-tech.com/reckoning/
1•signa11•22m ago•0 comments

Autonomous, task-aware context tuning for AI coding agents

https://github.com/juyterman1000/entroly/
1•abby-star•23m ago•0 comments

Fixed a llama.cpp bug silently disabling Vulkan GPU on all 32-bit ARM devices

1•perinban•24m ago•0 comments

Show HN: Agentdid – Cryptographic proof that a human stands behind an AI agent

https://github.com/Mr-Perfection/agentdid
1•sungsool•24m ago•0 comments

LLM Knowledge Bases

https://twitter.com/karpathy/status/2039805659525644595
1•fbrusch•25m ago•0 comments

Agentis Memory – Redis-compatible store with built-in local embeddings

https://github.com/scrobot/agentis-memory
1•scrobot•26m ago•1 comments

Ara's Backing from Y Combinator

https://www.ara.so/news/announcing-backing-from-y-combinator
1•svemyh•27m ago•0 comments

Pentagon Pete's Bigoted Reason for Firing Top General Leaks

https://www.thedailybeast.com/pentagon-petes-bigoted-reason-for-firing-top-general-randy-george-l...
6•KnuthIsGod•28m ago•0 comments

WireGUI – Open-source WireGuard management platform with SSO and firewall rules

https://github.com/bartei/wiregui
2•bartei81•29m ago•0 comments

The IT department: Where AI goes to die

https://www.economist.com/by-invitation/2026/04/01/the-it-department-where-ai-goes-to-die
1•1vuio0pswjnm7•29m ago•0 comments

Meta, YouTube Verdict Escalates Calls for Teen Social Media Limits

https://www.bloomberg.com/news/articles/2026-03-31/social-media-bans-are-sweeping-the-world-is-th...
1•1vuio0pswjnm7•31m ago•0 comments

X/Twitter in the Terminal

https://github.com/bddicken/tuitter
1•gasull•32m ago•0 comments

SimplAI now has an official Reddit community – r/SimplAIofficial

https://old.reddit.com/r/SimplAIoffical/
1•SimplAI_ai•36m ago•0 comments

Resilience in the Age of AI

https://halfanhour.blogspot.com/2026/04/resilience-in-age-of-ai.html
1•wazHFsRy•38m ago•0 comments

Make Money with LottoChamp (Satirical)

https://statmodeling.stat.columbia.edu/2026/04/01/this-evil-lottery-scam-appears-to-be-aided-and-...
1•caminanteblanco•38m ago•0 comments

Trafficmind Approach to Attack Detection Without CAPTCHAs

1•emmanol•39m ago•0 comments

Browser extension malwares – Use my XPI scanner to find malware in the wild

https://www.yourdev.net/blog.php?post=extension-malware-in-the-wild
1•ernos•40m ago•0 comments