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!

A founder with $40K MRR get ignored while a connected dropout raised millions

https://brevoir.com
1•nabuhad•29s ago•1 comments

Hormuz Strait Monitor

https://hormuzstraitmonitor.com
1•a_tartaruga•43s ago•0 comments

Show HN: GitByBit – Learn Git by practice in your code editor

https://gitbybit.com/
1•neochief•46s ago•0 comments

Provision: LLM-powered server setup from Markdown

https://provision.sh/
1•gpjt•1m ago•0 comments

TSMC posts 35% jump in revenue to new record high as AI chip demand stays strong

https://www.cnbc.com/2026/04/10/tsmc-q1-record-revenue-ai-chip-demand-strong.html
1•Brajeshwar•1m ago•0 comments

Exponential quantum advantage in processing classical data

https://arxiv.org/abs/2604.07639
1•fuglede_•1m ago•0 comments

Running NixOS Micro VMs on macOS

https://abhinavsarkar.net/notes/2026-microvm-nix/
1•abhin4v•2m ago•0 comments

My Login Shell in Assembly

https://isene.org/2026/04/Bare.html
1•speckx•6m ago•0 comments

Humanity's oldest known song (1400 BC)

https://old.reddit.com/r/Damnthatsinteresting/comments/1cc9xlf/humanitys_oldest_known_song_is_the...
1•keepamovin•7m ago•0 comments

Design and Implementation of DuckDB Internals

https://duckdb.org/library/design-and-implementation-of-duckdb-internals/
1•mpweiher•8m ago•0 comments

Book Summary: Learn Python the Hard Way

https://medium.com/@fagnerbrack/book-summary-learn-python-the-hard-way-c2da8a30bbe9
1•fagnerbrack•8m ago•0 comments

Scaling Managed Agents: Decoupling the brain from the hands

https://www.anthropic.com/engineering/managed-agents
1•gmays•10m ago•0 comments

The Letta Code App

https://www.letta.com/blog/introducing-the-letta-code-app
2•forthwall•13m ago•0 comments

Goodbye Bloop

https://vibekanban.com/blog/goodbye-bloop
1•arrowsmith•15m ago•0 comments

US inflation surges to 3.3% as Iran war fuels energy price shock

https://www.euronews.com/business/2026/04/10/us-inflation-surges-to-33-as-iran-war-fuels-energy-p...
2•geox•16m ago•0 comments

Amazon ending support for older Kindles

https://techcrunch.com/2026/04/08/amazon-to-end-support-for-older-kindle-devices-2012/
1•eggy•16m ago•0 comments

AI on the couch: Anthropic gives Claude 20 hours of psychiatry

https://arstechnica.com/ai/2026/04/why-anthropic-sent-its-claude-ai-to-an-actual-psychiatrist/
2•Levitating•18m ago•1 comments

'Survivor' Style Corporate Retreat Descends into Hellish Nightmare

https://www.thedailybeast.com/survivor-style-corporate-retreat-descends-into-hellish-nightmare/
1•cainxinth•19m ago•0 comments

Cerebras Is Coming to AWS

https://www.cerebras.ai/blog/cerebras-is-coming-to-aws
4•jbredeche•19m ago•0 comments

Mauna Loa Solar Observatory Reopens to Support Artemis II Mission

https://www.meteorologicaltechnologyinternational.com/news/space-weather/mauna-loa-solar-observat...
1•lgeorget•20m ago•0 comments

US summons bank bosses over cyber risks from Anthropic's latest AI model

https://www.theguardian.com/technology/2026/apr/10/us-summoned-bank-bosses-to-discuss-cyber-risks...
2•ascold•20m ago•0 comments

Ask HN: Why Databases Instead of Filesystem?

2•uticus•20m ago•4 comments

Ask HN: Will we ever do something about patent trolls?

2•giancarlostoro•22m ago•1 comments

Fewer than 3 in 10 register for HMRC's Making Tax Digital shake-up

https://www.theregister.com/2026/04/10/mtd_hmrc/
1•Brajeshwar•23m ago•0 comments

Claude Mythos and misguided open-weight fearmongering

https://www.interconnects.ai/p/claude-mythos-and-misguided-open
1•speckx•24m ago•0 comments

Ask HN: How do designers and marketers use Command Line? AI? Technical tools?

1•vietthan•25m ago•0 comments

Ask HN: How do you and your team manage secrets day to day?

1•markvm•25m ago•0 comments

The Chilling Role of ChatGPT in Mass Shootings and Other Violence

https://www.motherjones.com/media/2026/04/chatgpt-tumbler-ridge-fsu-openai-chatbots-mass-shootings/
2•cdrnsf•28m ago•0 comments

Powell, Bessent discussed Mythos cyber threat with major U.S. banks

https://www.cnbc.com/2026/04/10/powell-bessent-us-bank-ceos-anthropic-mythos-ai-cyber.html
3•kaycebasques•28m ago•1 comments

Propulsion and Energy Physicist Photos at Deep Tech Week NYC 2026

https://www.flickr.com/photos/timventura/albums/72177720333020849/
1•timventura•28m ago•1 comments