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!

Otis – a minimal AI agent that runs local models out of the box

https://triangllabs.ai/otis
1•petrenk0n•41s ago•1 comments

Researchers have created a mouse with a partly human brain

https://www.economist.com/science-and-technology/2026/09/16/researchers-have-created-a-mouse-with...
1•sbulaev•1m ago•0 comments

Duotone icon library with 1k icons and 250 flags for React with RTL support

https://github.com/andrsrxn/icons
1•andrsrxn•3m ago•0 comments

Show HN: Nullsec – server-blind encrypted paste

https://nullsec.pntr.dev
1•NevskyNull•4m ago•0 comments

Future of computing is here – OmaVision on Omarchy [video]

https://www.youtube.com/watch?v=shNPZSCICJE
1•shellkr•5m ago•1 comments

Paramount 'Leaks' Study Saying California Will Suffer If Its Merger Is Blocked

https://www.techdirt.com/2026/09/16/paramount-funds-leaks-dodgy-study-saying-california-will-suff...
3•hn_acker•6m ago•1 comments

Mockfreeli – paste a YouTube link, get 5 license-free songs that sound like it

https://mockfreeli.org/
1•ianhil•13m ago•0 comments

The US Gov Graph – a complete map of the federal government

https://graph.civlab.org/us
1•m_adams•14m ago•1 comments

What If You Could Do It All Over?

https://www.newyorker.com/magazine/2020/12/21/what-if-you-could-do-it-all-over
1•samclemens•25m ago•1 comments

Permission to Live (In Japan)

https://buttondown.com/whatever_jamie/archive/finally-permission-to-live-in-japan/
1•LinguaBrowse•27m ago•1 comments

SpaceX's next Starship launch is Sept. 22, aims to reach orbit for first time

https://www.space.com/space-exploration/launches-spacecraft/spacexs-next-starship-launch-will-lif...
1•gmays•27m ago•0 comments

The End of Verygoodsoftwarenotvirus.ru

https://blog.verygoodsoftwarenotvirus.dev/posts/2026/09/12/the-end-of-verygoodsoftwarenotvirus-do...
2•birdculture•30m ago•0 comments

Asking Authors About Their Own Papers

https://medium.com/@TmlrOrg/asking-authors-about-their-own-papers-3d2e04e5dee0
1•stefanpie•37m ago•0 comments

Next-gen gravitational wave detectors could spot the first black holes

https://phys.org/news/2026-09-gen-gravitational-detectors-black-holes.html
3•MarcoDewey•40m ago•0 comments

US interest rates raised for first time in three years

https://www.bbc.com/news/articles/cw4gmlyvj422o
2•higginsniggins•43m ago•0 comments

My website charged AI agents a penny per page. I watched Claude pay it

https://suganthan.com/blog/x402-pay-per-crawl/
3•gmays•45m ago•1 comments

Show HN: Helping agents break out of their sandboxes in a monitorable way

https://sparrowsystems.co/
1•why_only_15•46m ago•0 comments

Encouraging Deception in Compaction Summaries

https://alignment.openai.com/misalignment-reports/encouraging-deception-in-compaction-summaries/
1•aesthesia•47m ago•0 comments

vLLM: Jev-like mode for the DiffusionGemma model

https://github.com/vllm-project/vllm/pull/57250
1•mmastrac•47m ago•0 comments

DeepSeek's Parent Company

https://www.high-flyer.cn/sociology/
1•E-Reverance•47m ago•0 comments

The Flask Mega-Tutorial, Part I: Hello, World

https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
3•timmytoughtknuc•51m ago•0 comments

Typesafe.ai Jev Open Source Alternative Qwen-2.5-1B-RLCD

https://huggingface.co/spaces/drinkmoonshine/parallel-constrained-decoding
1•nthypes•51m ago•0 comments

AI Debt vs. Treasuries

https://www.ft.com/content/033b21e7-b5d5-4511-ae01-53edaa4e051e
1•toomuchtodo•53m ago•1 comments

"WeWorm": Zero-click worm could have taken over all WeChat accounts

https://www.heise.de/en/news/WeWorm-Zero-click-worm-could-have-taken-over-all-WeChat-accounts-114...
1•Topfi•53m ago•0 comments

Dwarf Star Support for Qwen3.8 Flash Next

https://github.com/antirez/ds4/pull/991
1•macote•53m ago•0 comments

YuE2 – Frontier music generation with editable scores

https://github.com/multimodal-art-projection/YuE
2•modinfo•54m ago•0 comments

Pactora – AI contract review built by a lawyer, not engineers

https://www.pactora.uk/
1•reasonfreefromp•57m ago•0 comments

Automattic says CEO Mullenweg was gone and back inside 33 hours. What happened?

https://thenewstack.io/automattic-mullenweg-boardroom-reversal/
1•_djo_•58m ago•0 comments

OpenSpec – A lightweight and configurable AI spec framework

https://openspec.dev/
27•etoxin•1h ago•7 comments

Calculator for Australian take-home pay, tax and super

https://auspaycalculator.org/
1•seoskillsai•1h ago•0 comments