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!

Intel pursued deals that boosted CEO Lip-Bu Tan's fortune, sources say

https://www.reuters.com/business/intel-pursued-deals-that-boosted-ceo-lip-bu-tans-fortune-sources...
2•thebeardisred•50s ago•0 comments

A Fentanyl Vaccine Is About to Get Its First Major Test

https://www.wired.com/story/a-fentanyl-vaccine-is-about-to-get-its-first-major-test/
1•pavel_lishin•1m ago•0 comments

Teens, Social Media and AI Chatbots 2025

https://www.pewresearch.org/internet/2025/12/09/teens-social-media-and-ai-chatbots-2025/
2•ChrisArchitect•4m ago•0 comments

LangSmith Fetch - CLI for fetching LangSmith data

https://github.com/langchain-ai/langsmith-fetch
1•gfortaine•5m ago•0 comments

ChatGPT's back end: crashes, echoing payloads, and fast fixes

https://github.com/LiudasJan/Rentgen/wiki/ChatGPT%E2%80%99s-backend:-crashes,-echoing-payloads,-a...
1•liudasjank•5m ago•0 comments

Agent SOPs – Enable AI agents to perform complex, multi-step tasks

https://github.com/strands-agents/agent-sop
1•mobrienv•5m ago•0 comments

Copilot Usage Report 2025

https://microsoft.ai/news/its-about-time-the-copilot-usage-report-2025/
1•ChrisArchitect•6m ago•0 comments

Show HN: SIM – Apache-2.0 n8n alternative

https://github.com/simstudioai/sim
4•ekarabeg•8m ago•0 comments

Texas Files Antitrust Suit Against Epic Systems over Health Data

https://www.bloomberg.com/news/articles/2025-12-11/texas-files-antitrust-suit-against-epic-system...
3•toomuchtodo•8m ago•1 comments

NopSCADlib: Library of OpenSCAD parts and framework for making projects

https://github.com/nophead/NopSCADlib
1•timschmidt•8m ago•1 comments

Ryan Serhant Won't Stop Until He's No. 1

https://www.readtheprofile.com/p/ryan-serhant-owning-manhattan-profile
1•polina09•9m ago•0 comments

Seeking feedback from senior JavaScript engineers

https://github.com/Chrilleweb/dotenv-diff
1•chrilleweb•10m ago•1 comments

Who falls for misinformation?: Epistemic beliefs and political identity

https://liu.diva-portal.org/smash/record.jsf?pid=diva2%25253A2001550&dswid=5902
1•bikenaga•11m ago•0 comments

The Great Al Debate Who Is Right? [video]

https://www.youtube.com/watch?v=MXFEf9xSKAo
1•avonmach•11m ago•0 comments

CEO of South Korean online retail giant Coupang resigns over data breach

https://www.cnbc.com/2025/12/10/ceo-of-south-korean-online-retail-giant-coupang-resigns-over-data...
2•mgh2•11m ago•0 comments

HN time capsule hn comments analyzed by AI with hindsights 10yr later

https://karpathy.ai/hncapsule/
1•rmnwski•13m ago•0 comments

Humans Near top of list of monogamous mammals

https://www.theguardian.com/science/2025/dec/10/humans-rank-among-leading-monogamous-mammals-stud...
1•zafka•13m ago•0 comments

Reflections on my first year writing full time

https://www.henrikkarlsson.xyz/p/2025
1•jger15•13m ago•0 comments

Terraform Provider Registry Outage

https://status.hashicorp.com
1•deathanatos•15m ago•1 comments

Show HN: CIX – deterministic indexing for stable LLM sessions (10-second PoC)

https://github.com/VikingFlow/continuous-index
1•VikingFlowAI•16m ago•1 comments

AI as the Great Democratizer

https://theautomatedoperator.substack.com/p/ai-as-the-great-democratizer
1•idopmstuff•16m ago•0 comments

Fedora introduces LLM that suggests using apt to solve the issue

https://fedoramagazine.org/find-out-how-your-fedora-system-really-feels-with-the-linux-mcp-server/
1•butz•17m ago•0 comments

HTML Changes in ePub

https://htmhell.dev/adventcalendar/2025/11/
1•soheilpro•17m ago•0 comments

Show HN: VICW – Virtual Infinite Context Window

https://github.com/elevend0g/vicw
1•elevend0g•17m ago•0 comments

Cosmic Desktop is a fantastic first draft [video]

https://www.youtube.com/watch?v=ob-Y77kuVwM
1•todsacerdoti•20m ago•0 comments

New in Llama.cpp: Model Management

https://huggingface.co/blog/ggml-org/model-management-in-llamacpp
1•geerlingguy•21m ago•0 comments

Why Your RAG Costs $2,400/Month (and How We Cut It by 73%)

2•helain•23m ago•0 comments

Show HN: I built a WebMIDI sequencer to control my hardware synths

https://www.simplychris.ai/droplets
1•simplychris•23m ago•0 comments

What you should know about constraints in PostgreSQL

https://xata.io/blog/constraints-in-postgres
3•tudorg•24m ago•0 comments

The Agents Shared Cognition Protocol (ASCP)

https://github.com/Reframe-Technologies/ascp-draft-specs
1•talljeff68•24m ago•1 comments