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!

Ideavo – Tinder-style validation for startup ideas

1•ideavo•5m ago•1 comments

Reborrowing

https://en.wikipedia.org/wiki/Reborrowing
1•surprisetalk•14m ago•0 comments

Mystery Science Theater 3000: The Definitive Oral History of a TV Masterpiece

https://www.wired.com/2014/04/mst3k-oral-history/
2•indigodaddy•14m ago•0 comments

Top IAM Platforms

https://ssojet.com/blog/best-identity-access-management-tools
1•guptadeepak•15m ago•1 comments

Deposition of cathode metals from the largest lithium-ion battery fire

https://www.nature.com/articles/s41598-025-25972-8
1•Stratoscope•15m ago•1 comments

Ask HN: Has anyone else been hit by React2Shell?

1•jtolly710•26m ago•0 comments

Bots, bias, and bunk: How can you tell what's real on the net?

https://www.theregister.com/2025/12/05/bots_bias_bunk/
1•snorbleck•29m ago•0 comments

Jamie Dimon AI will eliminate jobs we'll be working less having wonderful lives

https://fortune.com/2025/12/07/jamie-dimon-jpmorgan-ai-job-cuts-shorter-week-less-work-worker-ass...
1•labrador•30m ago•0 comments

Hōkan's Bicycle Rack

https://bikerack.hokan.minneapolis.mn.us/
2•gregsadetsky•38m ago•0 comments

IBM Nears Roughly $11B Deal for Confluent

https://www.wsj.com/business/deals/ibm-nears-roughly-11-billion-deal-for-confluent-276f52d8
2•mfiguiere•41m ago•0 comments

Palantir Could Be the Most Overvalued Company That Ever Existed

https://247wallst.com/investing/2025/11/25/palantir-could-be-the-most-overvalued-company-that-eve...
11•Anon84•42m ago•0 comments

Australia wants to be critical minerals superpower- processing is dangerous

https://theconversation.com/australia-wants-to-be-a-critical-minerals-superpower-but-processing-i...
1•defrost•47m ago•0 comments

Catswords.Phantomizer: An HTTP-based DLL loader designed for .NET apps

https://github.com/gnh1201/welsonjs/tree/master/WelsonJS.Toolkit/Catswords.Phantomizer
3•gnh1201•52m ago•1 comments

USB Video Capture Devices: Wow They're All Bad

https://hackaday.com/2025/12/07/usb-video-capture-devices-wow-theyre-all-bad/
2•colinprince•54m ago•0 comments

How Do People Catch Baseballs? (2021)

https://www.wired.com/story/how-do-people-actually-catch-baseballs/
2•vismit2000•58m ago•1 comments

Ambient music mixed with the sounds of San Francisco public safety radio

https://somafm.com/player24/station/sf1033
1•indigodaddy•1h ago•0 comments

Bad programmers are about to become exposed

https://sundaylettersfromsam.substack.com/p/bad-programmers-are-about-to-become
1•soham•1h ago•1 comments

Show HN: AWS VPC/Subnet Calculator and Terraform Generator (Itcmds.ai)

https://itcmds.ai/AWS_IP_Calculator
2•munyunting•1h ago•0 comments

Ancient dirty dishes reveal decades of questionable findings

https://news.cornell.edu/stories/2025/12/ancient-dirty-dishes-reveal-decades-questionable-findings
1•geox•1h ago•0 comments

Hong Kong holds Legislative Council election

https://qazinform.com/news/hong-kong-holds-legislative-council-election-7cdc44
1•Bolat14•1h ago•0 comments

Northern California's largest non-Tesla fast charging hub: now online in Oakland

https://electrek.co/2025/12/04/northern-california-largest-non-tesla-fast-charging-hub-is-now-onl...
1•MilnerRoute•1h ago•0 comments

Years after anime imagined it, Japan has realized exosuits

https://twitter.com/CyberRobooo/status/1997656741363036595
10•keepamovin•1h ago•1 comments

Constructivist AI: A New Approach to AI

https://github.com/DanexCodr/Constructivist-AI
1•DanexCodr•1h ago•0 comments

Making Software: Blending modes

https://twitter.com/DanHollick/status/1583080119068807168
1•vismit2000•1h ago•1 comments

Postgres CDC in ClickHouse, A year in review

https://clickhouse.com/blog/postgres-cdc-year-in-review-2025
1•saisrirampur•1h ago•0 comments

Stanford PhD dropout hired Meta's brightest minds to join AI math startup

https://www.businessinsider.com/axiom-math-stanford-dropout-meta-ai-researchers-startup-2025-12
2•teleforce•1h ago•0 comments

Cold Case Inquiries Hampered After Ancestry.com Revisits Terms of Use

https://www.nytimes.com/2025/12/07/nyregion/ancestry-dna-police.html
2•WarOnPrivacy•1h ago•3 comments

Martin Hairer: Do Mathematicians Need Computers? [video]

https://www.youtube.com/watch?v=fbVqc1tPLos
1•vismit2000•1h ago•0 comments

Show HN: Matchmyvc.com – Is this going to be useful?

https://matchmyvc.com
1•tapan_garg•2h ago•0 comments

Color Recreation from First Principles

https://ycao.net/posts/recreating-color-simplified/
1•xiaoyu2006•2h ago•1 comments