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!

Anthropic's Seven Founders

https://www.nytimes.com/2026/10/26/technology/anthropic-founders.html
1•donohoe•5m ago•0 comments

Show HN: TablePro – open-source native database client for macOS

https://github.com/TableProApp/TablePro
1•ngoquocdat•6m ago•0 comments

OLED iPad Mini

https://www.apple.com/shop/buy-ipad/ipad-mini
3•etothet•6m ago•0 comments

Connect your AI agents to your database without them having to write SQL

https://github.com/claix-dev/claix-for-devs
1•gael_dev•7m ago•0 comments

Show HN: Tapo-uploader – Tapo camera to private YouTube, recorded on motion

https://github.com/LuigiElleBalotta/tapo-uploader
1•lbalotta•7m ago•0 comments

Show HN: KanuniLabs-DataGrid and PivotGrid for React and JavaScript

https://kanunilabs.com/demos/sales-analytics
1•hizlikovboy27•7m ago•1 comments

How to install an app on your Commodore 64

https://www.anildash.com/2026/10/08/install-an-app-commodore-64/
1•colinprince•8m ago•0 comments

Pusaka Intelligence – AI equity research on US large caps

https://pusakaintelligence.com/en/
1•David_Gunawan•8m ago•0 comments

How far $100 of fuel takes you in America's best-selling cars

https://www.kadoa.com/energy-prices/insights/car-fuel-costs
1•hubraumhugo•10m ago•0 comments

What Are Chinese AI Companies Saying About the Impacts of Export Controls?

https://www.konstantinpilz.com/posts-publications/chinese-statements-on-compute
1•abdullahalharir•10m ago•0 comments

Ask HN: Is it true the Claude Code is better than Codex for coding?

1•abalgir•11m ago•0 comments

Custom Development Services

https://www.bitechnology.co.uk/
1•itshimbilal•12m ago•0 comments

It's time to come back to Firefox [video]

https://www.youtube.com/watch?v=E2AoYIKwJqM
3•wofo•12m ago•0 comments

Product

https://www.anthropic.com/news/product
1•surprisetalk•14m ago•0 comments

Anthropic IPO: S-1 Filing Offers First Look at Claude Maker's Finances

https://www.bloomberg.com/news/articles/2026-10-26/anthropic-ipo-s-1-filing-offers-first-look-at-...
1•gk1•15m ago•0 comments

Rockchip RK3588s Secure BootROM arbitrary code execution with highest privileges

https://www.cve.org/CVERecord?id=CVE-2024-13942
3•yeko•15m ago•0 comments

Show HN: Generate 3D printable mesh from laser scanned terrain data

https://github.com/code-fabrik/las2stl
1•Lukas_Skywalker•17m ago•0 comments

Chattanooga's Ambitious Plan to Become America's Quantum Capital

https://www.forbes.com/sites/jonathanreichental/2026/10/24/chattanoogas-ambitious-plan-to-become-...
1•willswire•18m ago•0 comments

Panfrost is now using Kraid

https://www.collabora.com/news-and-blog/news-and-events/panfrost-is-now-using-kraid.html
4•losgehts•22m ago•0 comments

Best Database Design Tools for 2027: Windows, macOS and Linux

https://visualeaf.com/blog/best-database-design-tools/
2•business_analys•22m ago•0 comments

Anthropic rushing IPO before AI bubble bursts

https://nypost.com/2026/10/23/business/wall-street-is-urging-anthropic-openai-to-do-their-ipos-in...
8•nothrowaways•24m ago•0 comments

Senior devs are in their Kasparov era

https://www.reddit.com/r/ClaudeAI/comments/1xfs6h7/senior_devs_are_in_their_kasparov_era/
1•redbell•24m ago•0 comments

Show HN: Gostman – Open-source API client with Git-friendly YAML collections

https://gostman.com/
1•kentuckyrc•25m ago•0 comments

Show HN: 25launches – I built a Linktree for my product launches

https://25launches.com
1•bilyas509•25m ago•1 comments

LearnHarness – An Agent Harness for Learning

https://github.com/amosblomqvist/learnharness
2•abhaynayar•27m ago•0 comments

Anthropic Reveals 14-Fold Increase in Growth as It Prepares for Blockbuster IPO

https://www.nytimes.com/2026/10/26/technology/anthropic-ipo-finances.html
2•jbegley•28m ago•0 comments

AI is coming for accounting after coding

2•shoman3003•29m ago•0 comments

Anthropic files for listing on US stock market: valuation of more than $1.5T

https://www.theguardian.com/technology/2026/oct/26/anthropic-files-listing-stock-market
5•bookofjoe•30m ago•0 comments

The MS-DOS Moment of AI

https://rruxandra.github.io/the-msdos-moment.html
2•rruxandra•32m ago•0 comments

Show HN: Sbr, a sing-box compatible client for government resistant VPN infra

https://sbr.blit.cc/benchmarks/
1•antihero•34m ago•0 comments