frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo ago

Comments

zljdanceholic•9mo 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!

Show HN: OffKit – an iOS app blocker that adds friction

https://apps.apple.com/us/app/offkit-app-blocker/id6758268708
1•nickfthedev•1m ago•0 comments

LDOS: Toward a Learning-Directed Operating System

https://www.sigops.org/2026/ldos-toward-a-learning-directed-operating-system/
1•matt_d•3m ago•0 comments

PromptSpy ushers in the era of Android threats using GenAI

https://www.welivesecurity.com/en/eset-research/promptspy-ushers-in-era-android-threats-using-genai/
1•Cyphase•7m ago•1 comments

Colorado moves age checks from websites to operating systems

https://www.biometricupdate.com/202602/colorado-moves-age-checks-from-websites-to-operating-systems
5•iamnothere•16m ago•0 comments

Pb-ext: Enhanced PocketBase server with monitoring, logging and API docs

https://github.com/magooney-loon/pb-ext
1•thunderbong•21m ago•0 comments

Ruby Is the Best Language for Building AI Apps

https://paolino.me/ruby-is-the-best-language-for-ai-apps/
3•thunderbong•30m ago•0 comments

Back to textbooks: Denmark rolls back digital learning

https://www.france24.com/en/tv-shows/focus/20260106-back-to-textbooks-denmark-rolls-back-digital-...
1•talonx•31m ago•0 comments

Show HN: Free tool to migrate OpenAI Assistants

https://migratetoresponses.com
1•adkfusion•31m ago•0 comments

A Galaxy Composed Almost of Dark Matter Has Been Confirmed

https://www.wired.com/story/a-galaxy-composed-almost-entirely-of-dark-matter-has-been-confirmed/
1•taubek•32m ago•0 comments

Python creator Guido van Rossum asks Elon Musk what SpaceX uses for coding

https://twitter.com/elonmusk/status/2024388903869043061
1•MilnerRoute•33m ago•0 comments

Infographic of the Navy and Air Force build up nearby Iran

https://twitter.com/sentdefender/status/2024929210867839399
1•nomilk•36m ago•0 comments

Acme Weather, from the Creators of Dark Sky

https://apps.apple.com/us/app/acme-weather/id6742032583
1•gammarator•41m ago•0 comments

Free Shadcn/UI patterns for faster UI delivery

https://reui.io
2•shuxer0205•42m ago•1 comments

Show HN: Fix-my-mic – stop macOS from switching to AirPods mic every connection

https://github.com/yigitkonur/cli-disablemic
2•yigitkonur35•43m ago•0 comments

Formula: A VST for coding custom DSP inside your DAW

https://github.com/soundspear/formula
1•peteforde•45m ago•0 comments

A 3000W Water-Cooled Power Supply (With GAN and Sic) [video]

https://www.youtube.com/watch?v=da9GwXX-0Zs
1•dmmalam•46m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•iskiifanhaaw•51m ago•0 comments

The Rolling Layoffs at Jack Dorsey's Block

https://www.wired.com/story/inside-rolling-layoffs-jack-dorsey-block/
4•Pasanpr•1h ago•0 comments

Ask HN: How would you distribute a privacy-first AI chat for teams?

1•shreyaspapi•1h ago•0 comments

Enable automatic coverage workflow setup

1•nishiohiroshi•1h ago•0 comments

Show HN: Resilient OpenClaw Browser Relay – Survives WS Drops and MV3 Restarts

https://github.com/Unayung/openclaw-browser-relay
1•unayung•1h ago•0 comments

Show HN: Stop Pasting Credentials in Slack

https://www.usevaultlink.com/
2•ankurbhugra•1h ago•0 comments

Show HN: Skill Check CLI for your skill.md

https://github.com/thedaviddias/skill-check
1•thedaviddias•1h ago•0 comments

Show HN: WebhookStream – Receive, relay, send and debug webhooks from 1 platform

https://webhookstream.com
1•fallenranger•1h ago•1 comments

The political effects of X's feed algorithm

https://www.nature.com/articles/s41586-026-10098-2
3•iamflimflam1•1h ago•1 comments

Show HN: Mukoko weather – AI-powered weather intelligence built for Zimbabwe

https://weather.mukoko.com/harare
1•bryanfawcett•1h ago•0 comments

AstianGO Search API

https://astiango.com/developers/docs
1•ponchale•1h ago•1 comments

Show HN: WP2TXT – Wikipedia dump text extractor with category/section filtering

https://github.com/yohasebe/wp2txt
1•yohasebe•1h ago•0 comments

Show HN: Filepack: a fast SHASUM/SFV/PGP alternative using BLAKE3

https://github.com/casey/filepack
1•rodarmor•1h ago•0 comments

Show HN: AI Code Review Agent – Automated PR Reviews with Google ADK and Gemini

https://github.com/mkantwala/AI-Code-Review-Agent
1•tme15b014•1h ago•0 comments