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!

I checked whether my laptop is wasting RAM

https://ansnadeem.com/2026/11/02/is-my-laptop-wasting-ram/
1•ansnadeem•5m ago•1 comments

DeepSeek also can easily read and write ML Weights

https://chat.deepseek.com/share/uysgv9yl2aj0tqs3on
1•ConteMascetti71•10m ago•0 comments

GUI64 – GUI for the Commodore 64 running on top of the built-in ROM

https://www.c64-wiki.com/wiki/GUI64
1•ethanpil•12m ago•0 comments

WorkOS reports security breach

3•werrett•13m ago•0 comments

Grok Bot Throttled After xAI Costs Outpaced Subscription Revenue

https://www.gadgetreview.com/grok-bot-throttled-after-xai-costs-outpaced-subscription-revenue
3•PicardManeuver•14m ago•2 comments

The U.S. Is Bullying Europe Like Never Before

https://www.theatlantic.com/ideas/2026/11/trump-europe-guilfoyle-afd-meddling/689226/
2•doener•17m ago•0 comments

Over 1k Danfoss StoreView fridge controllers still exposed online

https://censys.com/blog/european-refrigerator-controller-redux-a-new-wave-of-refrigeration-attacks/
1•acossta•18m ago•0 comments

Cringe Past of DIY Security

https://medium.com/@saitoken330/when-security-was-so-completely-beyond-my-comprehension-that-i-im...
1•7kago_yomi•22m ago•0 comments

Mac Apps on Cutefish Linux

https://cutefish.org/blog/mac-apps-first-milestone/
3•28304283409234•25m ago•0 comments

90% of my "human" visitors were bots

https://luna-park.app/blog/my-human-visitors-were-bots
3•Herobrine2084•27m ago•1 comments

Answering My Own Interview Question (Platform Engineer)

https://mishmesh.net/writing/answering-my-own-interview-question/
1•sudosteph•28m ago•0 comments

We added Hacker News Books/Videos search into our app

https://medium.com/@vektormemory/vektor-2-0-4-hacker-news-books-videos-added-node-js-sqlite-secur...
1•vektormemory•29m ago•0 comments

cvise: Super-parallel Python port of C-Reduce

https://github.com/marxin/cvise
2•gjvc•34m ago•0 comments

CloudOpsBench: AI benchmark shows FAI models struggling with cloud infra

https://cloudopsbench.ai
3•anmejia•38m ago•0 comments

Home – Collabora Online and Collabora Office

https://www.collaboraonline.com/
1•abdelhousni•38m ago•0 comments

Beating Tailscale with Userspace IPsec

https://ranet3.com/benchmarks/
1•StepBroBD•38m ago•1 comments

Nextcloud – open-source content collaboration platform

https://nextcloud.com/
1•abdelhousni•39m ago•0 comments

Ask HN: Who's hiring Google Sheets wizards in 2026?

1•kamphey•41m ago•1 comments

When Mathematics Looks Broken

https://www.joe-scott.com/blog/when-mathematics-looks-broken/
1•joseph_scott•42m ago•0 comments

Create your own Jev using embeddings

https://blog.voyageai.com/2026/10/27/how-to-create-your-own-jev-using-voyage-models/
2•fzliu•42m ago•0 comments

Silicon Valley Is Grappling with a Flood of Bugs Found by A.I.

https://www.nytimes.com/2026/10/28/technology/silicon-valley-bugs-ai.html
2•bookofjoe•44m ago•1 comments

Analysis of all verdicts for all judges on CA ballot

https://judgereport.org/
2•alando46•45m ago•2 comments

A Clock Made of Branches

https://fzakaria.com/2026/11/01/a-clock-made-of-branches
1•setheron•50m ago•0 comments

Psalm 7.0.0 [PHP static analysis tool by Vimeo]

https://github.com/vimeo/psalm/releases/tag/7.0.0
1•petecooper•52m ago•0 comments

Show HN: Synvora – a skincare app that tells you when a product is a bad match

https://apps.apple.com/ca/app/synvora-skin-ai-face-scan/id6795908716
1•bigdave_07•54m ago•0 comments

The Beer Wars: Inside the scramble to control Central Africa's liquid gold

https://thebaffler.com/salvos/the-beer-wars-schouten
1•lolc•57m ago•0 comments

Alphabet in talks to acquire assistant startup Howie AI

https://www.axios.com/pro/merger-deals/2026/11/02/google-alphabet-howie-ai-assistant
3•simonpure•1h ago•0 comments

h1: A Taste of the Bitter Lesson in Automated Theorem Proving

https://arxiv.org/abs/2610.35962
1•matt_d•1h ago•0 comments

The Hitchhiker's Guide to Training on Compute Islands – Core Automation

https://www.coreauto.com/hitchhikers-guide-to-training-on-compute-islands
2•mkmk•1h ago•0 comments

Anthropic's growth just flattened

https://www.regenerator1.com/p/anthropics-growth-just-flattened
91•cdrnsf•1h ago•75 comments