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!

Yes, the Hong Kong of Old Is Over

https://www.project-syndicate.org/commentary/hong-kong-is-over-just-another-big-chinese-city-by-s...
1•ksec•3m ago•1 comments

Deep Brain Stimulation

https://en.wikipedia.org/wiki/Deep_brain_stimulation
1•soupspaces•3m ago•0 comments

Waymo's driverless cars involved in 68% fewer crashes, U.S. study finds

https://www.cbc.ca/news/world/waymo-driverless-car-safety-study-9.7282895
1•curmudgeon22•7m ago•0 comments

Who's making money from using/exploiting AI?

2•jonthepirate•12m ago•0 comments

Scanwheel is a drum style mechanical television you can build yourself

https://github.com/AncientJames/Scanwheel/
1•tobr•13m ago•0 comments

I timed 7,194 journeys to find London's most equidistant pub

https://equidistance.io/londons-most-equidistant-pub/
1•lambfruit•15m ago•0 comments

Introduction to Multiparty Computation Tutorials

https://docs.stoffelmpc.com/tutorials/overview
2•badcryptobitch•17m ago•0 comments

Silicon Valley Splits over Closing the Borders to Chinese A.I

https://www.nytimes.com/2026/07/25/technology/open-source-silicon-valley-china.html
1•sbulaev•17m ago•0 comments

Samsung wins $200B Broadcom AI chip partnership, boosting foundry push

https://www.reuters.com/business/autos-transportation/samsung-elec-wins-200-billion-broadcom-ai-c...
3•geox•21m ago•0 comments

RedisME: RDM tool for Java serialization in the world

https://www.hepengju.com/
1•hepengju•25m ago•0 comments

A Convergence of Health Crises Under Robert F. Kennedy Jr. Leadership

https://bluepressjournal.substack.com/p/us-faces-multipronged-public-health
2•WinstonWendell•30m ago•0 comments

FDA panel supports broadening access to peptides popular on the gray market

https://www.npr.org/2026/07/23/nx-s1-5903202/fda-peptides-restrictions
2•andsoitis•31m ago•0 comments

Real Linux for your smartphone: Ubuntu Touch release 24.04-2.0 and 24.04-1.4

https://ubports.com/blog/ubports-news-1/ubuntu-touch-24-04-2-0-and-24-04-1-4-release-4007
3•readyblue•33m ago•1 comments

Messy Jobs: The Work That AI Cannot Reach

https://messyjobs.ai/
1•rafaelc•33m ago•0 comments

The Silurian Hypothesis (2020)

https://www.theparisreview.org/blog/2020/01/23/the-silurian-hypothesis/
4•andsoitis•36m ago•1 comments

Wikiview: Graph-based browsing of Wikipedia images

https://wikiview.net
3•qifzer•39m ago•0 comments

Micron urges White House to reject Apple's blacklist memory plan

https://appleinsider.com/articles/26/07/25/micron-urges-white-house-to-reject-apples-blacklist-me...
4•walterbell•39m ago•1 comments

The AI Productivity Illusion

https://www.hardresetmedia.com/p/the-ai-productivity-illusion
3•quick_brown_fox•41m ago•0 comments

Your Best Work Leaves No Trace: Why We Reward the Fix and Replace the Prevention

https://chrhenning.com/blog/2026/we-reward-the-fix-not-the-prevention/
1•chrhenning•41m ago•0 comments

My web version of Mars MIPS, now have builtin C compiler

https://webmars.nfiles.top/
2•nenepbl•42m ago•1 comments

Stripe in talks to acquire OpenRouter in potential $10B deal, WSJ reports

https://finance.yahoo.com/technology/ai/articles/stripe-talks-acquire-openrouter-potential-215104...
6•nlpnerd•45m ago•3 comments

Reality Bites Elon Musk and His Tesla, SpaceX Believers

https://www.wsj.com/finance/stocks/reality-bites-elon-musk-and-his-tesla-spacex-believers-1b639591
5•1vuio0pswjnm7•46m ago•4 comments

Show HN: Collecte MTL – Montreal waste collection schedules (web and iOS)

https://collectemtl.ca/
2•scastiel•47m ago•0 comments

Show HN: T-Shirt Weather. See the multi-day forecast for any city on a world map

https://tshirtweather.fyi
1•lowkeyokay•47m ago•0 comments

Chinese Discoveries Thru History

https://en.wikipedia.org/wiki/List_of_Chinese_discoveries
1•zoom6628•47m ago•1 comments

Trump administration admits clean energy grants were canceled based on politics

https://www.clickondetroit.com/news/politics/2026/07/25/trump-administration-admits-grants-for-cl...
5•zzzeek•49m ago•0 comments

KFC delivery to Ukraine's front line

https://xcancel.com/antibot/captcha
1•tim333•50m ago•0 comments

A shell colon does nothing. Use it anyway.

https://refp.se/articles/your-shell-and-the-magic-colon
3•olexsmir•50m ago•1 comments

Harddrive Is Probably Full

https://www.marginalia.nu/log/a_139_hdd/
2•ilreb•51m ago•0 comments

Corporate America Has Suddenly Decided to Stop Blowing Money on AI

https://www.wsj.com/business/china-us-ai-model-costs-53a12e96
24•1vuio0pswjnm7•51m ago•11 comments