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!

Show HN: CopyProps – A Figma plugin that copies element properties as text

https://github.com/p32929/figma_copy_props
1•heliskyr2•15s ago•0 comments

GNUtrition 0.33.0rc1 Now Available

https://lists.gnu.org/archive/html/info-gnutrition/2026-05/msg00000.html
1•amcclure•3m ago•0 comments

The React2Shell Story and What Happened Next.js

https://sylvie.fyi/posts/react2shell/
1•thaunatos•9m ago•1 comments

ExitFlare

https://exitflare.com/
3•libroot•15m ago•0 comments

Learn Something Old Every Day, Part XXI: VGA Memory Access Is Complicated

https://www.os2museum.com/wp/learn-something-old-every-day-part-xxi-vga-memory-access-is-complica...
1•kencausey•16m ago•0 comments

Show HN: Ovlt – Lightweight Auth Server That Runs in ~20MB RAM

https://www.ovlt.tech/
1•Shrpp•16m ago•1 comments

How to Brush Your Teeth at Work

https://joshlf.com/posts/brush-your-teeth/
2•untrust•20m ago•0 comments

Over 97% of the 'Linux' Foundation's Budget Goes Not to Linux

https://techrights.org/n/2026/05/08/Over_97_of_the_Linux_Foundation_s_Budget_Goes_Not_to_Linux.shtml
9•esaym•24m ago•0 comments

Crab Memes Amplify Mistaken Ideas about Evolution

https://www.scientificamerican.com/article/crab-memes-amplify-mistaken-ideas-about-evolution/
1•Eridanus2•37m ago•1 comments

Show HN: TigerJSON – Native macOS JSON viewer with jq filter engine ($9.99)

https://apps.apple.com/kr/app/tiger-json/id6761610376?mt=12
1•oxchairman•44m ago•0 comments

Scott Sumner Q1 movie reviews

https://scottsumner.substack.com/p/films-of-2026-q1
1•paulpauper•46m ago•0 comments

Annualizing Retention Rates

https://www.arrguide.com/blog/annualizing-retention-rates
1•ericsd2024•51m ago•0 comments

The Gell-Mann Amnesia Trap

https://novehiclesinthepark.substack.com/p/the-gell-mann-amnesia-trap
1•axtro•52m ago•0 comments

Meltdown: LLM Client Made in Python and Tk

https://github.com/Merkoba/Meltdown
2•madprops•56m ago•0 comments

ShowHN: Applying PEFT (e.g., LoRA) for edge-cloud collaborative computing

https://github.com/ShadowLLM/shadow-peft
3•heyjude87•58m ago•0 comments

A recent experience with ChatGPT 5.5 Pro

https://gowers.wordpress.com/2026/05/08/a-recent-experience-with-chatgpt-5-5-pro/
2•_alternator_•1h ago•0 comments

Great Writers "Tell" All the Time

https://freddiedeboer.substack.com/p/great-writers-tell-all-the-time
3•paulpauper•1h ago•0 comments

Show HN: Ant – A from-scratch JavaScript runtime in 9 MB

https://github.com/themackabu/ant
4•theMackabu•1h ago•0 comments

SoC 2 has no real edge

1•krishgolcha•1h ago•0 comments

The Great American GLP-1 Experiment

https://www.nytimes.com/interactive/2026/04/15/opinion/glp1-health-effects.html
1•paulpauper•1h ago•0 comments

Show HN: KillClawd – a sarcastic AI desktop crab by local Ollama

https://github.com/ninjahawk/KillClawd
3•ninjahawk1•1h ago•0 comments

We mapped the nationwide Instructure breach

https://data.dailycal.org/2026-05-07-shiny-hunters/
2•notmysql_•1h ago•0 comments

The End of Elsewhere

https://fugitivemargins.substack.com/p/the-end-of-elsewhere
1•celadevra_•1h ago•0 comments

The Secret Diary That Has Spilled into the Musk vs. OpenAI Feud

https://www.wsj.com/tech/musk-openai-trial-greg-brockman-diary-journal-6950270e
2•RyanShook•1h ago•0 comments

Nvidia introduces back end for CUDA kernels in Rust

https://github.com/NVlabs/cuda-oxide
1•ketchup32613•1h ago•0 comments

Ask Hacker News: AI music with feedback

1•alpple•1h ago•0 comments

vLLM Routing and KV

https://avkcode.github.io/blog/how-vllm-works.html
3•gmays•2h ago•0 comments

A Mental Model for Agentic Work

https://basti.io/blog/agentic_work_mental_model/
2•vinhnx•2h ago•0 comments

Non-invasive profiling of the tumour microenvironment with spatial ecotypes

https://www.nature.com/articles/s41586-026-10452-4
4•bookofjoe•2h ago•0 comments

VGC: A Zone-Based Garbage Collection Architecture for Python's Parallel Runtime

https://arxiv.org/abs/2512.23768
2•teleforce•2h ago•0 comments