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!

Fingerprinting Network Honeypots with Weighted Behavioral Scoring Engine

https://meetcyber.net/fingerprinting-network-honeypots-with-weighted-behavioral-scoring-engine-86...
1•ls1911•21s ago•0 comments

Claude Code from Source

https://claude-code-from-source.com/
1•pykello•29s ago•0 comments

SEC Issues "Innovation Exemption" to Facilitate Trading of Tokenized NMS Stock

https://www.sec.gov/newsroom/press-releases/2026-90-sec-issues-innovation-exemption-facilitate-tr...
1•BiraIgnacio•1m ago•0 comments

Hackers Used Anthropic's Claude to Break into OpenAI

https://www.wsj.com/tech/ai/hackers-used-anthropics-claude-to-break-into-openai-b40ba883
1•impish9208•2m ago•1 comments

Jev means structured output is interesting again

https://www.seangoedecke.com/jev-means-structured-output-is-interesting-again/
1•iacguy•3m ago•0 comments

Hypercomb – AI open software platform

https://hypercomb.io
2•jwizestackz•5m ago•0 comments

Type Declaration Syntax

https://citrons.xyz/journal/2026-09-09
1•birdculture•8m ago•0 comments

Telstra outage: The night a network decided the year was 2006

https://www.netnod.se/blog/telstra-outage-night-network-decided-year-was-2006
1•TMWNN•9m ago•0 comments

Goose: 1.16x faster than C++ and 1.12x than safe Rust, while memory safe

https://github.com/aardappel/goose/tree/master
3•bobbydigitales•9m ago•0 comments

Today we're releasing Helix 2.5

https://twitter.com/Figure_robot/status/2100657350952779925
2•MrBuddyCasino•12m ago•0 comments

AI agents can modify themselves without humans telling them to do so

https://www.theregister.com/security/2026/09/16/ai-agents-can-modify-themselves-without-humans-te...
1•myth_drannon•21m ago•0 comments

When A.I. Becomes an Enemy [video]

https://www.youtube.com/watch?v=wzgkc6Iegx8
1•danielmorozoff•25m ago•1 comments

Lakera – Test your AI hacking skills

https://play.lakera.ai/agent-breaker
2•nmarinov•36m ago•0 comments

From Operations to a Robot Arm

https://huggingface.co/blog/TheMuz/from-operations-to-a-robot-arm
2•gmays•38m ago•0 comments

GrapheneOS accuses Google of gatekeeping Android 17 features and security fixes

https://www.androidauthority.com/grapheneos-android-17-qpr1-security-patches-comments-3712218/
10•vilasa•48m ago•0 comments

Apprentice: A Slim, Extensible Coding Harness (Written in Common Lisp)

https://github.com/skarnati20/apprentice
4•skarnati20•49m ago•2 comments

Getting Outbound Email to Work on DigitalOcean

https://mailfully.com/blog/digitalocean-blocks-smtp-ports-ses-2587
2•mailfully•51m ago•0 comments

Anthropic says Claude now leads a quarter of work building its next AI models

https://www.businesstimes.com.sg/companies-markets/telcos-media-tech/anthropic-says-claude-now-le...
4•dr_scully•51m ago•1 comments

Mini-Jev – typesafe's Jev implemented on top of an LLM locally

https://github.com/r-ms/mini-jev
3•phyrex•52m ago•0 comments

Inside Microsoft and OpenAI, Worry About Damaging the Publishing Industry

https://www.nytimes.com/2026/09/17/technology/microsoft-openai-publishing-industry.html
2•0in•56m ago•0 comments

Richard Feynman – The World from another point of view [video]

https://www.youtube.com/watch?v=GNhlNSLQAFE
2•binyu•57m ago•0 comments

Talk to JEV

https://jev-grug-chat.mkotlikov.chatgpt.site
3•mkotlikov•58m ago•2 comments

Muse for macOS

https://ai.meta.com/muse/download/
3•mfiguiere•58m ago•0 comments

Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash

https://cactuscompute.com/needle
3•HenryNdubuaku•1h ago•0 comments

Where Awareness Is Not the Problem

https://medium.com/@gurvinder372/article-20-where-awareness-is-not-the-problem-5b9d03c925f2
2•gps372•1h ago•0 comments

Microsoft exec called AI scraping 'the largest theft of labor in human

https://techcrunch.com/2026/09/17/microsoft-exec-called-ai-scraping-the-largest-theft-of-labor-in...
8•sbulaev•1h ago•1 comments

NASA satellite discovers a new crater on the moon bigger than the Colosseum

https://www.cbc.ca/news/science/new-crater-moon-9.7348242
2•BiraIgnacio•1h ago•1 comments

Forget doomsday: The AI hacking crisis is here

https://www.axios.com/2026/09/17/ai-cyber-doomsday-hacking-threats
2•1vuio0pswjnm7•1h ago•1 comments

Base's B20 Bet Is Growing – Could the Next Billion-Dollar Project Be Built Here?

https://predx-article.fika.bar/base-s-b20-bet-is-getting-bigger-could-the-next-billion-do-01M2PW9...
2•joeymabia1•1h ago•1 comments

The FAA's plan to fix air traffic? $875M worth of AI

https://techcrunch.com/2026/09/17/the-faas-plan-to-fix-air-traffic-875-million-worth-of-ai/
12•danso•1h ago•0 comments