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•8mo ago

Comments

zljdanceholic•8mo 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!

Show HN: PaperPod – an agent-native, pay-per-use sandbox

https://paperpod.dev/
1•shassingh09•1m ago•0 comments

Xi's Enforcers Punished Nearly a Million in 2025–and China's Leader Wants More

https://www.wsj.com/world/china/xis-enforcers-punished-nearly-a-million-in-2025and-chinas-leader-...
2•cwwc•1m ago•0 comments

Should we hate vibe coders?

https://computerswereamistake.substack.com/p/should-we-hate-vibe-coders
1•manitob24•4m ago•0 comments

Frustrated with slow AI adoption? Your culture is the problem not your engineers

https://innolitics.com/articles/ai-native-engineering-transformation/
1•yshrestha•6m ago•1 comments

Kagi Small Web

https://kagi.com/smallweb
1•susam•12m ago•0 comments

Intel Underestimates Error Bounds by 1.3 quintillion (2014)

https://randomascii.wordpress.com/2014/10/09/intel-underestimates-error-bounds-by-1-3-quintillion/
2•antonly•12m ago•0 comments

Show HN: Whisper Money – a zero-knowledge personal finance app (E2E encrypted)

https://github.com/whisper-money/whisper-money
1•falcon_•14m ago•1 comments

Prompt Repetition Improves Non-Reasoning LLMs

https://arxiv.org/abs/2512.14982
1•UntitledNo4•16m ago•0 comments

Writing an LLM from scratch, part 31 – the models are now on Hugging Face

https://www.gilesthomas.com/2026/01/llm-from-scratch-31-models-on-hugging-face
1•gpjt•16m ago•0 comments

Histomat of F/OSS: We should reclaim LLMs, not reject them

https://writings.hongminhee.org/2026/01/histomat-foss-llm/
1•birdculture•19m ago•0 comments

Book Review: Ping by Andrew Brodsky

https://www.mattrutherford.co.uk/book-ping-by-andrew-brodsky/
1•walterbell•20m ago•0 comments

Private LLM Inference on Consumer Blackwell GPUs

https://arxiv.org/abs/2601.09527
1•Teever•21m ago•0 comments

I made a cursor clone just for taking notes

https://galileo.sh/
1•zaais•21m ago•3 comments

A Brief Genealogy of Anti-Modernity

https://thewaxingcrescent.substack.com/p/a-brief-genealogy-of-anti-modernity
1•XzetaU8•23m ago•0 comments

Signature Reduction

https://www.newsweek.com/exclusive-inside-militarys-secret-undercover-army-1591881
2•barrister•23m ago•0 comments

List of Common Misconceptions

https://en.wikipedia.org/wiki/List_of_common_misconceptions
2•xthe•25m ago•1 comments

Yaël D. Eisenstat

https://en.wikipedia.org/wiki/Yael_Eisenstat
1•barrister•25m ago•0 comments

Mandiant releases rainbow table that cracks weak admin password in 12 hours

https://arstechnica.com/security/2026/01/mandiant-releases-rainbow-table-that-cracks-weak-admin-p...
1•mannykannot•27m ago•0 comments

Show HN: Hydra – Capture and share AI Playbooks across your stack

https://hydra.opiusai.com/
1•Bharath_Koneti•28m ago•0 comments

The Bitter Lesson of Agent Frameworks

https://twitter.com/gregpr07/status/2012052139384979773
2•arbayi•30m ago•0 comments

Revisiting the Joys and Woes of the Craft in 2026

https://www.paritybits.me/joys-and-woes-2026/
1•NiloCK•31m ago•1 comments

Show HN: I built a Go TUI to clean dev caches on macOS

https://github.com/2ykwang/mac-cleanup-go
2•immutable000•32m ago•1 comments

Show HN: UAIP Protocol – Secure settlement layer for autonomous AI agents

https://github.com/jahanzaibahmad112-dotcom/UAIP-Protocol
2•Jahanzaib687•32m ago•0 comments

ClickHouse Launches Managed PostgreSQL

https://clickhouse.com/cloud/postgres
2•thenaturalist•33m ago•0 comments

How to make LLMs and Agents work on large amounts of data

https://blog.datatune.ai/how-to-make-llms-work-on-large-amounts-of-data
1•abhijithneil•34m ago•0 comments

Show HN: Minikv – Distributed key-value and object store in Rust (Raft, S3 API)

https://github.com/whispem/minikv
15•whispem•35m ago•9 comments

Ben Affleck and Matt Damon on the Limits of AI in Movie Making [video]

https://www.youtube.com/watch?v=O-2OsvVJC0s
2•thunderbong•36m ago•0 comments

Vinted Sells Children

https://morsdei.uk/vinted-sells-children/
2•NoGimmies•37m ago•0 comments

Meta has discontinued its metaverse for work, too

https://www.theverge.com/tech/863209/meta-has-discontinued-its-metaverse-for-work-too
10•malshe•39m ago•1 comments

Hair Ice

https://en.wikipedia.org/wiki/Hair_ice
2•cl3misch•40m ago•0 comments