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!

Deep-Fried Mars Bar

https://en.wikipedia.org/wiki/Deep-fried_Mars_bar
1•handfuloflight•3m ago•0 comments

Show HN: A GPT Image 1.5 UI for developers tired of rewriting prompts

https://www.gpt2image.io/
1•Zeos3154•3m ago•0 comments

SwiftReadability: A Swift 6.2 port of Mozilla's Readability.js using SwiftSoup

https://github.com/lake-of-fire/swift-readability
1•wahnfrieden•7m ago•1 comments

Show HN: AI Financial Advisor App, Get You Plan for Free

https://apps.apple.com/ma/app/optivault-ai-budgeting/id6740290247
1•solosquad•11m ago•0 comments

Pulled 60 Minutes segment on CECOT

https://archive.org/details/60minutes-cecotsegment
2•DustinEchoes•14m ago•1 comments

Ban HN posts with links behind paywalls – YES or NO?

2•JimmyJamesJames•16m ago•3 comments

Bill Ackman Proposes SpaceX IPO Through Sparc, Prioritizing Tesla Shareholders

https://finance.yahoo.com/news/bill-ackman-proposes-elon-musks-193012345.html
2•SilverElfin•17m ago•2 comments

Origami on Another Level with 3D Printing

https://hackaday.com/2025/12/21/origami-on-another-level-with-3d-printing/
1•fangpenlin•20m ago•0 comments

Britons are less well off than they were in 2019 – and these figures show it

https://news.sky.com/story/britons-poorer-than-they-were-in-2019-as-living-standards-continue-to-...
4•ivewonyoung•21m ago•0 comments

The Duodecimal Bulletin, Vol. 55, No. 1, Year 1209 [pdf]

https://dozenal.org/drupal/sites_bck/default/files/DuodecimalBulletinIssue551.pdf
2•susam•23m ago•0 comments

NYC Spends $200 Million on Cell Service for School Chromebooks

https://nysfocus.com/2025/12/22/eric-adams-school-chromebooks-contract
9•h2si•26m ago•3 comments

I Stopped Reading and Embraced Audiobooks

https://www.nytimes.com/2025/12/21/books/review/audiobooks-reading-listening-habits.html
4•lxm•26m ago•0 comments

Administration suspends 5 wind projects off East Coast, cites security concerns

https://apnews.com/article/trump-offshore-wind-energy-climate-c0ac1e447c93126327f1922327921aa0
4•JKCalhoun•28m ago•1 comments

I Died on DMT

https://rebeccadai.substack.com/p/i-died-on-dmt
5•randomparticlez•31m ago•0 comments

Running Claude Code from my phone via SSH with Tailscale and tmux

https://www.qu8n.com/posts/running-claude-code-from-my-phone
3•quanwinn•32m ago•0 comments

In stock on Framework Desktop and updates on the industry-wide silicon crunch

https://community.frame.work/t/in-stock-on-framework-desktop-and-updates-on-the-industry-wide-sil...
2•nateb2022•37m ago•0 comments

Data 2025: The year in review with Mike Stonebraker and Andy Pavlo

https://www.dbos.dev/webcast-2025-in-review-with-mike-stonebraker-and-andy-pavlo
2•teleforce•38m ago•0 comments

Antimeme Antichrist

https://www.johnnychang.com/antimeme/
3•zcase•41m ago•1 comments

FDA Approves Pill Version of Wegovy

https://www.wired.com/story/fda-approves-pill-version-of-wegovy/
5•stein1946•41m ago•2 comments

Release Trains Aren't About Releases

https://cameronwestland.com/release-trains-arent-about-releases/
2•camwest•42m ago•1 comments

Wozmonc64.bas

https://github.com/gabrielsroka/gabrielsroka.github.io/blob/master/wozmon/wozmonc64.bas
2•gabrielsroka•43m ago•1 comments

State of the Geomagnetic Field, December 2025 (PDF 19 pages)

https://www.ncei.noaa.gov/sites/default/files/2025-12/WMM%20SoGF%20Dec2025%20508.pdf
3•defrost•47m ago•0 comments

A House Ahead of Its Time (2024)

https://www.nist.gov/feature-stories/house-ahead-its-time
2•1659447091•49m ago•0 comments

Exposing a $10B Fraudulent Debt Relief Industry [video]

https://www.youtube.com/watch?v=hBNWInRS6hM
3•fortran77•52m ago•0 comments

President Trump Announces New Trump Class Battleship

https://www.navy.mil/Press-Office/Press-Releases/display-pressreleases/Article/4366856/president-...
5•duxup•53m ago•3 comments

Show HN: StringTune-3D – Control Three.js scenes via CSS variables

https://github.com/penev-palemiya/StringTune-3D
2•penev_tech•1h ago•0 comments

We removed 80% of our agent's tools

https://vercel.com/blog/we-removed-80-percent-of-our-agents-tools
3•forks•1h ago•0 comments

Jim Beam halts production at main distillery for a year

https://www.bbc.com/news/articles/cy5gv5z24n2o
5•geox•1h ago•0 comments

Snitch – a friendly netstat alternative for humans

https://github.com/karol-broda/snitch
4•karol-broda•1h ago•0 comments

Grok Collections API

https://x.ai/news/grok-collections-api
2•lmariscal•1h ago•1 comments