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!

Project Gutenberg stuck offline after vandal turns book pages into link farm

https://www.theregister.com/security/2026/12/04/project-gutenberg-stuck-offline-after-vandal-turn...
1•jruohonen•1m ago•0 comments

Designspace Theory

https://superpolator.com/designspace.html
2•alexharri•1m ago•0 comments

Cycling Art, Energy, and Locomotion (1889)

https://publicdomainreview.org/collection/cycling-art/
1•CharlesW•4m ago•0 comments

Paxos Paper, Illustrated Edition

https://kikkupico.github.io/paxos-illustrated/
1•kikkupico•8m ago•0 comments

Swapping a container image's runtime without a rebuild

https://alfonsocampodonico.com/posts/swapping-the-runtime-without-a-rebuild
2•0x23alfonso•9m ago•0 comments

Metraia: Staff scheduling for every kind of operation

https://metraia.com/
1•llm_nerd•9m ago•1 comments

AI that can alter what people say during live broadcasts

https://www.computerworld.com/article/4244752/microsoft-files-patent-for-ai-that-can-alter-what-p...
1•mrkn1•10m ago•0 comments

Cracking the cryptogram in a Zürich law firm's window

https://www.dogatekin.com/blog/zurich-cryptogram/
3•thetrustworthy•12m ago•0 comments

Guidance Request for My New Startup

1•shannudecuise•13m ago•0 comments

CS Fundamentals are still important

https://faidi.tech/posts/fundamentals-change-how-you-learn/
1•birdculture•14m ago•0 comments

You Don't Have to Replace Your P-256 Certificates This Weekend

https://www.agwa.name/blog/post/you_dont_have_to_replace_your_p-256_certificates_this_weekend
1•agwa•14m ago•0 comments

Show HN: UnboundedFigures – A collaborative workspace for mathematical research

https://unboundedfigures.com/
1•tsamuels•14m ago•1 comments

Claude and I rewired a 20 year old amp

https://scosman.net/blog/claude_and_i_rewired_a_20_year_old_amp
1•scosman•15m ago•0 comments

The Two Frontiers of Intelligence

https://twitter.com/satyanadella/status/2129601701812592963
1•AaronAPU•16m ago•0 comments

Raising the Bar for Windows Quality: Built with Your Feedback

https://ignite.microsoft.com/en-US/sessions/1787856633494001EZjH-1791588070182001CQou
1•ksec•16m ago•0 comments

Ancient islanders ferried wallabies across the open sea

https://www.science.org/content/article/ancient-islanders-ferried-wallabies-across-open-sea
1•xqcgrek2•16m ago•0 comments

Economists study AI's effect on labour. Now it is coming for their jobs

https://www.ft.com/content/3466afbc-a801-4513-8e3a-bf05690cd7da
1•mooreds•17m ago•0 comments

Rbanffy/vt330-font: A TTF version of the VT-330 ROM fonts

https://github.com/rbanffy/vt330-font
2•rbanffy•20m ago•0 comments

Meta-Gaming with Bandido and Jai

https://patricksanan.org/bandido.html
2•psanan•21m ago•1 comments

Legacy GPU LLM Notes – Tesla V100 (Sm_70), Pascal GTX 1070, RTX 4070

https://github.com/christopherrobertbrooks-tech/legacy-gpu-llm-notes
1•peter_d_sherman•22m ago•0 comments

Title: Show HN: Werkbank – 57 tool-using tasks to compare self-hosted LLM setups

https://github.com/aisyndicate-ch/victors-werkbank
2•Schampuswerner•23m ago•0 comments

Pleione: AI Playground with Community

https://getpleione.com/en
1•octemberr•23m ago•0 comments

Birds, Plants and Ants

https://blue-continuum.com/birds-plants-and-ants
1•dnetesn•25m ago•0 comments

Ask HN: Worth switching back from Cursor to Antigravity

2•lecodexai•25m ago•0 comments

One Postgres branch after another

https://boringsql.com/posts/how-postgresql-branching/
2•waximabbax•26m ago•0 comments

Show HN: A static Unix-like website that runs Claude Code, Codex and Git

https://kuber.studio/#/claude
1•kuberwastaken•26m ago•0 comments

Show HN: MailWebhook lets you receive email in your app via a webhook

https://www.mailwebhook.com/email-to-webhook
2•pavelsg•26m ago•0 comments

Qw4 – CPU inference engine for Qwen4-35B-A3B in C11 and hand-written assembly

https://github.com/Eric-Lautanen/qw4
1•peter_d_sherman•27m ago•0 comments

The ocean's newest surveillance network has feathers

https://www.anthropocenemagazine.org/2026/11/the-oceans-newest-surveillance-network-has-feathers/
1•speckx•27m ago•0 comments

Chuck O'Rear, Windows XP Bliss photographer, dead at 84

https://www.sfchronicle.com/bayarea/article/charles-chuck-orear-windows-22566791.php
2•classichasclass•28m ago•0 comments