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!

Learn how to make mechanical keyboard PCBs

https://wiki.ai03.com/books/pcb-design
1•tripdout•3m ago•0 comments

Show HN: Mojic – A C code obfuscator and encryption tool for source protection

https://amit.is-a.dev/mojicDocs
1•notamitgamer•6m ago•0 comments

Show HN: Githrun – Run Python Scripts from GitHub URLs and VS Code Extension

https://amit.is-a.dev/githrun
1•notamitgamer•7m ago•0 comments

Show HN: Ship packages without exposing your real address

https://shipto.me
1•thesecretceo•9m ago•1 comments

Colocation Evaluation Framework for AI Infrastructure (2026)

https://syaala.com/blog/colocation-vs-modular-vs-traditional-2026
1•jaynamburi•11m ago•0 comments

Show HN: Dwrite.me A minimalist writing space that blocks copypaste to fight AI

https://dwrite.me
1•ketutdana•14m ago•0 comments

Amazon Basics vs. SanDisk: I Cut Them Open [video]

https://www.youtube.com/watch?v=Wir1jBqvQEs
1•iamflimflam1•18m ago•0 comments

SOUL.md

https://soul.md/
2•tosh•22m ago•0 comments

On Culmination and Not yet Turning Thirty

https://briankitano.com/essays/on-culmination/
1•bkitano19•23m ago•0 comments

Show HN: Monitui – drag 'n drop monitor config for hyprland

https://github.com/nathaniel-fargo/monitui
1•theParadox42•25m ago•0 comments

Designing MCP tool schemas that LLMs understand

1•runai•28m ago•0 comments

What the mole rat can teach us about aging

https://worksinprogress.co/issue/the-perks-of-being-a-mole-rat/
1•MintyPyro•29m ago•0 comments

Why do rich people live longer?

https://www.empirical.health/blog/rich-people-live-longer-hims-superbowl/
2•brandonb•30m ago•1 comments

Show HN: Mission Plus – Clear Titles and App Logos in macOS Mission Control

https://trystartup.com
1•boneyao•33m ago•0 comments

The craft of screen graphics and movie user interfaces (2014)

https://www.pushing-pixels.org/2014/04/04/the-craft-of-screen-graphics-and-movie-user-interfaces-...
1•isnotchicago•38m ago•0 comments

TSMC to make advanced AI semiconductors in Japan

https://apnews.com/article/semiconductors-tsmc-japan-taiwan-ai-11256f2bfde73ca23d08331ad138d6d5
22•dev_tty01•40m ago•1 comments

Show HN: Physical swipe typing for your computer

https://github.com/ZimengXiong/swipeType
2•zimengx•46m ago•0 comments

Show HN: ShapeGuard – Shape Contracts for NumPy and Jax

1•jayendra13•48m ago•0 comments

Claude's C Compiler vs. GCC

https://harshanu.space/en/tech/ccc-vs-gcc/
2•unchar1•48m ago•0 comments

Quilt

https://www.quilt.sh/
1•handfuloflight•48m ago•0 comments

Show HN: Agent VCR – Record, replay, and diff MCP server interactions

https://github.com/Jarvis2021/agent-vcr
1•pramodvoola•51m ago•0 comments

Show HN: I Let AI Agents Train Their Own Models. Here's What Happened

https://hamzamostafa.com/blog/agents-training-their-own-models
1•Hamza-Mos•52m ago•0 comments

SecretSpec 0.7: Declarative Secret Generation – devenv

https://devenv.sh/blog/2026/02/09/secretspec-07-declarative-secret-generation/
2•todsacerdoti•56m ago•0 comments

Show HN: Vrhi: AI Slop DX9/DX11-Style Immediate API on Vulkan

https://github.com/hypernewbie/vrhi
1•hypernewbie•59m ago•0 comments

Ring's Search Party helps reunite more than one lost dog a day

https://www.aboutamazon.com/news/devices/ring-search-party-for-dogs-united-states-missing-pets
1•dsr12•1h ago•0 comments

Americans want heat pumps – but high electricity prices may get in the way

https://theconversation.com/americans-want-heat-pumps-but-high-electricity-prices-may-get-in-the-...
7•PaulHoule•1h ago•5 comments

Caffeine content for coffee, tea, soda and more

https://www.mayoclinic.org/healthy-lifestyle/nutrition-and-healthy-eating/in-depth/caffeine/art-2...
4•mooreds•1h ago•0 comments

Researchers find brain mechanism behind 'flashes of intuition'

https://medicalxpress.com/news/2026-02-brain-mechanism-intuition.html
2•Gaishan•1h ago•0 comments

We Improved Rails Response Times by 87% – Fast Retro Blog

https://fastretro.app/blog/how-we-improved-rails-response-times-by-87-percent
1•doppp•1h ago•0 comments

Paris cybercrime unit searches X office; Musk summoned

https://www.reuters.com/world/europe/paris-prosecutors-cybercrime-unit-searches-french-office-mus...
4•dev_tty01•1h ago•0 comments