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•1y ago

Comments

zljdanceholic•1y 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!

Copyright Office Rejected My Attempt to Copyright a Tweet

https://www.techdirt.com/2014/08/04/copyright-office-rejected-my-attempt-to-copyright-tweet/
1•danhite•4m ago•0 comments

Ember: 365-day audited record of AI models vs. Polymarket, scored by Brier

https://emberfyi.com/
1•emberfyi•5m ago•0 comments

AI video editing is blowing my mind

https://aivideoediting.io/
1•pekingzcc•10m ago•0 comments

Architect of the UK Online Safety Act Calls for Its Complete Repeal

https://prestonbyrne.com/2026/05/19/architect-of-the-uk-online-safety-act-calls-for-its-complete-...
1•iamnothere•10m ago•0 comments

Rendezvous: A serverless, Zoom-like video conferencing web app

https://github.com/predatorray/rendezvous
1•zetaplusae•17m ago•0 comments

Generalization Dynamics of LM Pre-Training

https://jiaxin-wen.github.io/blog/generalization-dynamics
1•gmays•18m ago•0 comments

Iteration

https://blog.viktomas.com/posts/iteration/
1•luca-sctr•18m ago•0 comments

GPU telemetry anomaly: 146W idle draw on A100 (white paper)

https://github.com/mikebains41-debug/ai-gpu-energy-optimizer-/blob/main/WHITEPAPER.md
1•mikebains•23m ago•0 comments

Who Wins the Future: Chips vs. Frontier LLMs

https://medium.com/@vektormemory/who-wins-the-future-chips-vs-frontier-llms-1e8e0ca42641
1•vektormemory•25m ago•0 comments

The Richest Cat in the World

https://www.theatlantic.com/magazine/2026/06/karl-lagerfeld-cat-heir-choupette/686940/
1•gmays•25m ago•0 comments

Energy Efficiency

https://ai-gpu-brain-v3.onrender.com/metrics
2•mikebains•26m ago•0 comments

Anthropic hires OpenAI cofounder Andrej Karpathy

https://www.cnbc.com/2026/05/19/anthropic-hires-openai-cofounder-andrej-karpathy-former-tesla-ai-...
1•doppp•28m ago•1 comments

CVE-2025-54518

https://nvd.nist.gov/vuln/detail/cve-2025-54518
1•losfair•30m ago•0 comments

Key, in sight [Creative uses of keyboard shortcuts and macros]

https://aresluna.org/key-in-sight/
1•anotherevan•34m ago•1 comments

Show HN: Building a Programming Language for Myself

https://blog.aawadia.dev/2026/05/19/teak-lang/
1•asadawadia•36m ago•0 comments

20 Year old pgcrypto CVE reported

https://thebuild.com/blog/2026/05/15/two-decades-two-rces-what-pgcrypto-has-been-doing-since-2005/
1•sameers•37m ago•1 comments

Coding is solved? Software is not

https://arcplane.ai/journal/software-is-not-solved
2•splash123•37m ago•0 comments

Greg Hyman, Co-Creator of Tickle Me Elmo, Dies at 78

https://www.nytimes.com/2026/05/19/business/greg-hyman-dead.html
1•bookofjoe•43m ago•1 comments

Google Scholar names its most influential papers for 2025

https://www.nature.com/nature-index/news/google-scholar-reveals-most-influential-research-papers-...
1•teleforce•43m ago•0 comments

Japan is gripped by mass allergies. A 1950s project is to blame

https://www.bbc.com/future/article/20260515-the-1950s-blunder-which-causes-mass-hay-fever-in-japan
2•ranit•45m ago•0 comments

Ask HN: Should I learn to code in 2026?

3•vrinda13•46m ago•1 comments

Thioacetone (Wiki)

https://en.wikipedia.org/wiki/Thioacetone
1•sans_souse•48m ago•0 comments

XINF MCP Server

https://xinf.dev/mcp
2•ZeroTerabytes•52m ago•2 comments

Canonical launches Ubuntu Core 26

https://canonical.com/blog/canonical-launches-ubuntu-core-26
2•LopRabbit•53m ago•0 comments

Ben Welsh made an index of all FiveThirtyEight articles on the Internet Archive

https://fivethirtyeightindex.com/
2•ChocMontePy•54m ago•1 comments

'We don't see a robot as a threat: simply another form of presence in the world'

https://english.elpais.com/science-tech/2026-05-16/takeshi-yoro-anatomist-in-japan-we-dont-see-a-...
1•Geekette•56m ago•1 comments

Sci/acc: what happens to science after super-intelligence?

https://willzeng.com/shared/sciacc.html
1•wzeng•58m ago•1 comments

Ubuntu Core 26 targets IoT, offers up to 15 years of security maintenance

https://www.cnx-software.com/2026/05/19/ubuntu-core-26-targets-iot-devices-and-embedded-systems-o...
2•0in•1h ago•0 comments

On Guard! The Story of SAGE [IBM, 1956]

https://www.youtube.com/watch?v=lFGco9ZsFGE
1•doctaj•1h ago•1 comments

Optimize_anything: A Universal API for Optimizing Any Text Parameter

https://arxiv.org/abs/2605.19633
4•LakshyAAAgrawal•1h ago•1 comments