frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

zljdanceholic•1y 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!

Pinball on 64-Bit Alpha AXP Windows NT

https://thebrokenpipe.com/blog/pinball-on-64-bit-alpha-axp-windows-nt/
1•jandeboevrie•34s ago•0 comments

Live life calendar wallpaper for Mac

https://github.com/knguyenanhoa/lifecalwall
1•191101•1m ago•1 comments

Rube/1.0: A Byzantine protocol for transmitting one authenticated Boolean

https://raw.githubusercontent.com/voidnullvalue/RUBE/refs/heads/main/draft-rube-protocol-01.md
1•voidnullvalue•1m ago•0 comments

Show HN: Founders Feed

https://www.founders-feed.com
1•player08•2m ago•0 comments

Szr: A safer command output reduction for coding agents

https://github.com/devr-tools/szr
1•alxxjohn•3m ago•1 comments

Even AGI Can't Estimate a Jira Ticket

https://twitter.com/chkn_little/status/2079983527240581474
1•llmmadness•3m ago•0 comments

Show HN: Cartopolis – OpenStreetMap rendered like it's 1999

https://seriot.ch/drawing/cartopolis/
1•beefburger•3m ago•0 comments

The Vibe Coding Trap: Why AI-Assisted Projects Still Fail

https://thinkapedia.com/t/tk_s9opYzPvxvZ7/document
1•chancedurham•3m ago•0 comments

Claude was safest – and Grok committed 180 crimes and went extinct within 4 days

https://kottke.org/26/07/0049364-researchers-let-ai-models
1•kristiandupont•4m ago•0 comments

LLMs Will Cheese Your Types: Fighting Back in Haskell

https://blog.jle.im/entry/llms-and-haskell-1-constraint-evading-behavior.html
1•jle•6m ago•0 comments

Show HN: Hermes SEG – Self-hosted, open-source secure email gateway

https://github.com/deeztek/Hermes-Secure-Email-Gateway
1•stylized8629•6m ago•0 comments

I Spent a Year Asking AI to Solve Math's Hardest Problem. Here's What Happened

https://cacm.acm.org/blogcacm/i-spent-a-year-asking-ai-to-solve-maths-hardest-problem-heres-what-...
1•wslh•8m ago•0 comments

Garmin Acquires TrainingPeaks and TrainHeroic

https://www.garmin.com/en-US/newsroom/press-release/corporate/garmin-acquires-trainingpeaks-and-t...
1•Gshaheen•10m ago•0 comments

Show HN: Cactus Hybrid: We taught Gemma 4 to know when it's wrong

https://github.com/cactus-compute/cactus-hybrid
1•HenryNdubuaku•10m ago•0 comments

Show HN: Nexlayer – Paste a repo. The agent analyzes, builds and deploys it

https://nexlayer.com/
1•salsta1•11m ago•0 comments

Chandrasekhar and the Limits of Physics, Part 2: Humiliation

https://www.universetoday.com/articles/chandrasekhar-and-the-limits-of-physics-part-2-humiliation
1•tcp_handshaker•12m ago•0 comments

Most people are using AI the wrong way in their job search

https://munreader.com/
1•sovereignai•13m ago•0 comments

Respect the P vs. NP Problem

https://blog.computationalcomplexity.org/2026/06/respect-p-v-np-problem.html
2•wslh•13m ago•0 comments

What sampling temperature does in LLM RL training

https://medium.com/@shizhanszh34/what-sampling-temperature-actually-does-in-llm-rl-training-a-con...
1•zzsamshi•15m ago•0 comments

IMO 2026 Results

https://www.imo-official.org/results/individual/year/2026/
2•pykello•16m ago•0 comments

Ask HN: How to get started with a sustainable bootstrapped business of your own?

1•romanovtexas•16m ago•2 comments

Everyone Should Know SIMD

https://mitchellh.com/writing/everyone-should-know-simd
4•WadeGrimridge•18m ago•0 comments

Atlassian: teamwork and mental illness in the workplace (2017)

https://www.atlassian.com/blog/development/teamwork-and-mental-illness-in-the-workplace
2•sillywabbit•18m ago•0 comments

AMD and Anthropic Announce Partnership to Deploy Up to 2 Gigawatts of MI450 GPUs

https://ir.amd.com/news-events/press-releases/detail/1292/amd-and-anthropic-announce-strategic-pa...
1•roboror•19m ago•0 comments

Show HN: Cloud deployment abstracted into one line of code

https://verlex.dev/
1•LucasBGrenier•19m ago•0 comments

This eReader is more portable than a phone

https://niila.fi/en/xteink-x4/
1•duckling23•19m ago•1 comments

CPU-Z Backdoor: Detecting Malicious Implants at Scale

https://reveng.ai/blog/detecting-malicious-code-at-scale
2•u53rn4m3•20m ago•0 comments

Build vs. Buy Auth Is the Wrong Question. Here's the Right One

https://securityboulevard.com/2026/07/build-vs-buy-auth-is-the-wrong-question-heres-the-right-one/
1•mooreds•21m ago•0 comments

Show HN: We added x402 so AI agents can pay to use our cloud simulation API

https://www.cloudworldmodel.ai/blog/x402-cloud-simulation-api
1•CanvasCloudAI•21m ago•0 comments

Google Lawsuit Against Data Scraper Tossed over Authority Issue

https://news.bloomberglaw.com/ip-law/google-lawsuit-against-data-scraper-tossed-over-authority-issue
1•timpera•21m ago•1 comments