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

Comments

zljdanceholic•8mo 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 thought Grammarly was essential. It wasn't

https://www.makeuseof.com/stopped-paying-for-grammarly-once-found-free-open-source-alternative/
1•chilipepperhott•8m ago•0 comments

I have settled on XChaCha20+Blake3 as the AE suite of choice for my projects

https://mccarty.io/chacha20-blake3/
1•enz•13m ago•0 comments

For profit university offers scholarship to RuneScape skill cape recipients

https://usv.edu/max-achievement-scholarship
1•rickcarlino•13m ago•0 comments

Show HN: Neurop Forge: Live Demo /Real AI Action

https://neurop-forge.onrender.com/demo/google
1•LBWasserman•13m ago•0 comments

"Freedom of Speech" Exists – But "Freedom of Reach" Is a Black Box

1•Ayanonymous•14m ago•0 comments

LimX COSA – Agentic OS for Humanoid Robots (YouTube)

https://www.youtube.com/watch?v=0hIqs3TBb5g
2•_medihack_•15m ago•0 comments

Do Cloudflare's Lava Lamps Do Anything?

https://notnotp.com/notes/do-cloudflares-lava-lamps-actually-do-anything/
2•enz•15m ago•1 comments

Emergent topological semimetal from quantum criticality

https://www.nature.com/articles/s41567-025-03135-w
1•bryanrasmussen•16m ago•0 comments

Eddy Goldfarb – The Man Who Invented More Than 800 Iconic Toys [video]

https://www.youtube.com/watch?v=9sKKan_Q9VU
1•embedding-shape•19m ago•0 comments

US moves to strip sovereign wealth investors of US tax perks

https://www.ft.com/content/de1968ab-3db3-4aa6-8489-35e7cdb81be7
3•alephnerd•21m ago•3 comments

Fix the two-party system with proportional representation

https://agrarianparty.org/platform/peoples-act
3•tedkimble•21m ago•1 comments

Before I forget how I got here

https://richhaase.com/blog/2026-01-14-before-i-forget-how-i-got-here/
1•richhhh•23m ago•1 comments

FAA warns on Central, South American flights over potential military actions

https://www.reuters.com/world/americas/faa-issues-warnings-airlines-central-south-american-flight...
5•toomuchtodo•26m ago•2 comments

AT&T collapse:A single typo that shut down the US long-distance network

https://en.wikipedia.org/wiki/1971_AT%26T_network_switching_system_collapse
2•xthe•28m ago•1 comments

Debian gnome team plans to kill GTK2

https://ludditus.com/2026/01/15/debian-has-its-retards-too-they-plan-to-kill-gtk2/
2•jandeboevrie•30m ago•0 comments

Install.md: A standard for LLM-executable installation

https://www.mintlify.com/blog/install-md-standard-for-llm-executable-installation
5•npmipg•33m ago•1 comments

Show HN: ExprTk High-Performance C++ Math Expression Parser Evaluation Engine

https://www.partow.net/programming/exprtk/index.html
3•exprtk•34m ago•0 comments

What happens to cities when the jobs leave?

https://deadneurons.substack.com/p/what-happens-to-cities-when-the-jobs
1•nr378•34m ago•0 comments

Drawbot: Let's hack something cute (2025)

https://www.atredis.com/blog/2025/9/30/drawbot-lets-hack-something-cute
11•notmine1337•35m ago•4 comments

Show HN: Polymcp Implements Ollama for Local and Cloud Model Execution

2•justvugg•36m ago•0 comments

Custom firmware for x4 eInk device

https://github.com/crosspoint-reader/crosspoint-reader
1•xteink•36m ago•0 comments

Radithor

https://en.wikipedia.org/wiki/Radithor
2•radeeyate•39m ago•0 comments

Show HN: Paintracker.ca, a PWA pain tracker that keeps data on device by default

https://www.paintracker.ca/
1•crisiscore_sys•40m ago•1 comments

Iran, 200 hours of a nationwide internet and telecommunications blackout

https://www.dw.com/en/iran-protests-internet-communication-blackout-social-media/a-75487555
3•us321•41m ago•0 comments

OpenAI to test ads in ChatGPT as it burns through billions

https://arstechnica.com/information-technology/2026/01/openai-to-test-ads-in-chatgpt-as-it-burns-...
4•coloneltcb•44m ago•1 comments

Agam Space – Self-hosted, zero-knowledge, end-to-end encrypted file storage

https://github.com/agam-space/agam-space
1•rameshl•44m ago•1 comments

Judge orders Anna's Archive to delete scraped data; no one thinks it will comply

https://arstechnica.com/tech-policy/2026/01/judge-orders-annas-archive-to-delete-scraped-data-no-...
2•vo2maxer•45m ago•0 comments

Adobe Photoshop 2025 Installer Now Working on Linux with Patched Wine

https://www.phoronix.com/news/Adobe-Photoshop-2025-Wine-Patch
2•speckx•46m ago•1 comments

Casey Muratori breaks down the AWS outage

https://www.youtube.com/watch?v=gstn9qcNdlc
1•marc_omorain•50m ago•0 comments

Down with the BRT, long live the Bus

https://marcochitti.substack.com/p/down-with-the-brt-long-live-the-bus
1•decimalenough•52m ago•0 comments