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!

UC Berkeley math community left at crossroads in wake of Navier-Stokes proof

https://www.dailycal.org/news/campus/academics/uc-berkeley-math-community-left-at-crossroads-in-w...
1•ibobev•3s ago•0 comments

Show HN: REW – Reproduce failed CI builds locally, even offline

https://github.com/rewtools/rew
1•slambek•15s ago•0 comments

Do minor curl vulnerabilities in the open

https://daniel.haxx.se/blog/2026/10/20/do-minor-curl-vulnerabilities-in-the-open/
2•aray07•1m ago•0 comments

Devless: Turning GitHub Issues into Pull Requests with Amazon Bedrock

https://medium.com/@butkovic/devless-turning-github-issues-into-pull-requests-with-amazon-bedrock...
1•typek_pb•1m ago•0 comments

Show HN: Koody for Business – AI bookkeeping for people who aren't accountants

https://koody.com/business
1•Halimah•2m ago•0 comments

AWS CFO joked about the financial toll of AI. An internal recording reveals why

https://www.businessinsider.com/amazon-220-billion-ai-bet-data-centers-spending-challenges-2026-10
1•theonionspeaks•3m ago•0 comments

llm-d v1.0: State-of-the-art inference

https://llm-d.ai/blog/llm-d-v1.0-state-of-the-art-inference-ready-for-day-2
1•iLuddite•4m ago•0 comments

AI models told me not to start the company

https://redgeoff.com/posts/dont-start-the-company/
2•redgeoff•4m ago•0 comments

Show HN: Worklicant – Lightweight ATS. Pay per Vacancy. AI Enabled

https://worklicant.com/
1•azyzz228•4m ago•0 comments

FedEx truck robbed of trading cards worth over $963,000 outside PSA headquarters

https://www.nytimes.com/athletic/7705932/2026/10/19/psa-cards-fedex-robbery-sports-pokemon/
2•hampelm•5m ago•0 comments

Countercheck – re-runs your tests when an AI agent says "done"

https://github.com/datacrate360/countercheck
1•srikanthpiniset•5m ago•0 comments

Norm Brandinger on the XERJ Corpus Hub

https://hub.xerj.org/contributors/NormB
1•NormB•7m ago•0 comments

SSH Keys on macOS with Touch ID

https://nmattia.com/posts/2026-10-19-setting-up-ssh-keys-touch-id/
2•birdculture•7m ago•1 comments

Building Persistent Agents

https://twitter.com/omarsar0/status/2112573314631708736
2•pretext•9m ago•0 comments

Voxtral 3

https://mistral.ai/news/voxtral-3/
3•ilreb•9m ago•0 comments

The number of monthly active Mastodon users is mostly going down

https://birchtree.me/blog/why-does-this-chart-just-go-down/
3•cxr•10m ago•0 comments

Making a VGA Driver in SystemVerilog

https://lukaswerner.com/post/2026-10-20@bottom-up-vga
3•derHackerman•11m ago•0 comments

Why scraping isn't enough for AI agents and how DNS-verified profiles could help

https://github.com/skindotorg/foundation/blob/main/publishing-for-ai-agents.md
2•ralphdelblanco•12m ago•0 comments

Ask HN: As developers from low-income countries,how to cope with AI replacement?

2•abitcynicalabou•12m ago•3 comments

Sixteen Years After Deepwater Horizon, Deep Sea Life Shows Few Signs of Recovery

https://e360.yale.edu/digest/deepwater-horizon-deep-sea-recovery
2•speckx•12m ago•0 comments

Add Honest Achmed's root certificate

https://bugzilla.mozilla.org/show_bug.cgi?id=647959
2•sippingabonedry•16m ago•0 comments

Show HN: Agent Archive – Session Handoffs and Backups for Claude Code and Codex

https://github.com/wangjohn/agent-archive
1•johnjwang•17m ago•0 comments

Effective Development (2013) [video]

https://www.youtube.com/watch?v=1luv3WpSmwM
3•tosh•18m ago•0 comments

I Took a Shower with My Personal Assistant

https://spicermatthews.com/blog/i-took-a-shower-with-my-personal-assistant/
1•cloudmanic•19m ago•0 comments

Roll your own, fork the rest

https://www.nijho.lt/post/roll-your-own-fork-the-rest/
1•basnijholt•19m ago•0 comments

I used celestial vision navigation to solve a mystery place in Elite:Dangerous

https://alphapixeldev.com/celestial-vision-navigation-elite-dangerous-dark-wheel-station/
2•XenonofArcticus•21m ago•1 comments

24x faster Rust compilation with rust-analyzer

https://github.com/indexable-inc/ra-jit
3•andrewgazelka•21m ago•0 comments

Build a Discord FAQ and Feedback Bot with Google Sheets

https://quickchat.ai/post/discord-community-management-bot
1•piotrgrudzien•23m ago•0 comments

Steam Users Beg for "No AI" Filter as Vibecoders Flood Next Fest

https://www.ign.com/articles/steam-fans-are-begging-for-a-no-ai-filter-as-steam-next-fest-is-fill...
6•4gateftw•23m ago•0 comments

Show HN: BodyCommit – movement breaks in VS Code while your agent works

https://marketplace.visualstudio.com/items?itemName=bodycommit.bodycommit
1•triandyg•24m ago•0 comments