frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo ago

Comments

zljdanceholic•9mo 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!

Taiwan's orange travel alert for Hong Kong, Macau remains for Lunar New Year

https://www.taiwannews.com.tw/news/6294341
1•maxloh•2m ago•0 comments

Longest non-life prison sentence ever handed down to a single person?

https://ballparkguess.com/?id=60280c22-7c29-4b36-a1fb-ff4a6d052ebc
1•bkls•4m ago•0 comments

Frog 'saunas' could help endangered species beat a deadly fungus (2024)

https://www.science.org/content/article/frog-saunas-could-help-endangered-species-beat-deadly-fungus
1•noleary•5m ago•0 comments

Show HN: Kannada Nudi Editor Web Version

https://nudiweb.com/
1•Codegres•6m ago•0 comments

Innovation Biopics

https://arbesman.substack.com/p/innovation-biopics
1•surprisetalk•9m ago•0 comments

Viewing Forth

https://programmingsimplicity.substack.com/p/viewing-forth
1•surprisetalk•9m ago•0 comments

33rpm – A vinyl screensaver for your Mac

https://33rpm.noonpacific.com/
1•surprisetalk•9m ago•0 comments

The Recent 0-Days in Node.js and React Were Found by an AI

https://winfunc.com/blog/recent-0-days-in-nodejs-and-react-were-found-by-an-ai
1•mufeedvh•12m ago•0 comments

The Coherence Premium

https://www.joanwestenberg.com/the-coherence-premium/
1•zdw•18m ago•0 comments

Zai/GLM-OCR

https://huggingface.co/zai-org/GLM-OCR
2•naze•21m ago•0 comments

xAI engineer fired for leaking secret "Human Emulator" project – Macrohard

https://www.youtube.com/watch?v=0hDMSS1p-UY
3•consumer451•27m ago•0 comments

Predicting Math.random() in Firefox Using Z3 SMT-Solver

https://yurichev.com/blog/xorshift/
2•thunderbong•32m ago•0 comments

AI After Drug Development

https://asteriskmag.substack.com/p/ai-after-drug-development
1•crescit_eundo•33m ago•0 comments

Opus 4.5 designed a political Magic the Gathering set

https://github.com/FeSens/Mirrodin-Manifest
1•fesens•34m ago•1 comments

Why AI Swarms Cannot Build Architecture

https://jsulmont.github.io/swarms-ai/
2•gmays•35m ago•0 comments

Termix: Web-based platform with SSH terminal, tunneling, file editing

https://github.com/Termix-SSH/Termix
1•thunderbong•39m ago•0 comments

Ask HN: Where do all the web devs talk?

2•LinguaBrowse•40m ago•0 comments

Notebook++ targeted in Chinese-linked supply-chain attack

https://www.reuters.com/technology/popular-open-source-coding-application-targeted-chinese-linked...
2•helterskelter•41m ago•1 comments

Ask HN: Why dead code detection in Python is harder than most tools admit

1•duriantaco•41m ago•0 comments

To Build a Fire:Inside Russia's Campaign of Sabotage in Europe

https://www.newyorker.com/magazine/2026/02/09/to-build-a-fire
2•stevenwoo•49m ago•0 comments

Technical Co-Founder – AI Agent Infrastructure

https://www.evercred.com
1•MarkHealth•49m ago•2 comments

GLM-OCR

https://twitter.com/Zai_org/status/2018520052941656385
2•sergiotapia•50m ago•0 comments

OpenClaw – Hands for a Brain That Doesn't yet Exist

https://bengoertzel.substack.com/p/openclaw-amazing-hands-for-a-brain
2•laurex•50m ago•0 comments

Rust in the NetBSD Kernel, and other odd decisions

https://bentsukun.ch/posts/netbsd-rust-kernel/
1•jaypatelani•55m ago•0 comments

Show HN: LevelUpPro – Test-drive tech careers before committing

https://www.leveluppro.in
1•vijayanand_v•57m ago•0 comments

The Physical World Doesn't Want Your "Success Dataset"

https://substack.com/home/post/p-186695082
1•FuseGov•57m ago•1 comments

Salazar vs. Paramount Global (3:22-CV-00756) [pdf]

https://dn710205.ca.archive.org/0/items/gov.uscourts.tnmd.92043/gov.uscourts.tnmd.92043.1.0.pdf
1•1vuio0pswjnm7•58m ago•0 comments

Clawsocial.io – a crustacean themed network 4000 meters deep

https://clawsocial.io/#/
1•hnaln•58m ago•0 comments

Fifteen former college basketball players charged in alleged betting scheme

https://www.theguardian.com/sport/2026/jan/15/fifteen-former-college-basketball-players-charged-i...
2•PaulHoule•1h ago•0 comments

Show HN: Open-source semantic search over your local notes via CLI

https://github.com/chenxin-yan/nia-vault
1•jellyotsiro•1h ago•0 comments