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!

Qwen3.8 27B Runs 200 tok/s on a Single RTX 5090

https://twitter.com/sgl_project/status/2088281320422322413
1•unseenmars•2m ago•0 comments

An easy way to build self-diagnosing and self-learning AI agents in production

https://www.youtube.com/watch?v=2x0BKQBMbF4
1•supportm•2m ago•1 comments

Castform now supports supervised finetuning

https://castform.com/blog/sft-launch/
1•kumama•3m ago•0 comments

UI is hell: four-function calculators

https://lcamtuf.substack.com/p/ui-is-hell-four-function-calculators
1•jandeboevrie•5m ago•0 comments

Capyreader: A smallish Android RSS reader

https://github.com/jocmp/capyreader
1•thunderbong•6m ago•0 comments

Independent Internet Forums

https://indieforums.linklists.net/
1•rdmuser•8m ago•0 comments

Comparing React and Htmx for Building Chatbots

https://carlkolon.com/2026/08/14/htmx-react-chat/
1•cckolon•10m ago•0 comments

The Making of Pro Office Calculator, Part 1 – Fragment-Based Architecture

https://deadbeef.io/procalc_making_of_1
1•rjinman•10m ago•0 comments

When facts change, should AI memory change?

https://github.com/Anchorstate-Lab/GMR
1•Zongming•11m ago•0 comments

Turning molecules into reliable electronic devices

https://news.mit.edu/2026/turning-molecules-into-reliable-electronic-devices-0803
1•gmays•13m ago•0 comments

Human brain cells do next-token prediction

https://parasma.com/news/human-brain-cells-do-next-token-prediction
1•alach11•14m ago•0 comments

Apple trains its own AI model for China market with Alibaba's support, sources

https://www.reuters.com/business/retail-consumer/apple-trains-its-own-ai-model-china-market-with-...
3•newusertoday•14m ago•0 comments

Trust Boundary Collapse: Two Campaigns That Bypassed Artifact Inspection

https://lateos.ai/articles/trust-boundary-collapse-teampcp-clickfix
1•leochong•15m ago•0 comments

Multi-hop reasoning collapses by 1M tokens; with a learning system it doesn't

https://zenodo.org/records/21937795
1•lvrzhn•15m ago•0 comments

Rustc_codegen_JVM: Compile Rust to Java bytecode and runnable JARs

https://github.com/IntegralPilot/rustc_codegen_jvm
1•fanf2•16m ago•0 comments

AI Thinks the Internet Is Reddit. We Have 8,616 Answers Proving It

https://growtika.com/blog/reddit-ai-visibility-research
3•Growtika•16m ago•2 comments

1,1 mld USD dla River AI: Co oznacza rewolucja spersonalizowanego AI?

https://neurise.io/blog-auto-1-1-mld-usd-dla-river-ai-rewolucja-spersonalizowanego-ai.html
1•mbarczynski•17m ago•0 comments

Can Boeing Be Forced to Let a Blind Machinist Build Planes? New Lawsuit Says Yes

https://viewfromthewing.com/can-boeing-be-forced-to-let-a-blind-machinist-build-planes-a-new-laws...
1•crescit_eundo•17m ago•1 comments

LLM Web Search Benchmarks: More Searches Beat a Better Search Engine

https://openrouter.ai/blog/announcements/web-search-benchmark/
1•DGAP•19m ago•0 comments

Earn yield through machine learning vault on DeFi

https://twitter.com/macbrennan_cc/status/2088295071024034226
1•panterafii•21m ago•1 comments

150 years of Gibbs' phase rule

https://www.chemistryworld.com/features/150-years-of-gibbs-phase-rule/4023900.article
2•akshatjiwan•22m ago•0 comments

Predicting short interest from FINRA daily short volume shows 0.414 correlation

https://equibles.com/research/does-daily-short-volume-predict-short-interest
1•daniel3303•22m ago•0 comments

An advanced attacker is targeting Salesforce and ServiceNow instances worldwide

https://www.reco.ai/blog/city-forum-campaign-salesforce-servicenow
1•daretograsp•23m ago•0 comments

PostgreSQL: The database that should be dead but runs the Internet [video]

https://www.youtube.com/watch?v=_CB_Aa2ODeM
1•teleforce•24m ago•1 comments

US Court rules AFP health programs can't import Gilead medications from overseas

https://www.cnbc.com/2026/08/14/court-ruling-gilead-medications-overseas-afps.html
1•ck2•25m ago•1 comments

Agentic AI drops digits, This library catches them before it runs in fintech

https://github.com/insightitsGit/PrismManifest
1•parvaamin•26m ago•0 comments

Desktop Calendar: A Design Journey – The Thunderbird Blog

https://blog.thunderbird.net/2026/08/desktop-calendar-a-design-journey/
1•speckx•27m ago•0 comments

Visual Studio Code 1.133

https://code.visualstudio.com/updates/v1_133
1•tosh•29m ago•0 comments

Nvidia's $500B Plan Envelops Wall Sreett in Its AI Frenzy

https://www.bloomberg.com/news/articles/2026-08-14/nvidia-s-500-billion-plan-envelops-wall-street...
1•petethomas•29m ago•0 comments

Quantum Latin squares cannot solve Euler's 36 officers problem

https://phys.org/news/2026-08-quantum-latin-squares-euler-officers.html
1•sciences44•29m ago•0 comments