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!

Battery recycling boom exposes schoolchildren to lead

https://www.ft.com/content/19beeed4-8c99-4de3-a163-9301210634ad
1•petethomas•1m ago•0 comments

VTubeMe

https://vtubeme.com
1•alekcac•2m ago•1 comments

Show HN: Pebble, an open-source alternative to Minecraft: Java Edition

https://github.com/thebriangao/pebble
1•briangao•4m ago•1 comments

Is the Twenty-First Century a Creative Void?

https://yalereview.org/article/audrey-wollen-david-marx-blank-space
1•tintinnabula•5m ago•0 comments

Show HN: How to prevent spam and disposable signups

https://emailverify.se/
1•the_plug•5m ago•0 comments

Amazon security research reportedly led to the White House's Anthropic Fable ban

https://www.theverge.com/ai-artificial-intelligence/949601/amazon-anthropic-fablemythos-governmen...
1•kikibobo69•6m ago•0 comments

W.H. Auden and James Schuyler in life and literature

https://hedgehogreview.com/web-features/thr/posts/companions-on-parnassus
2•Caiero•12m ago•0 comments

Bubbles.town – posts aggregated from 5007 independent, personal blogs

https://bubbles.town/
2•Curiositry•13m ago•0 comments

Rio 3.5 Open 397B – from Rio de Janeiro's city government

https://huggingface.co/prefeitura-rio/Rio-3.5-Open-397B
2•mcyc•18m ago•1 comments

Frontier: Elite 2 intro (Roland SCC-1) 1993 PC DOS [video]

https://www.youtube.com/watch?v=NzveVFilqMU
1•doener•20m ago•0 comments

Their friends are making $100M. Everyone else is wondering how to catch up

https://www.washingtonpost.com/technology/2026/06/13/ipo-boom-mints-thousands-new-millionaires-si...
1•edward•21m ago•2 comments

US orders Anthropic to disable AI models for all foreign nationals

https://www.aljazeera.com/news/2026/6/13/us-orders-anthropic-to-disable-ai-models-for-all-foreign...
2•untitled-now•24m ago•0 comments

What every coder should know about Gamma Correction

https://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/
1•sph•25m ago•0 comments

Show HN: Awsmap – query your AWS inventory with SQL or plain English, offline

https://github.com/TocConsulting/awsmap
1•CloudHackerFr•28m ago•0 comments

Founders, your tech startup is not going public

https://sudbh11.substack.com/p/founders-your-software-company-is
2•sudbh11•33m ago•1 comments

Show HN: Bye-wk – Hide World Cup news from your feed

https://github.com/Braitenberg/bye-wk
1•kjex0•36m ago•0 comments

Designing a Symbol Layer

https://getreuer.info/posts/keyboards/symbol-layer/index.html
1•firephox•38m ago•0 comments

Is Privacy the Latest Luxury?

https://www.ft.com/content/185a3419-a760-468b-b71e-59095ab874e2
2•petethomas•38m ago•0 comments

Ask HN: How to avoid stressing yourself because of a micromanager?

3•ciwolex•38m ago•1 comments

Run your laptop from your couch – couchpilot

https://github.com/zkalykov/couchpilot
2•zkalykov•39m ago•1 comments

The Geomblog: The "Fable" of Anthropic and the USG

http://blog.geomblog.org/2026/06/the-fable-of-anthropic-and-usg.html
1•donohoe•40m ago•1 comments

Visa Vulnerability Agentic Harness (built with Mythos)

https://github.com/visa/visa-vulnerability-agentic-harness
1•binyu•43m ago•0 comments

Cambrian Explosion: When Complexity Met Complexity

https://medium.com/@rbridges_40571/the-cambrian-explosion-when-complexity-met-complexity-76d56f0f...
1•cleansingfire•43m ago•1 comments

Closed AI Risks being hostile to startups

2•nyxtom•44m ago•1 comments

Turn your site into a place people can bump into each other

https://cauenapier.com/blog/townsquare_release/
1•birdculture•46m ago•2 comments

Human Routers of Machine Words

https://borretti.me/article/human-routers-of-machine-words
3•zx321•51m ago•0 comments

This too shall pass

https://en.wikipedia.org/wiki/This_too_shall_pass
2•password54321•52m ago•0 comments

OpenDevOps – An open-source AI agent that investigates AWS/Azure incidents

https://github.com/AhmadHammad21/OpenDevOps
1•ahmadhammad01•55m ago•0 comments

Show HN: Made an online 3D Tarot reading

https://tarots.world
1•Arvmor•56m ago•0 comments

Storyz.com

https://www.storyz.com/
1•link_see•58m ago•5 comments