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

Comments

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

British lawmakers are in a jam over changes to the definition of marmalade

https://apnews.com/article/marmalade-citrus-definition-uk-eu-paddington-079c72d9051cc03c75cad3f35...
1•HieronymusBosch•1m ago•0 comments

FB >> HTTPS://Www.facebook.com/NaoriSymbiotics.Get/

https://www.facebook.com/NaoriSymbiotics.Get
1•nerrrashu•1m ago•0 comments

14-Year Journey Away from ORMs – PGenie, SQL-First Postgres Code Generator

https://nikita-volkov.github.io/pgenie-in-production-part-1/
1•mpweiher•3m ago•0 comments

On Mar 28, 2026 >50% of users access Google over IPv6 for the first time

https://www.google.com/intl/en/ipv6/statistics.html
1•NavinF•10m ago•1 comments

I'm not feeling the async pressure

https://lucumr.pocoo.org/2020/1/1/async-pressure/
1•sixhobbits•11m ago•0 comments

Show HN: BuilderPulse – Daily intelligence from 10 sources for indie hackers

https://github.com/BuilderPulse/BuilderPulse
1•blacktechnology•12m ago•0 comments

Managed, Real-Time OLAP Infrastructure

https://modolap.com/
1•ronfriedhaber•14m ago•0 comments

Pfsync Packet Header Field Renamed to Avoid AI Bug Report Noise

https://undeadly.org/cgi?action=article;sid=20260413055845
1•somat•19m ago•0 comments

The IPv6 Mess (2002)

https://cr.yp.to/djbdns/ipv6mess.html
1•tgma•21m ago•0 comments

Show HN: Using Telegram as an indexed system for geo-notes

1•migelo•22m ago•0 comments

Ask HN: Who is your favourite Entrepreneur/Visionary?

2•wasimsk•22m ago•1 comments

European civil servants are being forced off WhatsApp

https://www.politico.eu/article/european-civil-servants-new-messaging-services/
2•ZacnyLos•25m ago•0 comments

Online age checks are coming in Europe

https://www.politico.eu/article/online-age-checks-are-coming-europe-children-social-media/
1•ZacnyLos•27m ago•0 comments

Can you steal $10k from a locked iPhone? [video]

https://www.youtube.com/watch?v=PPJ6NJkmDAo
1•ProfDreamer•29m ago•0 comments

GraphQL vs. REST: 18 Claims Fact-Checked with Primary Sources

https://wundergraph.com/blog/fact-checking-graphql-vs-rest
2•jensneuse•31m ago•1 comments

Has the Era of the Mega-Layoff Arrived?

https://www.wsj.com/business/has-the-era-of-the-mega-layoff-arrived-928f061d
1•erehweb•31m ago•0 comments

A premium infrastructure layer for hotels and event booking

https://cooveb-organizers-waitlist-gules.vercel.app/
1•sshinde•33m ago•0 comments

CERN Joins the OpenSearch Software Foundation as an Associate Member

https://opensearch.org/blog/cern-joins-the-opensearch-software-foundation/
1•Lunar5227•41m ago•0 comments

Show HN: Robust alternative to OpenClaw

https://github.com/opentalon/opentalon
3•opak•44m ago•1 comments

More Communities Like This?

1•ayorke•45m ago•0 comments

Show HN: Job Scraper for LinkedIn

https://chromewebstore.google.com/detail/job-scraper-for-linkedin/kkafipickfibnamoijjgamklecmmbbmf
1•qwikhost•46m ago•0 comments

Show HN: Agent Armor, a Rust runtime that enforces policies on AI agent actions

https://github.com/EdoardoBambini/Agent-Armor-Iaga
4•edoardobambini-•49m ago•2 comments

Coming Soon: Things That Matter in AI

https://www.technologyreview.com/2026/04/14/1135298/coming-soon-10-things-that-matter-in-ai-right...
2•joozio•50m ago•0 comments

AI Tremor-Print: Biometric Identification System

https://github.com/peterretief/biometric
1•peter_retief•50m ago•1 comments

Allbirds stock sees a wild surge of 582% on pivot from sneakers to AI

https://www.businessinsider.com/allbirds-stock-price-ai-newbird-gpus-compute-gpuaas-bird-shoes-20...
1•outlore•50m ago•0 comments

RIP Pull Requests (2005-2026)

https://www.latent.space/p/ainews-rip-pull-requests-2005-2026
1•swyx•52m ago•0 comments

JIT Compilers and Cache Coherency

https://joelsiks.com/posts/jit-compilers-and-cache-coherency/
3•joelsiks•59m ago•0 comments

AI Eyebrow Filter: Try Eyebrow Editor Online – AILab Tools

https://www.ailabtools.com/eyebrow-filter
1•minimk•1h ago•0 comments

EU age verification app ready as Europe moves to curb kids' social media access

https://www.reuters.com/world/eu-age-verification-app-ready-europe-moves-curb-childrens-social-me...
2•taubek•1h ago•0 comments

A Black-Box Contract Engine for Agentic Software Development

https://github.com/elmacnifico/dojo
2•feedyourhead•1h ago•0 comments