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!

TurboKV: Insanely fast Rust key-value store

https://github.com/kingroryg/turbokv
1•rgbimbochamp•5m ago•0 comments

PureSpace – Lightweight macOS cleaner and uninstaller

https://www.haoqibit.com/puremac
1•Popang•10m ago•0 comments

PastePal – Clipboard manager for Mac with iCloud sync

https://www.haoqibit.com/pastepal
1•Popang•11m ago•0 comments

Our decision on Cursor following its acquisition by SpaceX

https://twitter.com/OpenAI/status/2093515564786540695
3•qainsights•11m ago•0 comments

Landlady to 9/11 hijackers reveals their links to alleged Saudi spy

https://www.bbc.com/news/articles/c99dvm39mreo
1•1659447091•12m ago•0 comments

"We quit the CDC last year. The problems we protested remain"

https://www.statnews.com/2026/08/28/cdc-protest-resignations-one-year-later-houry-jernigan-daskal...
1•EA-3167•16m ago•0 comments

ASCII City: Traffic and Detail Update [video]

https://www.youtube.com/watch?v=DSRooHo_HSI
2•guiambros•18m ago•0 comments

Start a Blog

https://guzey.com/personal/why-have-a-blog/
2•bilsbie•19m ago•1 comments

Search songs based on feelings or images

https://vibemax.streamlit.app
1•sushmeywork•20m ago•1 comments

Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agents

https://arxiv.org/abs/2608.27141
1•sbulaev•22m ago•0 comments

JDK 28: Structured concurrency proposed finalised

https://openjdk.org/jeps/8389757
1•alnlkjlknlkn•25m ago•0 comments

It's One Parking Spot in New York City. What Could It Cost, $250k?

https://www.nytimes.com/2026/08/25/nyregion/private-parking-spots-new-york-city.html
1•thelastgallon•29m ago•1 comments

YouTube Auto Dubbing, Explained

https://blog.youtube/creator-and-artist-stories/youtube-auto-dubbing-explained/
1•cisc•30m ago•0 comments

OpenAI and Anthropic are ruining San Francisco

https://www.sfgate.com/local/article/open-ai-anthropic-ruining-sf-22404657.php?link_source=ta_fir...
4•catchmeifyoucan•38m ago•1 comments

Kumander Linux – A Linux Distro with a Windows 7 Desktop

https://www.kumander.org/
3•linuxkernal•41m ago•0 comments

Our decision on Cursor following its acquisition by SpaceX

https://openai.com/index/our-decision-on-cursor-following-its-acquisition-by-spacex/
44•meetpateltech•41m ago•10 comments

Increased Errors for Durable Objects in the Hong Kong Region – Cloudflare Status

https://www.cloudflarestatus.com/incidents/mlr8smgngv5h
1•kyisaiah47•46m ago•0 comments

Trump announces new US oil agreement with Venezuela

https://www.theguardian.com/us-news/2026/aug/28/trump-venezuela-oil-agreement
4•TheAlchemist•53m ago•0 comments

'Devastating' rush for critical minerals has little to do with green energy

https://news.mongabay.com/short-article/2026/08/devastating-rush-for-critical-minerals-has-little...
1•littlexsparkee•56m ago•0 comments

The IBM PC, Part 2: Tsunami

https://technicshistory.com/2026/08/29/the-ibm-pc-part-2-tsunami/
1•cfmcdonald•59m ago•0 comments

StemDeck, a free, open-source and local AI stem separator

https://github.com/stemdeckapp/stemdeck
21•thclpr•1h ago•5 comments

Tech tries a new message: You'd love data centers if China wasn't making you hat

https://www.businessinsider.com/china-data-center-ai-backlash-tech-messaging-2026-8
3•newsomix9xl•1h ago•5 comments

One prompt, five days, and an AI agent that refused to certify itself

https://github.com/Framework-Drift/governed-pass
1•ElvishSteel•1h ago•0 comments

Edcapit Founder Oleh Podobied and Jenny Li Discuss the Future of EdTech

https://www.edcapit.com/2026/08/17/future-of-edtech-silicon-valley-interview/
1•edcapit_inc•1h ago•0 comments

Anti-AI Populism is Reshaping American Politics

https://www.motherjones.com/politics/2026/08/anti-ai-populism-is-reshaping-american-politics/
4•newsomix9xl•1h ago•1 comments

Show HN: ArchLex: a small OSS language for AWS, GCP, and Kubernetes diagrams

https://archlex.dev/
1•bairess•1h ago•0 comments

AI made the boring work visible. Cut the work, not the people

https://jeffgothelf.com/blog/ai-made-the-boring-work-visible-cut-the-work-not-the-people/
5•fagnerbrack•1h ago•1 comments

Ask HN: If AI disappeared today, how much would you ask for in salary to work?

2•senor_digimon•1h ago•0 comments

Results for LLM Usage in Debian

https://lists.debian.org/debian-vote/2026/08/msg00360.html
4•baggy_trough•1h ago•1 comments

X claims it found a Chinese bot farm posting anti-AI data center sentiments

https://www.engadget.com/2246140/x-chinese-bot-farm-anti-ai-data-center-sentiments/
6•newsomix9xl•1h ago•1 comments