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!

Show HN: FourthSpace – Bridging Social Media with Your Social Life

https://www.fourthspace.vip
1•adra_1010•1m ago•0 comments

Tesla earnings updates: The stock is up after revenue and EPS beat Wall Street's

https://www.businessinsider.com/tesla-q1-earnings-updates-tsla-stock-robotaxis-elon-musk-2026-4
1•paulpauper•1m ago•0 comments

US saw record high of 5,668 books banned in libraries in 2025, says agency

https://www.theguardian.com/us-news/2026/apr/22/us-libraries-banned-books
3•vinni2•3m ago•0 comments

Bad habits are destroying your charging cables

https://www.bbc.com/future/article/20260421-your-bad-habits-are-destroying-your-charging-cables
3•devonnull•4m ago•0 comments

OpenDHT – Distributed Hash Table Implementation

https://github.com/savoirfairelinux/opendht
1•smartmic•4m ago•0 comments

Elon Musk backs 'universal high income' to combat AI job losses

https://www.foxbusiness.com/fox-news-tech/elon-musk-backs-universal-high-income-combat-ai-job-losses
4•paulpauper•6m ago•0 comments

Progress Conference 2026

https://newsletter.rootsofprogress.org/p/announcing-progress-conference-2026
1•paulpauper•7m ago•0 comments

I Use Unspent Tokens

https://artisincode.com/essays/how-i-use-unspent-tokens/
1•parentheses•7m ago•1 comments

Vercel breach maps almost to the framework I published in February

https://papers.ssrn.com/abstract=6055034
1•Tejas_dmg•7m ago•0 comments

Show HN: Cosmo – Desktop agent with generated UI

https://www.buildcosmo.com
1•row0•7m ago•0 comments

Show HN: I built a map of the GeminiNet

https://rbtms.github.io/gemini_map/
2•rbtms•9m ago•0 comments

Symbiont – Typestate-enforced policy gates for AI agents (Rust)

https://github.com/thirdkeyai/symbiont
1•smugglereal•10m ago•0 comments

Apple fixes bug that cops used to extract deleted chat messages from iPhones

https://techcrunch.com/2026/04/22/apple-fixes-bug-that-cops-used-to-extract-deleted-chat-messages...
5•cdrnsf•13m ago•0 comments

OpenAI now lets teams make custom bots that can do work on their own

https://www.theverge.com/ai-artificial-intelligence/917065/openai-chatgpt-workspace-agents-custom...
3•omer_k•14m ago•0 comments

Public sector Matrix deployments in Europe

https://element.io/matrix-in-europe
2•Arathorn•16m ago•0 comments

The Story of Mel

http://www.catb.org/jargon/html/story-of-mel.html
2•softwaredoug•16m ago•0 comments

Show HN: Contral AI IDE Vibe-Learn to Code

https://contral.ai
2•vednig•16m ago•0 comments

Show HN: FoodPips – I reverse-engineered a weight loss system and made it free

https://foodpips.com
3•sjdegraeve•16m ago•1 comments

The Illuminated Man: an unconventional portrait of JG Ballard

https://www.theguardian.com/books/2026/apr/20/the-illuminated-man-by-christopher-priest-and-nina-...
5•agronaut•17m ago•0 comments

When Your Trace Is Lying to You: A Performance Case Study

https://muness.com/posts/when-your-trace-is-lying-to-you/
4•speckx•18m ago•0 comments

Choreodle on iOS

https://testflight.apple.com/join/gD2y2uzz
2•mohanjith•19m ago•0 comments

We mapped unauthenticated Vector DBs exposing corporate AI data

2•echelongraph•19m ago•2 comments

From Fear Factor to Federal Policy: How Psychedelics Are the Future?

https://yakreignited.substack.com/p/from-fear-factor-to-federal-policy
2•__yak•21m ago•0 comments

getadb.com - instant database for agents

https://www.getadb.com/
1•grinich•21m ago•0 comments

Fear of Corporate Politics Debunked

https://growingfearless.substack.com/p/fear-of-corporate-politics-debunked
2•andrewstetsenko•24m ago•0 comments

Adobe Is Cooked

https://malejandro.com/reflections/en/adobe-is-cooked/
2•arecsu•25m ago•0 comments

The Government Isn't Stopping Extremists–Its Going After the People Watching 'Em

https://yakreignited.substack.com/p/the-government-isnt-stopping-extremists
6•__yak•26m ago•1 comments

I Found 8,792 Live Secrets Across Cloud Dev Environments

https://trufflesecurity.com/blog/thousands-live-secrets-found-across-four-cloud-dev-environments
1•kernelrocks•26m ago•0 comments

Show HN: ComposeFlux – GitOps continuous deployment for Docker Compose

https://github.com/veerendra2/composeflux
1•catfight7391•27m ago•0 comments

Cljfx: A declarative desktop UI framework in Clojure

https://github.com/cljfx/cljfx
1•marcelox86•31m ago•0 comments