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!

A Solid Load of Bull

https://loup-vaillant.fr/articles/solid-bull
1•enz•52s ago•0 comments

Kowloon Walled City Documentary (English Subtitles) [video]

https://www.youtube.com/watch?v=S-rj8m7Ssow
1•thunderbong•1m ago•0 comments

100 blog posts, 6 years, 5 million views

https://austinhenley.com/blog/100.html
1•saikatsg•3m ago•0 comments

Mmmm

1•gregory2•3m ago•0 comments

IQuest-Coder-V1

https://github.com/IQuestLab/IQuest-Coder-V1
1•miohtama•4m ago•0 comments

I accidentally indexed my SaaS using Google's site: search

https://www.google.com/search?q=site%3Avect.pro&oq=&gs_lcrp=EgZjaHJvbWUqCQgAECMYJxjqAjIJCAAQIxgnG...
1•WoWSaaS•7m ago•1 comments

The Math Book (2012)

https://sprott.physics.wisc.edu/pickover/math-book.html
1•vismit2000•10m ago•0 comments

Denmark becomes first country in world to end letter delivery

https://www.abc.net.au/news/2025-12-31/denmark-postal-service-ends-letter-delivery/106188988
2•Tomte•13m ago•1 comments

MHC: Manifold-Constrained Hyper-Connections

https://arxiv.org/abs/2512.24880
1•ipnon•15m ago•0 comments

Ask HN: How did you learn to code?

3•chistev•24m ago•1 comments

The State of OSS Funding data [pdf]

https://github.com/andrew/state-of-oss-funding/blob/032d4b6134b36ea3c0aa378ee946ad4f77a2ac79/slid...
1•8organicbits•28m ago•0 comments

Bulgaria and the Euro

https://en.wikipedia.org/wiki/Bulgaria_and_the_euro
1•tosh•29m ago•0 comments

Why many projects fail before execution begins

2•BenWebbProject•30m ago•0 comments

AI Disclosure Under U.S. Securities Law

https://zenodo.org/records/18113674
1•businessmate•32m ago•1 comments

Challenging algorithms and data structures every programmer should try (2022)

https://austinhenley.com/blog/challengingalgorithms.html
1•vismit2000•32m ago•0 comments

JShell Tutorial

https://cr.openjdk.org/~rfield/tutorial/JShellTutorial.html
1•wolfi1•35m ago•0 comments

Professional College Basketball Players??

https://www.brianvsutah.com/p/professional-college-basketball-players
1•bjshaw73•41m ago•0 comments

Atmospheric Computing

https://www.pfrazee.com/blog/atmospheric-computing
1•danabramov•42m ago•0 comments

Quantum-floor compression: Achieving GPT-4 capability at 1/120th the model size [pdf]

https://oroboroslab.github.io/quantum-floor-preview.pdf
2•cybertax•45m ago•2 comments

Claude Code in Action – Anthropic Official Claude Code Course

https://anthropic.skilljar.com/claude-code-in-action
3•Lwrless•50m ago•0 comments

Show HN: GitHub Action for AI/LLM Security Scanning in CI/CD

https://github.com/XSource-Sec/agent-audit-action
2•xsourcesec•1h ago•1 comments

Semantica – Open-source semantic layer and GraphRAG framework

5•kaifahmad1•1h ago•0 comments

The dumbest things that happened in tech this year

https://techcrunch.com/2025/12/31/the-dumbest-things-that-happened-in-tech-this-year/
3•jnord•1h ago•0 comments

RGB Mini-LED will transform the premium TV landscape in 2026

https://www.techradar.com/televisions/how-rgb-mini-led-will-transform-the-premium-tv-landscape-in...
2•ksec•1h ago•0 comments

Show HN: Collect and analyze Postmark Time to Inbox data

https://github.com/jonasmalacofilho/postmark-tti-histogram
2•jonasmalaco•1h ago•0 comments

China accuses Netherlands of making 'mistakes' over chipmaker Nexperia

https://www.cnbc.com/2025/12/31/china-accuses-netherlands-of-making-mistakes-over-chipmaker-nexpe...
3•jnord•1h ago•1 comments

Carnegie Mellon's Camera Lens Breakthrough Eliminates Background Photo Blur

https://hothardware.com/news/carnegie-mellon-lens-breakthrough
3•gslin•1h ago•0 comments

Show HN: Video to JPG – Extract frames in browser with blur detection

https://videotojpg.com
2•charlesding2024•1h ago•1 comments

2026 Predictions Scorecard

https://rodneybrooks.com/predictions-scorecard-2026-january-01/
4•calvinfo•1h ago•0 comments

How does Node.js load its built-in/native modules? (2021)

https://joyeecheung.github.io/blog/2021/07/06/how-does-node-js-load-its-builtins-native-modules/
2•aragonite•1h ago•0 comments