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!

How defensible is Gmail's position today?

1•p_zuckerman•3m ago•0 comments

What "Premium Tarot Readers" Means (and Why the Term Is Often Misused)

https://medium.com/@enrique_15267/what-premium-tarot-readers-actually-means-and-why-the-term-is-o...
1•astroideal•3m ago•1 comments

Most statin side-effects not caused by the drugs, study finds

https://www.theguardian.com/society/2026/feb/05/majority-statins-side-effects-not-caused-by-drug
2•6LLvveMx2koXfwn•4m ago•0 comments

Show HN: Emotion as cognitive infrastructure in AI, not just output

https://twitter.com/NexAIOS/status/2019352896840851834
2•NexAIOS•5m ago•0 comments

A/B test yourself vs. code agent

https://arturkesik.com/blog/ab-test-you-vs-llm/
1•arturkesik•5m ago•0 comments

When there is No Internet, there is Kiwix

https://kiwix.org/en/
1•doener•6m ago•0 comments

The world’s first sodium-ion battery EV is here and it could be a game changer

https://electrek.co/2026/02/05/first-sodium-ion-battery-ev-debuts-game-changer/
1•breve•8m ago•0 comments

The Wendelstein 7-X fusion stellarator proves its efficiency

https://www.ipp.mpg.de/5125328/05_21
3•fanf2•13m ago•0 comments

Show HN: Axiom – C++ tensor library with NumPys API, optimized for Apple Silicon

https://github.com/Frikallo/axiom
1•noahkay13•14m ago•0 comments

Agentic Memory Bottlenecks

https://jcarlosroldan.com/post/370
4•manbitesdog•16m ago•1 comments

Show HN: ThumbNew – A fast AI thumbnail generator for creators

https://thumbnew.netlify.app
1•Timexo•16m ago•1 comments

China's space aircraft carrier: superweapon or propaganda?

https://www.dw.com/en/china-taiwan-space-aircraft-luanniao-carrier-weapon-military-technology/a-7...
1•giuliomagnifico•17m ago•0 comments

No, Really, Bash Is Not Enough: Why Large-Scale CI Needs an Orchestrator

https://iankduncan.com/engineering/2026-02-06-bash-is-not-enough
1•iand675•18m ago•0 comments

Turn mental noise into clear, actionable next steps

https://www.heyecho.app/
1•samxkoh•26m ago•1 comments

Cop Transforms into Frog, According to AI-Generated Police Report

https://www.forbes.com/sites/larsdaniel/2026/01/04/cop-transforms-into-frog-according-to-ai-gener...
1•shakna•28m ago•0 comments

Show HN: Purple Word – A new word puzzle game

https://purpleword.com
6•gentlyenvy•28m ago•0 comments

Lessons from securing AI systems at runtime (agents, MCPs, LLMs)

1•joyjeetdan•29m ago•1 comments

Show HN: Cloud mining app UI (Android and Windows)

https://smaralddm.github.io/extremeapp/
1•ciacarda•30m ago•0 comments

Show HN: Spip – Open-Source Self-Hosted TCP Network Sensor

https://github.com/StefanGrimminck/Spip-Go
2•Robbedoes•30m ago•2 comments

Unlock real power of Google trends

https://daily-trending.org
1•azamsayeedit•32m ago•1 comments

Show HN: I built a puzzle game for couples to connect

https://lovepuzzle.com/
1•lmq10•32m ago•0 comments

Crotch enhancements: The latest controversy at the Winter Olympics

https://news.sky.com/story/crotch-enhancements-the-latest-controversy-at-the-winter-olympics-1350...
1•austinallegro•33m ago•0 comments

A handful of wholesomely bad ads for 90s SPARC clones

https://buttondown.com/suchbadtechads/archive/integrix/
1•rfarley04•34m ago•0 comments

It's not finance, it's your pensions

https://theloop.ecpr.eu/its-not-finance-its-your-pensions/
1•kome•38m ago•0 comments

Show HN: Vfv – Ultra-lightweight terminal file viewer for vibe coding

https://github.com/noumi0k/vfv
1•noumi0k•40m ago•1 comments

Vibe Migrating over 1000 Pages and Losing 80% of Our Traffic

https://www.hopsworks.ai/post/vibe-migrating-1k-pages-and-losing-80-percent-of-our-traffic
2•LexSiga•41m ago•0 comments

FreeBSD Audio Diagnostics and Optimization

https://m4c.pl/blog/freebsd-audio-diagnostics-and-optimization/
3•m4c-pl•41m ago•1 comments

Show HN: LibTTAK- Explicit lifetime-as-data for C systems

https://github.com/gg582/libttak
1•gg582•42m ago•0 comments

President John F. Kennedy's national address on the extraterrestrial presence

https://www.youtube.com/watch?v=gWig9s2GylA
1•keepamovin•43m ago•0 comments

AMD OpenSIL and Open-Source Firmware Efforts for Confidential Compute

https://www.phoronix.com/news/3mdeb-FOSDEM-2026-Firmware
2•grigio•46m ago•0 comments