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!

Show HN: Mind2Post, a tool that turn your minds into high-value posts

https://mind2post.com.com
1•tangpanqing•55s ago•0 comments

Geoffrey Hinton warns AI has 'progressed even faster than I thought' [video]

https://www.youtube.com/watch?v=5qBDQgfeB6s
1•davidst•3m ago•0 comments

Insight Debt

https://bytesauna.com/post/insight-debt
1•mapehe•6m ago•1 comments

Why didn't anyone point out the flawed operating leverage story in SaaS?

https://elocination.substack.com/p/why-didnt-anyone-point-out-the-flawed
1•pr337h4m•6m ago•0 comments

The Second Great Error Model Convergence

https://matklad.github.io/2025/12/29/second-error-model-convergence.html
1•ingve•17m ago•0 comments

Turning Images into Talking Videos with AI

https://www.infinitetalk.com
1•cy1414569•18m ago•1 comments

The Many Worlds Interpretation of Quantum Mechanics (Hugh Everett PhD Thesis) [pdf]

https://www.pbs.org/wgbh/nova/manyworlds/pdf/dissertation.pdf
2•kdavis•19m ago•0 comments

What I learned after collecting large-scale US business data

https://rangelead.com/
1•RangeLead•30m ago•1 comments

Multidimensional Analysis: Algebras and Systems for Science and Engineering

https://www.georgehart.com/research/multanal.html
2•teleforce•44m ago•0 comments

Ask HN: Ruby 4 and unicorn segfault (kgio) how to get a gem release?

1•catatsuy•52m ago•0 comments

A framework for semiring-annotated type systems

https://stax.strath.ac.uk/concern/theses/tt44pn44w
2•teleforce•52m ago•0 comments

AI language models duped by poems

https://www.dw.com/en/ai-language-models-duped-hacked-by-poems-chatgpt-gemini-claude-security-mec...
1•DeLopSpot•55m ago•0 comments

Million dollar idea? Imagine TikTok but everytime you scroll it's a new meme

https://www.onemorememe.com/
2•mattmerrick•58m ago•2 comments

The $276B Bull: Ken Fisher's Top Bets for the AI Supercycle

https://www.13radar.com/guru/ken-fisher
1•EvansWilson•1h ago•2 comments

Staying ahead of censors in 2025

https://forum.torproject.org/t/staying-ahead-of-censors-in-2025-what-weve-learned-from-fighting-c...
36•ggeorgovassilis•1h ago•5 comments

Case Study on Structured JSON Prompts for Nano Banana Pro

https://curateclick.com/blog/2025-12-29-nano-banana-pro-prompts
1•czmilo•1h ago•3 comments

Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

https://github.com/HarryR/z80ai
10•quesomaster9000•1h ago•1 comments

Binaries

https://fzakaria.com/2025/12/28/huge-binaries
5•todsacerdoti•1h ago•1 comments

Show HN: DockMate – Terminal UI for Container Management

https://github.com/shubh-io/DockMate
1•shubh-io•1h ago•0 comments

Show HN: Got tired of searching for AI news daily so I built my own AI news page

https://dreyx.com/
3•lilsquid•1h ago•3 comments

Codex Kaioken – OpenAI Codex CLI fork with subagents, memory, and live settings

https://github.com/jayasuryajsk/codex-kaioken
2•j34nsh33•1h ago•2 comments

Show HN: Snippets – Minimal local scratchpad for code and notes

https://snippets.dev/
1•william_uk•1h ago•0 comments

Copybara – tool for transforming and moving code between repositories

https://github.com/google/copybara
2•wiradikusuma•1h ago•0 comments

The Lure of a Rising Asian Metropolis? No Traffic.

https://www.nytimes.com/2025/12/28/world/asia/indonesia-nusantara-future-capital.html
1•mitchbob•1h ago•1 comments

World's Smallest Programmable, Autonomous Robots

https://techxplore.com/news/2025-12-world-smallest-programmable-autonomous-robots.html
4•the-mitr•1h ago•0 comments

Panoramas of Star Trek Sets

https://mijofr.github.io/st-panorama/
8•jfil•1h ago•0 comments

Show HN: My not-for-profit search engine with no ads, no AI, & all DDG bangs

https://nilch.org
8•UnmappedStack•1h ago•0 comments

Show HN: MCP Web Host

https://mcphost.link
2•init0•1h ago•0 comments

Dream

https://en.wikipedia.org/wiki/Dream
2•downboots•1h ago•0 comments

Show HN: AI-assisted approach to detecting patterns in network traffic

https://github.com/vgaj/phd/tree/main/mcp_prototype
2•viru7•1h ago•0 comments