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 Ozempic plateau may be caused by the drug starving the gut bacteria

https://www.researchhub.com/proposal/32164/gut-microbiomescfa-axis-as-a-pharmacodynamic-modifier-...
1•cryptarsh•19s ago•0 comments

EU iPhones Get AirPods-Style Pairing for Third-Party Wearables in iOS 26.5

https://www.macrumors.com/2026/05/11/ios-26-5-eu-third-party-wearable-changes/
1•cgeier•53s ago•0 comments

How to Build Better Startup Products Using Apple's Thinking

https://comuniq.xyz/post?t=1069
1•01-_-•6m ago•0 comments

Trump Says Nvidia CEO Jensen Huang Is Flying with Him to China

https://www.forbes.com/sites/siladityaray/2026/05/13/trump-says-nvidia-ceo-jensen-huang-is-flying...
1•01-_-•6m ago•0 comments

Chrome IndexedDB: SQLite back end

https://chromestatus.com/feature/5161589557821440
1•fofoz•9m ago•0 comments

The role of cat eye narrowing movements in cat–human communication (2020)

https://www.nature.com/articles/s41598-020-73426-0
1•mifydev•10m ago•0 comments

One Startup Is Gambling. Ten Is Mathematics

https://www.mynameisfeng.com/blog/one-startup-is-gambling-ten-is-mathematics
1•edward8628•13m ago•0 comments

Emergent Quantization from a Dynamic Vacuum

https://journals.aps.org/prresearch/abstract/10.1103/l8y7-r3rm
1•davedx•15m ago•0 comments

What Is BusyBox?

https://specular.fi/post/what-is-busybox
1•maxloh•16m ago•0 comments

Social Media Is Now Parasocial Media

https://journals.sagepub.com/doi/10.1177/20563051261437487
1•john-doe•16m ago•0 comments

Too many people have peed in the pool (2016)

https://www.stephenfry.com/2016/02/peedinthepool/
1•downbad_•16m ago•0 comments

Redis and the Cost of Ambition

https://charlesleifer.com/blog/redis-and-the-cost-of-ambition/
1•maxloh•16m ago•0 comments

Notes on the Physics of Startups by Rob Snyder [video]

https://www.youtube.com/watch?v=6ZJOruNRdpo
1•marttilaine•18m ago•0 comments

Free AI hiring toolkit for startup founders

https://hirelikeapro.app/
1•MihaiVR•20m ago•0 comments

Math reveals the one game of chance you should always accept

https://www.scientificamerican.com/article/math-reveals-the-one-game-of-chance-you-should-always-...
1•beardyw•20m ago•1 comments

The Stream Virtual Machine [pdf]

https://web.archive.org/web/20140921203922/http://metagraph.org/papers/stream_virtual_machine.pdf
1•tosh•23m ago•0 comments

Largest survey of physicists puts Standard Model of cosmology under scrutiny

https://phys.org/news/2026-05-largest-survey-physicists-standard-cosmology.html
1•mtdewcmu•23m ago•0 comments

Utah's 'hyperscale' data center could create heat island near Great Salt Lake

https://www.sltrib.com/news/environment/2026/05/07/utahs-data-center-could-create/
1•xyzal•24m ago•0 comments

WireGuard: Fast, modern, secure VPN tunnel

https://www.wireguard.com/
1•janandonly•28m ago•0 comments

Lumo Chat Export

1•carlostkd•30m ago•0 comments

England Runestones

https://en.wikipedia.org/wiki/England_runestones
1•cl3misch•31m ago•0 comments

Resolving Neighborhood Info with HTTP Range Requests

https://github.com/kevmo314/browser-district
1•kevmo314•39m ago•0 comments

Execs admit AI makes them value human workers less

https://www.theregister.com/ai-ml/2026/05/13/execs-admit-ai-makes-them-value-human-workers-less/5...
3•beardyw•39m ago•0 comments

The AI Tribunal of Truth

https://objection.ai/
1•pretext•42m ago•1 comments

The Unethical Guide to Surviving AI Layoffs [video]

https://www.tiktok.com/@atmoio/video/7638649825382190350
1•theletterf•48m ago•0 comments

Why I Left the Network

https://projects.propublica.org/why-i-left-the-network/
1•mynameisash•50m ago•0 comments

2001: A Space Odyssey

https://typesetinthefuture.com/2014/01/31/2001-a-space-odyssey/
1•andsoitis•53m ago•0 comments

C++26: Standard Library Hardening

https://www.sandordargo.com/blog/2026/05/13/cpp26-library-hardening
2•ingve•54m ago•2 comments

Zerobrew

https://github.com/lucasgelfond/zerobrew
1•zeristor•54m ago•0 comments

"will I be okay?"

https://arstechnica.com/tech-policy/2026/05/will-i-be-ok-teen-died-after-chatgpt-pushed-deadly-mi...
3•yawpitch•1h ago•2 comments