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!

IOU Wallet – The Integrity Protocol

https://iou-wallet.com/
1•xklondon•59s ago•0 comments

Mars rover detects never-before-seen organic compounds in new experiment

https://phys.org/news/2026-04-mars-rover-compounds.html
1•benkan•1m ago•0 comments

A $4M Tomahawk Missile for a Cupcake Recipe

https://briannelee.substack.com/p/a-4-million-tomahawk-missile-for
1•BrianneLee011•2m ago•0 comments

What's new in Firefox mobile: Less clutter, more control, a free built-in VPN

https://blog.mozilla.org/en/firefox/mobile-updates/
1•Brajeshwar•2m ago•0 comments

Ubuntu 26.04 ("Resolute Raccoon") LTS released

https://lists.ubuntu.com/archives/ubuntu-announce/2026-April/000323.html
2•arunc•4m ago•0 comments

SLIT3 fragments orchestrate thermogenesis in brown adipose tissue

https://www.nature.com/articles/s41467-026-70310-9
1•PaulHoule•4m ago•0 comments

Phone's next speed boost may come from a magnetic jump

https://phys.org/news/2026-04-boost-strange-magnetic-rewrites-chips.html
2•benkan•5m ago•0 comments

Prax: An agent runtime that learns from past mistakes and fixes code in a loop

https://github.com/praxagent/praxagent-ai
1•steveharing1•5m ago•0 comments

Tushonka: Cultivating Soviet Postwar Taste (2010)

https://www.journal.media-culture.org.au/index.php/mcjournal/article/view/299
1•theletterf•6m ago•0 comments

Show HN: Universal Deploy – deploy Vite apps anywhere

https://vike.dev/blog/universal-deploy
1•brillout•6m ago•0 comments

LINK+ Union Catalog

https://linkencore.iii.com/iii/encore/;jsessionid=8C30815031D934FAD58626FBCD329593?lang=eng
1•so-cal-schemer•9m ago•2 comments

Sexism, hate and misogyny remain for this soccer trailblazer

https://www.cnn.com/2026/04/23/sport/marie-louise-eta-union-berlin-woman-coach-bundesliga
1•Tomte•9m ago•0 comments

You're about to feel the AI money squeeze

https://www.theverge.com/ai-artificial-intelligence/917380/ai-monetization-anthropic-openai-token...
1•quicklywilliam•9m ago•1 comments

O'Reilly for Public Libraries [video]

https://www.youtube.com/watch?v=HOsOTawdWFc
1•so-cal-schemer•10m ago•1 comments

France Keeps Breaking the Internet to Stop Piracy, Even Though It's Not Working

https://www.techdirt.com/2026/04/23/france-keeps-breaking-the-internet-to-stop-piracy-even-though...
2•hn_acker•13m ago•0 comments

Turning a Stripe subscription into a bot-buyable API

https://dialtoneapp.com/2026/april/turning-a-stripe-subscription-into-a-bot-buyable-api
1•fcpguru•15m ago•0 comments

Show HN: AgentSearch – Self-hosted search and MCP for AI agents, no API keys

https://github.com/brcrusoe72/agent-search
1•bricrusoe•16m ago•0 comments

Jazz v2: A local-first relational database

https://jazz.tools/blog/what-is-jazz
1•pegasus•16m ago•0 comments

GPT-5.5 System Card [pdf]

https://deploymentsafety.openai.com/gpt-5-5/gpt-5-5.pdf
4•craigmart•16m ago•0 comments

113 issues were identified within Rust Coreutils

https://discourse.ubuntu.com/t/an-update-on-rust-coreutils/80773
2•maxloh•17m ago•0 comments

98% of IT leaders want digital sovereignty: SUSE is making it happen

https://www.zdnet.com/article/suse-bets-its-future-on-digital-sovereignty/
2•CrankyBear•18m ago•0 comments

NASA rover adds to growing list of organic compounds detected on Mars

https://www.cbc.ca/news/science/nasa-mars-curiosity-rover-life-organic-compounds-9.7172210
3•Brajeshwar•20m ago•0 comments

Middle Eastern News Sites Are U.S. Government Propaganda Ops

https://theintercept.com/2026/04/20/pentagon-middle-eastern-news-propaganda-iran/
5•robtherobber•21m ago•0 comments

Earth's First Personal Robocar

https://www.tensor.auto/
2•probabletrain•21m ago•0 comments

Astrology information for markets now in an API

https://api.starsignal.io
2•dianahcastillo•21m ago•0 comments

The agent observability gap: what logs miss when LLMs call tools

https://www.lyuata.com/observability-gap
3•lyuata•22m ago•0 comments

How metrics are stored and queried

https://www.bitsxpages.com/p/how-metrics-are-stored-and-queried
5•agavra•23m ago•0 comments

GPT-5.5: Mythos-Like Hacking, Open to All

https://xbow.com/blog/mythos-like-hacking-open-to-all
4•rs_rs_rs_rs_rs•24m ago•0 comments

Ask HN: Demonstrating Value with the Same Tools

3•intervolz•25m ago•0 comments

Archive.today used vistor's browsers to DDoS, and modified archive contents

https://en.wikipedia.org/wiki/Wikipedia:Requests_for_comment/Archive.is_RFC_5
3•crumpled•26m ago•2 comments