frontpage.
newsnewestaskshowjobs

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!

Discover the most interesting, weird and Websites of the Internet

https://cloudhiker.net
1•vismit2000•2m ago•0 comments

ANIP – open protocol so websites can talk directly to AI agents

https://github.com/shivanshmah14/anip
1•Shivanshmah14•3m ago•0 comments

How to Write Computer Programs [pdf]

https://www.dyalog.com/uploads/documents/Papers/declarative_prog.pdf
1•tosh•7m ago•0 comments

Show HN: Ghostty in-browser with real client-side back end

https://ghosttyplayground.com/
1•leebeef•7m ago•0 comments

20 years of Intel Macs: Why Apple switched, and why it switched again

https://arstechnica.com/gadgets/2026/06/20-years-of-intel-macs-why-apple-switched-and-why-it-swit...
1•rbanffy•8m ago•0 comments

The End of Refugee Resettlement

https://www.newyorker.com/news/letter-from-jordan/the-end-of-refugee-resettlement
1•littlexsparkee•10m ago•0 comments

Typst 0.15 Is Out

https://typst.app/blog/2026/typst-0.15/
1•semantecture•14m ago•1 comments

We Built NeuroAutomata: protein variant effect prediction

https://axonagentic.ai/blog/why-we-built-neuroautomata
1•rhokstar•14m ago•0 comments

The Most Interesting Articles on Wikipedia

https://www.mostdiscussed.com
1•vismit2000•17m ago•0 comments

Are Memories Transferable – Or Edible?

https://www.quantamagazine.org/are-memories-transferable-or-edible-20260605/
2•doener•19m ago•0 comments

Ask HN: Best Hetzner Alternatives?

1•king_zee•20m ago•0 comments

DEC Alpha

https://en.wikipedia.org/wiki/DEC_Alpha
2•tosh•20m ago•0 comments

Physicists Have Measured "Negative Time" in Quantum Experiment

https://scitechdaily.com/physicists-have-measured-negative-time-in-bizarre-quantum-experiment/
2•bryanrasmussen•21m ago•1 comments

Photograph Is Now Guilty Until Proven Innocent

https://winphotoio.substack.com/p/sunday-submission-04-the-burden-of-proof
2•winphoto•26m ago•0 comments

Kino, a high-performance Ractor web server for Ruby 4.0

https://github.com/yaroslav/kino
1•riffraff•27m ago•0 comments

General-purpose LLMs outperform specialized clinical AI tools

https://www.nature.com/articles/s41591-026-04431-5
1•hdvr•28m ago•0 comments

Understanding the rationale behind a rule when trying to circumvent it

https://devblogs.microsoft.com/oldnewthing/20260611-00/?p=112415
8•tosh•36m ago•0 comments

China's universities cut 12,000 'obsolete' degrees amid race to embrace AI era

https://www.scmp.com/economy/china-economy/article/3356913/chinas-universities-cut-12000-obsolete...
2•spwa4•40m ago•0 comments

Users cry foul after AMD stripped memory crypto from its consumer CPUs

https://arstechnica.com/security/2026/06/users-cry-foul-after-amd-stripped-memory-crypto-from-its...
3•u1hcw9nx•40m ago•0 comments

Why did I create my own PaaS as indie hacker and made it open-source?

https://github.com/sumon-ohid/better-paas
2•sumonoahid•51m ago•1 comments

Making a Metasearch Engine (2024)

https://matdoes.dev/metasearch
2•ethanhawksley•53m ago•0 comments

The History of How School Buses Became Yellow

https://www.smithsonianmag.com/history/history-how-school-buses-became-yellow-180973041/
2•thunderbong•54m ago•0 comments

Pure-Dart I2P: decentralized file sharing

https://github.com/geograms/i2p-dart
1•nunobrito•59m ago•0 comments

Greed Is Learned: Visible Incentives as Reward-Hacking Triggers

https://arxiv.org/abs/2606.16914
2•Timofeibu•1h ago•0 comments

Show HN: Kitchen Rush, Overcooked inspired LLM tool calling benchmark

https://github.com/bassimeledath/kitchen-rush
2•bombastic311•1h ago•0 comments

Movebound: The Art of Zugzwang

https://www.thearticle.com/movebound-the-art-of-zugzwang
1•Pamar•1h ago•0 comments

Discovery debt: The debt that doesn't slow you down

https://www.leadinginproduct.com/p/discovery-debt
2•benkan•1h ago•0 comments

The US government's Anthropic models ban was never about an AI jailbreak

https://techcrunch.com/2026/06/15/the-us-governments-anthropic-models-ban-was-never-about-an-ai-j...
2•SilverElfin•1h ago•1 comments

Why do South Koreans love AI so much?

https://www.technologyreview.com/2026/06/15/1138983/why-do-south-koreans-love-ai-so-much/
1•joozio•1h ago•0 comments

Cross-Language Data Types

https://ekxide.io/blog/cross-language-data-types/
1•birdculture•1h ago•0 comments