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!

Ask HN: Would you play AI developed games?

1•Monotoko•44s ago•0 comments

Apple files lawsuit accusing OpenAI of stealing trade secrets

https://apnews.com/article/apple-openai-lawsuit-trade-secrets-theft-6fff8833f5889d86406b89a02dd8fb16
4•root-parent•2m ago•0 comments

When AWS, Azure, or GCP Becomes the Competition (2019)

https://www.gkogan.co/big-cloud/
1•downbad_•2m ago•0 comments

AVTensor: A High-Performance Rust Media Decoder for Training Pipelines

https://runwayml.com/news/avtensor-a-high-performance-rust-media-decoder-for-training-pipelines
1•nielka•4m ago•0 comments

Minnesota daycare owner pleads guilty to 2 fraud charges

https://www.cbsnews.com/minnesota/news/fahima-mahamud-fraud-guilty-plea/
1•donsupreme•4m ago•0 comments

Apple accuses OpenAI of using stolen trade secrets to create its AI gadgets

https://www.cnn.com/2026/07/10/tech/apple-openai-devices-lawsuit
5•haunter•4m ago•0 comments

Pirate Site Blocking Is Legally Impossible in Bulgaria, Supreme Court Ruled

https://torrentfreak.com/pirate-site-blocking-is-legally-impossible-in-bulgaria-supreme-court-ruled/
2•thisislife2•4m ago•0 comments

Prismata: Confining Cross-Site Prompt Injection in Web Agents

https://arxiv.org/abs/2607.08147
1•zhinit•6m ago•0 comments

Show HN: Runko – monorepo platform on Git, with stacked review and workspaces

https://github.com/saxocellphone/Runko
1•saxocellphone•6m ago•0 comments

GPT-5.6-Sol just accidentally deleted almost ALL of my Mac's files

https://twitter.com/mattshumer_/status/2075657271401390161
1•TimCTRL•6m ago•0 comments

Agentic test processes, LLM benchmarks, notes on agentic coding from Galapagos

https://danluu.com/ai-coding/
1•FabHK•8m ago•0 comments

Find Unused Dependencies in Pyproject.toml

https://github.com/lukehsiao/pyproject-udeps
1•lwhsiao•8m ago•0 comments

Apple Is Suing OpenAI for Allegedly Stealing Hardware Secrets

https://www.wired.com/story/apple-sues-openai-allegedly-stealing-ip-hardware/
2•cdrnsf•9m ago•0 comments

Is the Post-it video fair and balanced? – a claim-check with live elections

https://github.com/masiarek/YAML/blob/master/method_comparisons/postit_rcv_example/postit_video_f...
1•masiarek•10m ago•0 comments

Local-first agent governance: keeping an AI agent contained

https://vektorgeist.com/blog/local-first-agent-governance
1•VektorGeist•10m ago•0 comments

Is that bot a Pomeranian or a wolf – and who to sue when it 'bites'?

https://news.harvard.edu/gazette/story/2026/07/is-that-bot-a-pomeranian-or-a-wolf-and-who-to-sue-...
1•brassard•11m ago•0 comments

Frontier coding agents haven't stopped lying about their work – I measured it

https://trustysquire.ai/blog/the-last-mile-is-a-signup-form
1•lunchboxfortwo•16m ago•1 comments

Stripe, Google, Canva, Cloudflare and Higgsfield Are Selling

https://www.saastr.com/how-stripe-google-canva-cloudflare-and-higgsfield-are-actually-selling-in-...
2•jenthoven•17m ago•0 comments

GPT-5.6, Grok 4.5, Claude, and Muse Spark build the same 4 apps

https://www.tryai.dev/blog/gpt-5.6-build-off-12-models
3•hershyb_•17m ago•0 comments

How to Install a Mini Split Air Conditioner Complete Step-by-Step Guide [video]

https://www.youtube.com/watch?v=AQ4EYHNCDzg
1•Bender•19m ago•0 comments

Meta's Teen Safety Case Just Became a $1.4T Existential Threat

https://gizmodo.com/metas-teen-safety-case-just-became-a-1-4-trillion-existential-threat-2000782306
2•dotcoma•20m ago•1 comments

Apple Sues OpenAI for Stealing Trade Secrets to Build AI Hardware

https://www.macrumors.com/2026/07/10/apple-sues-openai/
11•stock_toaster•22m ago•1 comments

The zero-cost fallacy: open-source software in the agentic era

https://www.thoughtworks.com/insights/blog/open-source/zero-cost-fallacy-open-source-agentic-era
2•backlit4034•24m ago•0 comments

GhostLock, a stack-UAF that has existed in ALL Linux distributions for 15 years

https://nebusec.ai/research/ionstack-part-2/
2•djfergus•26m ago•0 comments

Apple Sues OpenAI

https://www.bloomberg.com/news/articles/2026-07-10/apple-sues-openai-for-trade-secret-theft-in-bl...
10•allending•26m ago•1 comments

Two Database Migrations and a Divorce

https://usefathom.com/blog/two-database-migrations-and-a-divorce
3•JsonCameron•28m ago•0 comments

Migrating a production AI agent to GPT 5.6

https://ploy.ai/blog/migrating-a-production-ai-agent-to-gpt-5-6
5•brryant•29m ago•0 comments

Staying in the Game

https://toni.org/2026/07/10/staying-in-the-game/
1•joshbetz•29m ago•0 comments

Apple sues OpenAI, two former employees for trade secrets theft

https://www.reuters.com/legal/litigation/apple-sues-openai-alleging-misappropriation-trade-secret...
14•coloneltcb•30m ago•0 comments

Outcry as Meta lets users make AI images from public Instagram profile pics

https://www.bbc.com/news/articles/cp9lee19y1yo
4•doener•30m ago•2 comments