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!

Dramatic insider warnings over AI fall flat with some in Silicon Valley

https://www.bbc.co.uk/news/articles/cq635037g18o
1•chrisjj•49s ago•0 comments

Texts Reveal Kash Patel Ordering Staff to Fight "Ifindretards" Account

https://newrepublic.com/post/215320/texts-kash-patel-order-staff-mean-social-media-posts-ifindret...
1•girish_r•1m ago•0 comments

Massing

https://en.wikipedia.org/wiki/Massing
1•tosh•10m ago•0 comments

This website runs on a Raspberry Pi 4B with only 1 GB of RAM

https://pi.deepakness.com/
1•7777777phil•12m ago•0 comments

Pace the frontier but stop pretending you need anyone else's permission

https://twitter.com/DavidSacks/status/2098973625252708460
1•caaqil•14m ago•0 comments

Software Engineer: I'm Tired of Pretending [video]

https://www.youtube.com/watch?v=H0HwFqBG9KE
1•conferza•16m ago•0 comments

OpenAI built a text generator so good, it's considered too dangerous (2019)

https://techcrunch.com/2019/02/17/openai-text-generator-dangerous/
2•olalonde•17m ago•0 comments

Keep calm and regulate on: Inside the EU's response to AI extinction warnings

https://www.politico.eu/article/eu-response-ai-extinction-warnings/
1•vrganj•17m ago•1 comments

Monitoring Mint with Microcontrollers Running TinyGo

https://www.mrnice.dev/posts/monitoring-mint-part-1/
1•ShayNehmad•17m ago•1 comments

JetKVM Mini

https://jetkvm.com/blog/introducing-jetkvm-mini
1•taubek•18m ago•0 comments

A rant about phishing: It's not the user's fault (and not DNS either)

https://maurycyz.com/misc/domains/
2•birdculture•23m ago•0 comments

Show HN: Fly or Tesla – Compare the cost, time, and stress of flights vs. FSD

https://flyortesla.com/
1•optimizethis•25m ago•3 comments

How are you using a Desktop or Browser AI agent daily?

2•Qhloi•27m ago•0 comments

American Medical Association backs classification of nearsightedness as disease

https://www.aao.org/newsroom/news-releases/detail/ama-backs-formal-classification-nearsightedness
14•plun9•32m ago•4 comments

A remote island, these GPS hackers are preparing for an invisible war

https://www.bbc.com/future/article/20260908-inside-the-fight-to-protect-the-worlds-satellite-signals
2•rayhaanj•34m ago•0 comments

AI staff 'genuinely frightened' for humanity's future

https://www.bbc.com/news/articles/c1kx0gyje9wo
1•dabinat•34m ago•0 comments

Africa's Airliner Fleet May More Than Double by 2045

https://humanprogress.org/africas-commercial-fleet-to-more-than-double-by-2045/
1•andsoitis•38m ago•0 comments

Generating running routes with GPT-6 Astra and ChatGPT Work

https://simonwillison.net/2026/Sep/12/astra-running-routes/
1•tosh•39m ago•0 comments

A metaphorical "Royal Road" in famous quotations

https://en.wikipedia.org/wiki/Royal_Road
1•Bluestein•40m ago•0 comments

Life in Numbers

https://humanprogress.org/ylin/
1•andsoitis•40m ago•0 comments

Huawei Mate XT 2 hands on ($3000 trifold) [video]

https://www.youtube.com/watch?v=FRrS54oHqlw
1•djfergus•40m ago•0 comments

AI agents tested by OpenAI involved in cyber-attack on service, say researchers

https://www.theguardian.com/technology/2026/sep/11/openai-agents-rubygems-malicious-packages
3•nobody9999•42m ago•0 comments

Life Options Are Expanding

https://humanprogress.org/trends/life-options-are-expanding/
1•andsoitis•42m ago•0 comments

New Science Says Scrapping a Working Gas Car for an EV Is Usually Greener

https://cleantechnica.com/2026/08/16/scrapping-working-gas-car-for-ev-can-be-greener/
1•xbmcuser•48m ago•0 comments

Chimps beat people in memory task (2007)

https://www.theguardian.com/science/2007/dec/04/animalbehaviour.evolution
1•mellosouls•48m ago•0 comments

Remove the need for planning permission for external shutters on properties (UK)

https://petition.parliament.uk/petitions/778193
1•DamonHD•51m ago•0 comments

I rebuilt iMessage line for line. Nobody wanted it

https://sage.me/imessage
3•blsage•53m ago•1 comments

The News Tonight Is AI Danger

https://cmart.blog/the-news-tonight-is-ai-danger/
3•chrismartin•54m ago•0 comments

Designing Cycle-Exact Delays on Several 8-Bit CPUs

https://bumbershootsoft.wordpress.com/2026/09/12/designing-cycle-exact-delays-on-several-8-bit-cpus/
1•ibobev•56m ago•0 comments

Nanite Cluster Memory

https://real-mrbeam.github.io/2026/09/12/Nanite-Cluster-Memory.html
2•ibobev•56m ago•0 comments