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

Comments

zljdanceholic•7mo 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!

Early stage VC firm FoodLabs raises third fund of €105M

https://sifted.eu/articles/food-labs-raises-third-fund
1•doener•3m ago•0 comments

Show HN: Mapibara – A Map for Local Events (markets, concerts, hiking...)

https://mapibara.com
1•csantini•4m ago•1 comments

Shield protecting Chernobyl nuclear power plant no longer blocks radiation

https://www.euronews.com/2025/12/08/radiation-shield-protecting-chernobyl-nuclear-power-plant-no-...
1•mohi-kalantari•6m ago•0 comments

Roman urbanism was bad for health, new study confirms

https://phys.org/news/2025-12-roman-urbanism-bad-health.html
1•pseudolus•7m ago•0 comments

US forces take over sanctioned, stateless VLCC off Venezuela

https://www.lloydslist.com/LL1155836/Weve-just-seized-a-tanker-US-forces-take-over-sanctioned-sta...
2•monerozcash•7m ago•0 comments

$1 That Doubles Everyday

https://twitter.com/magnushambleton/status/1995459412463403045
1•barry-cotter•8m ago•0 comments

Prompt injection is not SQL injection (it may be worse)

https://www.ncsc.gov.uk/blog-post/prompt-injection-is-not-sql-injection
1•giuliomagnifico•8m ago•0 comments

Can I get feedback on this product

https://mu.xyz
1•asim•9m ago•1 comments

I got 50 high-profile angel investors to join our seed round

https://www.mentava.com/blog/how-i-got-50-high-profile-angel-investors-to-join-our-seed-round
1•barry-cotter•10m ago•0 comments

If You Quit Social Media, Will You Read More Books?

https://www.newyorker.com/news/fault-lines/if-you-quit-social-media-will-you-read-more-books
2•pseudolus•11m ago•1 comments

Show HN: Titan – JavaScript-first framework that compiles into a Rust server

https://www.npmjs.com/package/@ezetgalaxy/titan
1•soham_byte•12m ago•0 comments

Why the resale market is expanding fashion's carbon footprint

https://news.yale.edu/2025/12/08/second-thoughts-secondhand-why-resale-market-expanding-fashions-...
1•JeanKage•14m ago•0 comments

Three in 10 US teens use AI chatbots every day, but safety concerns are growing

https://techcrunch.com/2025/12/09/three-in-ten-u-s-teens-use-ai-chatbots-every-day-but-safety-con...
2•JeanKage•15m ago•0 comments

prev.js: Blog/PKM vanilla SSG using SQLite and Python. Compiles in 5s on Vercel.

https://github.com/danielfalbo/prev
1•danielfalbo•20m ago•1 comments

Would you like your Iceberg sir, stream or batch ordered

https://jack-vanlightly.com/blog/2025/11/5/how-would-you-like-your-iceberg-sir-stream-or-batch-or...
1•teleforce•22m ago•0 comments

Ask HN: Does professional coding make you forget the "magic" feeling?

1•Gooblebrai•22m ago•0 comments

Ask HN: Websites of people making cool projects

1•mdoliwa•22m ago•0 comments

Show HN: Instant branch management for AI-native development

https://github.com/ekarya0x/peek
1•ekarya0x•23m ago•0 comments

Show HN: TreatyHopper – Pay Less Taxes

https://treatyhopper.com
2•realberkeaslan•26m ago•0 comments

Ebooks vs. Paper books: The final showdown

https://jonathanpincas.com/p/ebooks-vs-paper-books-the-final-showdown
1•poleprediction•27m ago•1 comments

OpenAI report reveals 6x productivity gap btwn AI power users and everyone else

https://venturebeat.com/ai/openai-report-reveals-a-6x-productivity-gap-between-ai-power-users-and
2•tompark•32m ago•0 comments

Deequ - Unit Tests for Data

https://github.com/awslabs/deequ
1•saikatsg•34m ago•0 comments

What Designers Should Build

https://fantasy.co/latest/design-after-the-page
2•kaizenb•35m ago•0 comments

The GitLab Handbook

https://handbook.gitlab.com/handbook/
1•saikatsg•36m ago•0 comments

Ask HN: How are you handling LLM API costs in production?

1•itaydressler•37m ago•0 comments

Shadow Enigma

https://shadowenigma.com/
2•austinallegro•39m ago•0 comments

Hundreds in Japan get car driving licences suspended for drink cycling

https://www.bbc.com/news/articles/cy470w981n7o
2•tagawa•43m ago•1 comments

JSON to C# Class Converter

https://code-b.dev/json-csharpclass
1•Abhishek-k•45m ago•0 comments

Proton now has an end-to-end encrypted spreadsheet app

https://www.theverge.com/news/838127/proton-sheets-spreadsheet-app-privacy
4•austinallegro•48m ago•0 comments

How to Turn "Invisible Work" into a Salary Raise (Ft. AI Prompts)

https://insightlog.substack.com/p/how-to-turn-invisible-work-into-a
1•chaewonlog•48m ago•1 comments