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!

Self-hosted Directus 12 requires a license key to lift caps

https://github.com/directus/directus/releases/tag/v12.0.0
1•jclaveau•17s ago•0 comments

Print Design Tips for Engineers

https://papermill.io/blog/print-design-tips-for-engineers
1•davidpapermill•38s ago•0 comments

Agents are under-elicited: A case study in optimization tasks

https://fulcrum.inc/2026/06/12/agents-are-under-elicited.html
1•etherio•59s ago•0 comments

Ask HN: What Are the Trade-Offs of Working Fully Remotely?

1•karakoram•1m ago•0 comments

Vokal – Where AI agent work goes after the chat ends

https://vokal.team
1•chandrakiran_gr•2m ago•0 comments

SweetTreat – See the Culver's flavor-of-day at all locations along your route

https://sweettreat.fly.dev
1•whb101•4m ago•0 comments

AGI Happened on January 16, 2026

https://theshamblog.com/agi-happened-on-january-16-2026/
2•scottshambaugh•4m ago•0 comments

Farm Bankruptcies Hit Six-Year High in April

https://farmpolicynews.illinois.edu/2026/05/farm-bankruptcies-hit-six-year-high-in-april/
1•toomuchtodo•6m ago•0 comments

SanDisk's new PlayStation 5 SSD will cost more than three PS5 Pros

https://www.theverge.com/tech/951527/sandisk-optimus-gx-pro-850p-nvme-ssd-8tb-ps5-playstation-sony
1•ilreb•6m ago•0 comments

DeepSeek v4 Pro 1.6T model post-trained by Huawei on 1000 Ascend 910C chips

https://www.tomshardware.com/tech-industry/artificial-intelligence/huawei-led-team-claims-it-post...
3•theanonymousone•7m ago•0 comments

AI Use by the Government

https://www.schneier.com/blog/archives/2026/06/ai-use-by-the-us-government.html
2•MattSayar•7m ago•0 comments

The one where I go head-to-head against A.I

https://yelluwcomedy.substack.com/p/the-one-where-i-go-head-to-head-against
2•pryelluw•7m ago•0 comments

How to use recruiters in your job search

https://taylordesseyn.substack.com/p/how-to-actually-use-recruiters-in
2•mooreds•10m ago•0 comments

Where Thinking in Engineering Happens Now

https://www.vanta.com/resources/where-thinking-in-engineering-happens-now
3•hamelj•11m ago•0 comments

Standard DB – The hub for AI builders

https://www.standarddb.com/
3•supercobra•11m ago•0 comments

Show HN: An 8-bit live gamecast for baseball

https://ribbie.tv/watch
14•brownrout•12m ago•2 comments

A protocol for knowledge between agents who do not trust each other

https://june.kim/verifiable-knowledge
2•speckx•12m ago•0 comments

Show HN: The full Minecraft game as an embeddable Framer component

https://www.framer.com/community/contests/agents-hackathon/submissions/Y1tmsVEc6HdhnNPsympLxP/
2•xmorse•13m ago•0 comments

AI crawlers now match Googlebot in traffic to our site

https://mojodojo.io/blog/ai-crawlers-match-googlebot-traffic
5•zenincognito•13m ago•0 comments

Unreal Engine 5.8 is now available

https://www.unrealengine.com/news/unreal-engine-5-8-is-now-available
3•drak0n1c•14m ago•0 comments

Show HN: Vpod – Tiny Linux sandbox running in WASM

https://github.com/capsulerun/vpod
2•mavdol04•15m ago•0 comments

Canadian pension giant joins race to fund India's AI-fueled data center boom

https://techcrunch.com/2026/06/17/canadian-pension-giant-joins-race-to-fund-indias-ai-fueled-data...
2•flying_whales•15m ago•0 comments

Remove target="_blank"

https://therepanic.com/blog/2026/06/17/remove-target-blank.html
3•therepanic•15m ago•0 comments

Show HN: Chess bot based on the transformer architecture

https://github.com/tchauffi/ChessTransformer
2•tchauffi•16m ago•0 comments

Programmers at Work: 1986 interviews that predicted the future we are now living

https://www.programmersatwork.net/the-book
2•slammers123•16m ago•0 comments

Findaforager.com – The Database to Find a Forager Near You

https://www.robingreenfield.org/findaforager/
3•paulpauper•17m ago•0 comments

Anyone actually using loops?

2•blueshoe•17m ago•0 comments

Deep learning discovers Antarctic earthquakes coming from an unlikely location

https://phys.org/news/2026-06-deep-hundreds-antarctic-earthquakes.html
2•binyu•17m ago•0 comments

SpaceX Buys Cursor for $60B: Inside Musk's Vertical Integration Play

https://abzglobal.net/technology/spacex-buys-cursor-for-60-billion-inside-musks-vertical-integrat...
2•mariansorca•18m ago•0 comments

France's OVHcloud plans frontier AI models to become Europe's second LLM player

https://www.reuters.com/world/asia-pacific/frances-ovhcloud-plans-frontier-ai-models-become-europ...
2•aanet•18m ago•1 comments