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!

The American epoch of oil is collapsing. What comes next could be ugly

https://www.theguardian.com/us-news/ng-interactive/2026/may/17/america-china-energy-oil-renewables
1•robtherobber•46s ago•0 comments

Panelook

https://www.panelook.com/
1•hyperific•1m ago•0 comments

SPF Flattening and the 10-Lookup Limit: How to Fix Too Many DNS Lookups

https://dmarcguard.io/blog/spf-too-many-dns-lookups/
1•meysamazad•1m ago•0 comments

The Anatomy of an Agent Harness

https://www.langchain.com/blog/the-anatomy-of-an-agent-harness
1•meysamazad•2m ago•0 comments

An LLM models our worst behavior

https://person-al.github.io/%F0%9F%8C%B1/2026/05/11/an-llm-models-our-worst-behavior.html
1•meysamazad•3m ago•0 comments

Gaza is rebuilding with Lego-like bricks made from rubble

https://www.wired.com/story/gaza-is-rebuilding-with-lego-like-bricks-made-from-rubble/
2•cunidev•4m ago•0 comments

Famous paintings, computationally restored using conservation research

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

Show HN: HypergraphZ – directed hypergraph library in Zig with Python bindings

https://github.com/yamafaktory/hypergraphz
1•yamafaktory•5m ago•0 comments

The OEIS meta sequence and subway stations

https://www.jeremykun.com/shortform/2026-04-09-0556/
1•surprisetalk•5m ago•0 comments

This ultra-lightweight Linux OS saved my Windows 10 laptop from the scrapheap

https://www.neowin.net/editorials/this-ultra-lightweight-linux-os-just-saved-my-windows-10-laptop...
1•bundie•7m ago•0 comments

The Lightyear Race

https://www.boristhebrave.com/2026/05/17/the-lightyear-race/
1•ibobev•8m ago•0 comments

Next Token Prediction Is a Misleading Term

https://www.boristhebrave.com/2026/05/17/next-token-prediction-is-a-misleading-term/
2•ibobev•8m ago•0 comments

Show HN: Nylon – A dynamic, self-optimizing WireGuard mesh

https://github.com/encodeous/nylon
1•chenjq•8m ago•0 comments

Simulated Evolution on the PICO-8

https://bumbershootsoft.wordpress.com/2026/05/16/simulated-evolution-on-the-pico-8/
1•ibobev•8m ago•0 comments

An obsidian plugin that answers the question: What's on your radar?

https://www.talleye.com/posts/obsidian-radar
2•lfcipriani•8m ago•0 comments

Prompt eval cues predicted refusal shifts across 32k LLM rollouts

https://medium.com/@ratnaditya/the-prompt-is-the-tell-not-the-reasoning-trace-eval-awareness-2412...
1•ratnaditya•9m ago•0 comments

Handling the great code forge fragmentation

https://www.alexselimov.com/posts/forge_fragmentation/
2•aselimov3•10m ago•0 comments

A Decade of Open Innovation

https://www.redhat.com/en/blog/decade-open-innovation-red-hat-continues-scale-open-hybrid-cloud-m...
1•ilreb•10m ago•0 comments

Cloud Provider Comparison Tool

https://www.serversearcher.com/servers/provider/compare
1•matt-p•11m ago•0 comments

Understanding Synthetic Users and Synthetic Data: Future of AI-Powered Research

https://zenodo.org/records/20271450
1•anasteciadunu•12m ago•0 comments

Mistral Developing New AI Model for Banks Lacking Mythos Access

https://www.bloomberg.com/news/articles/2026-05-13/mistral-developing-new-ai-model-for-banks-lack...
3•Harvesterify•12m ago•0 comments

ExplodingWeb – find rising sites, niches and hidden opportunities

https://explodingweb.io/
2•onion92•12m ago•0 comments

Building a 1-Outlet, 4-GPU Workstation

https://jbarrow.ai/2026-05-18-gpu-workstation/
1•jbarrow•14m ago•0 comments

Sum-Check as an Algebraic Tensor Reduction: Part III

https://blog.zksecurity.xyz/posts/tensor-reductions-3/
2•marcobesier•14m ago•0 comments

Casual Archivist's Short History of Business Card: Versailles to Microsoft Word

https://themalin.co/journal/the-casual-archivists-short-history-of-the-business-card/
1•bookofjoe•15m ago•0 comments

Show HN: Catcher – An AI web testing tool where most tests never hit the API

https://github.com/Catcher2026/Catcher
1•Jasssss•15m ago•0 comments

Show HN: Engram adds universal context spine for AI coding IDEs

https://github.com/NickCirv/engram/releases/tag/v3.4.0
1•NickCirv•17m ago•0 comments

The era of free money may have ended

https://www.reuters.com/commentary/reuters-open-interest/g7-long-bond-stress-intensifies-2026-05-13/
3•latentframe•17m ago•0 comments

AI memory is not a database

https://altertable.ai/blog/2026-05-18-memory-is-not-a-database
2•fvaleye•17m ago•1 comments

Why large-scale donor programs are broken

https://www.theguardian.com/global-development/2026/may/16/aid-programmes-donors-pakistan-ngos-ci...
1•baigy•17m ago•0 comments