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!

NATO Defeated Serbia in a 78-Day Air War

https://www.thecollector.com/operation-deliberate-force/
1•Tomte•11s ago•0 comments

For the first time ever, Google Search is less than 50% of Alphabet's revenue

https://www.kadoa.com/companies/insights/google-search-below-half
1•hubraumhugo•30s ago•0 comments

Show HN: Wanim – Manim in the browser, but 1/20 smaller

https://github.com/Acfboy/Wanim
1•Acfboy•1m ago•0 comments

Two unpatched zero-day vulnerabilities in NTE allow for full account takeover

https://hunio.org/security/nte-account-takeover/
1•hunio•1m ago•1 comments

Toxic Experts

https://nedbatchelder.com/blog/201711/toxic_experts
1•luu•1m ago•0 comments

9000-year-old 'Swiss Army kit' found in Co Wicklow

https://www.rte.ie/news/regional/2026/1029/1597253-wicklow-archaeological-site/
1•austinallegro•2m ago•0 comments

Show HN: Witnessory – a signed record of the web's move to post-quantum crypto

https://witnessory.org
2•parthod0x•2m ago•0 comments

Rising water is forcing this French town off Newfoundland to move

https://www.cbc.ca/news/canada/newfoundland-labrador/rising-water-is-forcing-this-french-town-off...
1•Teever•2m ago•0 comments

Alphabet heads for a $500B drop in market value, biggest in its history

https://finance.yahoo.com/markets/article/alphabet-heads-for-a-500-billion-drop-in-market-value-t...
1•rawgabbit•2m ago•0 comments

Nvidia CEO reportedly targeted by Chinese spy

https://www.theguardian.com/technology/2026/oct/29/nvidia-ceo-targeted-chinese-spy
2•Wingy•5m ago•0 comments

Anthropomorphize Your AI Agent for Fun and Profit

https://theautomatedoperator.substack.com/p/anthropomorphize-your-ai-agent-for
1•idopmstuff•5m ago•1 comments

The Registry Under the Ballot – yaso.is – pckt

https://blog.yaso.is/the-registry-under-the-ballot-y009e17
1•rbanffy•6m ago•0 comments

Are Stochastic Parrots Alive?

https://stefano.petrilli.xyz/are-stochastic-parrots-alive/
4•stefanopetrilli•6m ago•1 comments

I rebuilt Kubernetes for ESP32 microcontrollers

https://github.com/arterialist/kube32
3•Arterialist•7m ago•1 comments

Show HN: Lif – A calm, offline iPhone app for water, focus, eye rest, sleep

https://apps.apple.com/us/app/lif-habit-water-tracker/id6805542426
2•maflabs•9m ago•0 comments

Writing Contests That Allow the Use of AI

https://jamesyu.org/writing-competitions-that-allow-ai-use/
1•jamesjyu•10m ago•0 comments

Elon Musk is a 'real genius', Putin says after satellite talks

https://www.bbc.com/news/articles/c63djl148n3eo
3•eternalreturn•11m ago•2 comments

One Sine Wave, Four Runtimes: Eliminating ULP Drift Across Native, WASM, and TS

https://anankelabs.io/blog/one-sine-wave-four-runtimes-portable-topology-determinism/
2•waltergreefkes•11m ago•0 comments

How Tyler Cowen and Alex Tabarrok Have Changed Their Views on AI

https://marginalrevolution.com/marginalrevolution/2026/10/how-tyler-cowen-and-alex-tabarrok-have-...
2•paulpauper•12m ago•0 comments

Luma – smart launcher for you, and your AI agent

https://github.com/sakurartro/luma
1•sakurartro•12m ago•0 comments

Some favorite lesser-known books

https://blog.andymasley.com/p/some-favorite-lesser-known-books
1•paulpauper•13m ago•0 comments

Scaling Reliable AI Agents

https://productnow.ai/blogs/scaling-reliable-ai-agents
1•kadhirvelm•13m ago•0 comments

Emotion regulation capacity lacks a shared neural signature

https://www.nature.com/articles/s41586-026-11203-1
1•PaulHoule•13m ago•0 comments

A New Kind of Chemistry

https://www.construction-physics.com/p/a-new-kind-of-chemistry
1•crescit_eundo•13m ago•0 comments

TikTok Is Changing Politics (Perhaps for the Better)

https://www.nytimes.com/2026/10/28/opinion/tiktok-politics-social-media-hopescroll.html
1•paulpauper•13m ago•1 comments

MotherDuck Launches Dive Apps

https://motherduck.com/blog/dive-apps-superpowers-for-ai-builders/
1•skadamat•14m ago•1 comments

Ask HN: Sitting on unused OpenAI / Anthropic / AWS credits that will expire?

3•xiaomaijj•14m ago•1 comments

What was the turning point for Postgres?

https://planetscale.com/blog/what-was-the-turning-point-for-postgres
1•theanonymousone•14m ago•0 comments

Ask HN: Is your leadership pushing you to skip dev review?

2•arm32•15m ago•0 comments

Joe Louis: The King as a Middle-Aged Man

https://classic.esquire.com/article/1962/6/1/joe-louis-the-king-as-a-middle-aged-man
1•georgex7•15m ago•0 comments