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!

The Dress

https://en.wikipedia.org/wiki/The_dress
1•thunderbong•36s ago•0 comments

Arista Networks Arbitrary RCE Vulnerability

https://www.arista.com/en/support/advisories-notices/security-advisory/24730-security-advisory-0174
1•joeblubaugh•1m ago•0 comments

The $2k Phone Should Be Free

https://victorantos.com/posts/the-2000-dollar-phone-should-be-free/
1•victorbuilds•1m ago•0 comments

AI agents that QA-test your web app like real users

https://www.sanitycheck.dev/
1•russellvancuren•2m ago•0 comments

LeMap – Learning Enterprise Map

https://datasong.app
1•thallukrish•3m ago•1 comments

Healthcare AI's next test is integration

https://www.technologyreview.com/2026/09/10/1141421/healthcare-ais-next-test-is-integration/
1•joozio•5m ago•0 comments

Ask HN: What is the proper way of preventing AI labs to use your private data

1•ozgung•6m ago•0 comments

Humble Bundle – 24 Linux, Cloud and Agentic AI Books

https://www.humblebundle.com/books/ultimate-linux-cloud-infrastructure-bundle-packt-books
1•kartikeypan•8m ago•0 comments

Static hosting a coding agent can drive end to end

https://novence.ai
1•LincChad•8m ago•0 comments

Yemen's Houthis Seize Strategic Red Sea Port, Officials Say

https://www.nytimes.com/2026/09/10/world/middleeast/yemens-houthis-seize-strategic-red-sea-port-o...
1•ceejayoz•8m ago•0 comments

Search engine may access the user's location without prompting them

https://chromium.googlesource.com/chromium/src.git/+/main/docs/x_geo_header.md
1•kozika•10m ago•0 comments

iPhone Pro Materials, Ranked

https://volatileinputs.com/2026/04/iphone-pro-materials-ranked/
1•simonebrunozzi•15m ago•0 comments

Keyword Research Tools

https://topkeywordresearchtools.com/
1•Keywordstat•16m ago•0 comments

The Einstein test: what happens when AI tries to rediscover relativity?

https://www.nature.com/articles/d41586-026-02804-x
1•bookofjoe•18m ago•0 comments

The Limits of Miles Driven as AV Safety Evidence

https://muraiki.github.io/av_safety/limit_miles_evidence/
1•muraiki•18m ago•0 comments

Test your agent in a simulation of your stack before it touches prod

https://sonatalabs.ai/
1•matildagh•18m ago•1 comments

Neuriva

https://www.facebook.com/NeurivaTry/
1•rafygabu•19m ago•0 comments

AI isn't going to kill us

https://thecritic.co.uk/the-1-5-billion-ai-doomsday-cult/
1•romaniitedomum•19m ago•0 comments

TrustDento | India's Trusted Dental Care Network

1•nxtoffer•21m ago•0 comments

Caltech mathematicians call for suspension of AI Mathathon

https://proofsandprompts.com/2026/09/10/open-letter-about-the-mathathon/
1•doubledamio•24m ago•0 comments

PrimalLift

https://www.facebook.com/PrimalLiftTry/
1•najudasy•24m ago•0 comments

DeepJIT: Header-Only C++20 JIT Runtime for Nvidia CUDA and Huawei Ascend

https://github.com/deepseek-ai/DeepJIT
1•mehmetoguzderin•30m ago•0 comments

Thanks to Siri Recaps, your Apple Watch is always listening

https://www.techradar.com/health-fitness/smartwatches/thanks-to-siri-recaps-your-apple-watch-is-a...
5•geox•31m ago•0 comments

Pushing Collision Attacks on SHA-2 to 39 Steps

https://eprint.iacr.org/2026/1120
1•gslin•31m ago•0 comments

DeepSeek v4.1-Flash on Openrouter

https://openrouter.ai/deepseek/deepseek-v4.1-flash
1•manoji•31m ago•0 comments

PlayStation cancels Kojima's PHYSINT, Xbox steps in

https://twitter.com/hideo_kojima_en/status/2097877506401681753
6•HatchedLake721•31m ago•0 comments

Sellular – Boost SaaS Visibility

https://Sellular.online
1•Spark88•32m ago•0 comments

React 19.3: View Transitions and Fragment Refs are now stable

https://react.dev/blog/2026/09/09/react-19-3
2•joshcsimmons•33m ago•0 comments

Towards Self-Driving Codebases

https://cursor.com/blog/self-driving-codebases
1•tosh•33m ago•0 comments

Gemini 3.8 Flash passed Claude Fable 5.1 on this bench

https://chessbench.ai
2•soltanov•34m ago•0 comments