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!

Bookish London: Photos of the Capital's Love Affair with Books

https://londonist.com/london/books-and-poetry/bookish-london
1•zeristor•28s ago•0 comments

React2shell: CVE-2025-55182 Technical Breakdown

https://www.miggo.io/post/react2shell-cve-2025-55182-technical-breakdown
1•zirak•1m ago•0 comments

"Indino" the Indigo flight cancellation tracker

https://indino.app/
1•WiseHare•1m ago•0 comments

Think First, AI Second

https://every.to/p/think-first-ai-second
1•ChrisArchitect•1m ago•0 comments

Steering the Vibe: Commits

https://staffordwilliams.com/blog/2025/12/07/steering-the-vibe-commits/
1•staff0rd•3m ago•1 comments

Tensor 1.5 is out and it's matching Claude 4.5 Opus

https://movementlabs.ai
1•movementlabs-AI•8m ago•1 comments

Gh PR-review: LLM-friendly PR review workflows in your CLI

https://agyn.io/blog/gh-pr-review-cli-agent-workflows
1•handfuloflight•15m ago•0 comments

What is digital sovereignty and how are countries approaching it?

https://www.weforum.org/stories/2025/01/europe-digital-sovereignty/
2•andsoitis•17m ago•0 comments

Spain probes whether swine fever outbreak was caused by lab leak

https://www.reuters.com/business/healthcare-pharmaceuticals/spain-investigating-whether-swine-fev...
1•geox•18m ago•0 comments

Git Worktree Manager: Worktrunk

https://worktrunk.dev/
2•maximilianroos•25m ago•0 comments

Show HN: Art-2D – A physics-based model for financial collapse prediction

https://zenodo.org/records/17805937
2•asmyros•26m ago•0 comments

Dinit – service manager and "init" system

https://davmac.org/projects/dinit/
2•doener•27m ago•0 comments

Show HN: Vibe Code WP Plugins

https://steem.dev/
1•fasthightimess•27m ago•0 comments

When is Gods Timing

https://thinke.org/blog/gods-timing-is-always-right-on-time
2•marysminefnuf•29m ago•0 comments

Chimera Linux

https://chimera-linux.org/
2•doener•29m ago•0 comments

Imperial 'Good Companion' Model T typewriter manual (1938) [pdf]

https://www.londontypewriters.co.uk/wp-content/uploads/2022/01/London-Typewriters-Imperial-Good-C...
1•camtarn•29m ago•0 comments

Bag of words, have mercy on us

https://www.experimental-history.com/p/bag-of-words-have-mercy-on-us
2•ntnbr•30m ago•0 comments

"SFH: A Minimal Semantic Layer for the Web (One File, Zero Dependencies)"

https://github.com/colts70/The-Sematic-Stack
1•sematicstackdfh•31m ago•1 comments

Does Pittsburgh Have More Bridges Than Any Other City?

https://www.pittsburghmagazine.com/does-pittsburgh-really-have-more-bridges-than-any-other-city/
2•eatonphil•31m ago•1 comments

Water leak in the Louvre damages works, museum says

https://www.theguardian.com/world/2025/dec/07/water-leak-in-the-louvre-damages-hundreds-of-works-...
1•ljf•34m ago•0 comments

Handmade Manifesto

https://handmade.network/manifesto
4•kristianp•34m ago•0 comments

University of Utah team discovers rare computer relic

https://www.youtube.com/watch?v=IR-f07LN0-Y
2•emigre•35m ago•1 comments

Terminal Click – Bringing Dead Text to Life

https://terminal.click/
1•kristianp•37m ago•0 comments

I block all online ads

https://troubled.engineer/posts/no-ads/
6•StrLght•42m ago•0 comments

Istanbul Tragedy: The Poison That Mimics Food Poisoning

https://www.medscape.com/viewarticle/istanbul-tragedy-poison-mimics-food-poisoning-2025a1000xms
2•wjb3•42m ago•0 comments

Two thousand years of garden urbanism in the Upper Amazon

https://www.science.org/doi/10.1126/science.adi6317
2•tesserato•44m ago•0 comments

Bermuda Triangle swallowed our reason -Conspiracy culture was born in its depths

https://unherd.com/2025/12/the-bermuda-triangle-swallowed-our-reason/
2•pseudolus•45m ago•1 comments

Mitch Albom's notes from a book tour: America still turning its pages

https://www.freep.com/story/sports/columnists/mitch-albom/2025/12/07/mitch-albom-notes-book-tour-...
2•rmason•46m ago•1 comments

The Medical Case for Self-Driving Cars

https://www.nytimes.com/2025/12/02/opinion/self-driving-cars.html
1•bookofjoe•48m ago•4 comments

The New Cigarette

https://www.whitenoise.email/p/the-new-cigarette
1•twhite214•51m ago•0 comments