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!

Nuclear Design Bureau – A Game Where You Design Nuclear Weapons

https://www.youtube.com/watch?v=WXQ3xQi20uM
1•LichenStone•24s ago•1 comments

Phony visa application and passport sites face U.S. government crackdown

https://this.weekinsecurity.com/phony-visa-application-and-passport-sites-face-u-s-government-cra...
1•moooooky•1m ago•1 comments

GeoWorks, Microsoft Windows' Upstart '90s Competitor

https://www.atlasobscura.com/articles/the-history-of-geoworks-microsoft-windows-upstart-90s-compe...
1•andsoitis•3m ago•0 comments

Infinix – Abandoned Local AI Agent Base Seeking Developers

https://github.com/Moonyeep/Infinix
1•Moonyeep•3m ago•0 comments

Show HN: Tumblr Likes Calendar: Browse Your Likes by Date

https://www.hakuren-dev.blog/
1•Hakurendev•3m ago•0 comments

AI tools I use (avg software developer)

https://fredrikmeyer.net/2026/11/07/how-i-use-ai-2026.html
1•FredrikMeyer•4m ago•1 comments

1325 Dutch hotels join mass claim lawsuit against Booking.com

https://nltimes.nl/2026/11/07/1325-dutch-hotels-join-mass-claim-lawsuit-bookingcom
1•Betelbuddy•4m ago•0 comments

Report alleges China linked to at least 18 overseas police stations in Canada

https://www.ctvnews.ca/canada/article/report-alleges-china-linked-to-at-least-18-overseas-police-...
3•Teever•4m ago•0 comments

China drafts lifetime ID codes for every robot it makes, not just humanoids

https://asia-tech-news.ghost.io/china-drafts-lifetime-id-codes-for-every-robot-it-makes-not-just-...
2•ilamont•6m ago•0 comments

Show HN: A framework for prototyping web games in 2D and 3D

https://github.com/kadhirvelm/resync-games-framework
1•kadhirvelm•6m ago•1 comments

You are protesting the wrong technology, people

https://hollisrobbinsanecdotal.substack.com/p/you-are-protesting-the-wrong-technology
2•HR01•7m ago•0 comments

Show HN: UK: Skip Royal Mail QR Code Queues with the Prince of Post

https://princeofpost.com
1•egamirorrim•8m ago•0 comments

Structify: AI apps built on a manufacturer's ERP data

https://www.structify.ai
1•alexreichenbach•9m ago•0 comments

Show HN: Bodylang – ask anything about your body and watch it happen in 3D

https://bodylang.vercel.app/
1•mantegna•10m ago•0 comments

Show HN: Digdeep.fyi – A DNS Debug Tool for DNSSEC, Mail, HTTP

https://digdeep.fyi/
2•oipart•12m ago•0 comments

The ESP32 S31 Runs Linux

https://www.i-programmer.info/news/91-hardware/19197-the-esp32-s31-runs-linux.html
2•teleforce•14m ago•0 comments

Straitjacket: A TypeScript template with Guardrails for your agents

https://github.com/balajeerc/straitjacket
1•hannofcart•18m ago•0 comments

Dave Winer's prototype for the web of Markdown

https://demo.bonbonweb.org/?url=https%3A%2F%2Fdave.writersweb.org%2Fscripting%2F2026%2F11%2F06.md
1•solomania9•18m ago•0 comments

FM-1: Things Are Happening with This Little Synth [video]

https://www.youtube.com/watch?v=hmYPh5CYtWw
1•alin23•19m ago•0 comments

Isn't It Time for AVIF Everywhere?

https://www.michaelponders.com/2026/11/isnt-it-time-for-avif-everywhere.html
3•speckx•24m ago•0 comments

Show HN: I mapped all known crypto scams

https://dontgetrekt.today/
1•marciob•24m ago•2 comments

Choosing One of My Compiler Books [pdf]

https://t3x.org/files/whichbook.pdf
1•AlexeyBrin•26m ago•0 comments

Five Memorable Books About Programming

https://prog21.dadgum.com/19.html
2•andsoitis•27m ago•0 comments

NASA's Juno Captured a Green Lightning Flash Inside a Storm on Jupiter

https://www.space.com/jupiter-lightning-north-pole-juno-photo
1•Adam-Hincu•27m ago•0 comments

Show HN: Coldframe, a honeypot that poses as a supermarket fridge controller

https://github.com/hedgerow-dev/coldframe
17•hedgerow-dev•30m ago•1 comments

Things That Turbo Pascal Is Smaller Than (2011)

https://prog21.dadgum.com/116.html
1•theanonymousone•30m ago•0 comments

Ripple – The CI gate that knows the blast radius

https://www.npmjs.com/package/@alimaandev/ripple
1•alimaandev111•32m ago•0 comments

Nice DeepSWE score! Does it survive a lowercase filename?

https://twitter.com/loresjpg/status/2118880329490637049
1•porridgeraisin•38m ago•0 comments

Hacking the meta ray-ban smartglasses

https://p0pcycle.com/2026/11/06/hacking-the-meta-ray-ban-smartglasses/
3•moooooky•39m ago•0 comments

MaxxBench – "Nice DeepSWE score. But is it true?"

https://maxxbench.unlap.ai/research/why-maxxbench/
2•antiuniverse•39m ago•0 comments