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!

Bitcoin trail, Google cookies and Uber Eats orders help tie man to Steam malware

https://www.theverge.com/games/967174/steam-game-malware-cryptostealer-arrest
1•rzk•40s ago•0 comments

Urban Müller's talk about Brainfuck

https://www.youtube.com/watch?v=gjm9irBs96U
1•gregsadetsky•43s ago•0 comments

A new agent-first git just dropped

https://twitter.com/madster/status/2081818173272207505
1•ripgrim•1m ago•0 comments

Quality in Software

https://rsms.me/etc/handmade-seattle-2021/
1•jonl247•1m ago•0 comments

Generate LoRA adapters from Skill.MDs *MoE-models now too

https://terradev.cloud/tessera
1•Facingsouth•1m ago•0 comments

BuzzFeed, HuffPost and Tasty to Lay Off 180 Staffers

https://www.hollywoodreporter.com/business/business-news/buzzfeed-huffpost-layoffs-1236657384/
1•minimaxir•2m ago•1 comments

US DOT deleting bike lane references

https://www.npr.org/2026/07/23/nx-s1-5900901/bike-lanes-dot-websites
1•aendruk•3m ago•0 comments

Cloudmaxxing sucks Nvidia into dangerous game

https://www.reuters.com/commentary/breakingviews/cloudmaxxing-sucks-nvidia-into-dangerous-game-20...
1•mapping365•3m ago•0 comments

Chat never deletes – video evidence

https://discuss.ai.google.dev/t/the-google-ai-overview-itself-describes-google-ai-studio-s-chat-d...
1•Bitu79•4m ago•0 comments

T-Mobile outage, no updates from the company

https://old.reddit.com/r/tmobile/comments/1v8bw52/t_mobile_outage/
2•darth_avocado•7m ago•0 comments

Using AI with a Critical Eye

https://www.loserbydesign.com/new-page-3
1•yehiaabdelm•8m ago•0 comments

Solving Fermat: Andrew Wiles

https://www.pbs.org/wgbh/nova/proof/wiles.html
1•1970-01-01•11m ago•0 comments

The Myth of the 'Waterfall' SDLC

http://www.bawiki.com/wiki/Waterfall.html
1•fanf2•12m ago•0 comments

Show HN: SilkDrop – MilkDrop port for web with live editor

https://silkdrop.vercel.app/
1•usernameis42•13m ago•0 comments

Experts warn current Starship heat shield tech is a "dead end" for rapid reuse

https://arstechnica.com/space/2026/07/despite-recent-successes-rapid-reuse-of-starship-remains-a-...
1•greedo•14m ago•1 comments

Softmax Approximation for FPGAs Using Taylor Series and Pade Approximants

https://leetarxiv.substack.com/p/approximating-softmax-for-fpgas
1•birdculture•14m ago•0 comments

Pivotick is network graph library to facilitate pivoting

https://pivotick.github.io/Pivotick/
1•adulau•14m ago•0 comments

Show HN: Latest Q2 AI SaaS Trends Report

https://relvehq.com/ai-reports/2026-q2-the-state-of-ai-for-saas-companies-fullview
1•hamza_ali_shah•17m ago•1 comments

README, not

https://blog.yossarian.net/2026/07/16/README-not
4•lr0•18m ago•2 comments

Sam Altman says we are in the singularity: 'This is the moment'

https://www.businessinsider.com/sam-altman-openai-the-singularity-agi-prediction-anthropic-nvidia...
2•doener•19m ago•3 comments

Nvidia in Talks with OpenAI to Guarantee $250B Financing for Data Center

https://www.wsj.com/tech/ai/nvidia-in-talks-with-openai-to-guarantee-250-billion-financing-for-da...
1•u1hcw9nx•19m ago•0 comments

Claude shared chats and Artifacts may have ended up on Google

https://techcrunch.com/2026/07/27/psa-your-claude-shared-chats-and-artifacts-may-have-ended-up-on...
3•speckx•26m ago•0 comments

Waymo crashes 1/3 as much as a human driver, says IIHS – with some caveats

https://electrek.co/2026/07/25/waymo-is-2-3-safer-than-a-human-driver-says-iihs-with-some-caveats/
2•Bender•26m ago•0 comments

Octane – compiled and faster React from creator of Inferno

https://octanejs.dev
1•swe_dima•26m ago•0 comments

E-bike bans in schools highlight the growing debate over freedom vs. safety

https://electrek.co/2026/07/27/e-bike-bans-in-schools-highlight-the-growing-debate-over-freedom-v...
1•Bender•29m ago•0 comments

I mapped how 140 governments legally treat Bitcoin

https://thebitcoinact.xyz/bitcoin-legal-map
1•The_Bitcoin_Act•30m ago•0 comments

Show HN: Nexmy – 100% offline Android finance tracker with local AI

https://nexmy.app/
1•BlackSharkDev•33m ago•0 comments

Show HN: A board game with opponents trained by self-play

https://mighty840.itch.io/samudra-manthan
1•sharang33•34m ago•0 comments

Show HN: Full complex text shaping and rendering on ESP32 with 320KB usable RAM

https://github.com/waruyama/flattype-cyd-demo
2•jansan•35m ago•1 comments

A political compass for AI where anyone can add their stance

https://theaicompass.io/?preview=default
1•uncommoncrawl•36m ago•0 comments