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!

TPU Mania

https://thechipletter.substack.com/p/tpu-mania
1•chmaynard•3m ago•0 comments

Show HN: Seedance2:AI Video Generator with smooth motion and rich details

https://seedance-2.org
1•Aa123128•3m ago•0 comments

Show HN: Hazbin Hotel OC Maker – Create Original Characters with AI

https://aiocmaker.com/oc-maker/hazbin-hotel-oc-maker
1•xiaoshumiao•3m ago•0 comments

Show HN: I built this because finding a job f**king sucks

https://trylockedin.app/
1•irfahm11•10m ago•0 comments

'A nightmare' – The battle over Warner Bros is turning Hollywood upside down

https://www.bbc.com/news/articles/c8dyy47qy82o
1•breve•10m ago•1 comments

Show HN: Tic Tac Flip – A new strategic game based on Tic Tac Toe

https://tic-tac-flip.web.app/
1•breezefox•10m ago•0 comments

Show HN: CF Local Helpers – Dashboard for Cloudflare Workers Local Dev

https://github.com/bimsina/cf-local-helpers
1•bimsina•19m ago•0 comments

"You should never build a CMS"

https://www.sanity.io/blog/you-should-never-build-a-cms
1•handfuloflight•21m ago•0 comments

Will blockbuster obesity drugs revolutionize addiction treatment?

https://www.nature.com/articles/d41586-025-03911-x
1•qnleigh•22m ago•0 comments

Interlock – a circuit breaker and certification system for AI infrastructure

https://github.com/CULPRITCHAOS/Interlock
1•CULPRITCHAOS•28m ago•1 comments

ICE Holding Chinese Man Who Documented Uyghur Camps

https://www.wsj.com/world/china/ice-holding-chinese-man-who-documented-uyghur-camps-a4702045
4•gok•29m ago•0 comments

Counter Social – a next-generation anti abuse and user privacy social network

https://counter.social/index.html
1•inesranzo•30m ago•0 comments

Game Theory and Your Lawn

https://domofutu.substack.com/p/game-theory-and-your-lawn
1•wjb3•31m ago•0 comments

'It was like a dream': How Australia's rarest bird of prey was found

https://www.watoday.com.au/national/western-australia/it-was-like-a-dream-how-australia-s-rarest-...
2•defrost•38m ago•0 comments

Show HN: Rolldphobia – Bundle size analyzer with tree-shaking using Rolldown

https://rolldphobia.ssssota.dev/
1•ssssota•45m ago•0 comments

Hyrumrand – Golang random number generator based on random map iteration order

https://github.com/micrictor/hyrumrand
2•mtud•47m ago•0 comments

Ask HN: How does traceroute on airplane wifis work?

1•bjourne•49m ago•0 comments

Neutrino Alchemy: Sun's Ghost Particles Caught Transforming Atoms

https://www.sciencealert.com/neutrino-alchemy-suns-ghost-particles-finally-caught-transforming-atoms
1•Guestmodinfo•50m ago•0 comments

Pingfs: Stores your data in ICMP ping packets

https://github.com/yarrick/pingfs
1•linkdd•50m ago•0 comments

Design Is Search

https://twitter.com/karrisaarinen/status/1999730838280503775
2•gmays•51m ago•0 comments

Altman: Super intelligence in 10 years, more extraordinary things in 2026

https://openai.com/index/ten-years/
2•aurareturn•52m ago•1 comments

What happens when the coding becomes the least interesting part of the work

https://obie.medium.com/what-happens-when-the-coding-becomes-the-least-interesting-part-of-the-wo...
2•gmays•54m ago•0 comments

Ask HN: A browser that syncs history reliably across devices?

1•workfromspace•59m ago•0 comments

Pizlix: Memory Safe Linux from Scratch

https://fil-c.org/pizlix
2•nullbyte808•1h ago•0 comments

Send Me to Heaven (2013)

https://en.wikipedia.org/wiki/Send_Me_to_Heaven
2•gregsadetsky•1h ago•0 comments

Maths can help you wrap your presents better

https://www.bbc.com/future/article/20251212-how-maths-can-help-you-wrap-your-presents-better
1•1659447091•1h ago•0 comments

Vibe Engineering (2026)

https://www.manning.com/books/vibe-engineering
1•turtleyacht•1h ago•0 comments

We used Codex to build Sora for Android in 28 days

https://openai.com/index/shipping-sora-for-android-with-codex/
2•crorella•1h ago•1 comments

Investors commit quarter-billion dollars to startup designing "Giga" satellites

https://arstechnica.com/science/2025/12/investors-commit-quarter-billion-dollars-to-startup-desig...
1•BWStearns•1h ago•0 comments

Rails Pulse: Performance monitoring and debugging gems for Rails application

https://github.com/railspulse/rails_pulse
1•ksec•1h ago•0 comments