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!

A.I. Is Giving You a Personalized Internet, but You Have No Say in It

https://www.nytimes.com/2026/02/10/technology/personaltech/ai-google-meta-opt-out.html
1•bookofjoe•1m ago•1 comments

I Sold Out for $20 a Month and All I Got Was This Perfectly Generated Terraform

https://matduggan.com/i-sold-out-for-200-a-month-and-all-i-got-was-this-perfectly-generated-terra...
1•Kerrick•1m ago•0 comments

Show HN: 8gent – Mobile first workflow automation for iOS

https://www.8gent.tech/en
1•buchmannflorian•2m ago•0 comments

DefenceNet -A real-time phishing detection to stop scam links before users click

https://www.defencenet.ai/blogs/when-trust-becomes-a-weapon-understanding-smishing-attacks-and-ho...
1•vivekdatacove•3m ago•1 comments

CERN rebuilt the original browser from 1989

https://worldwideweb.cern.ch
2•tylerdane•4m ago•1 comments

Judge scolds Zuckerberg's team for wearing Meta glasses to social media trial

https://www.cbsnews.com/news/meta-trial-mark-zuckerberg-ai-glasses/
1•ColinWright•4m ago•0 comments

Optimize_anything: A Universal API for Optimizing Any Text Parameter

https://gepa-ai.github.io/gepa/blog/2026/02/18/introducing-optimize-anything/
1•gmays•7m ago•0 comments

Why don't Indians read for pleasure?

https://www.theculturecafe.in/p/why-dont-indians-read-for-pleasure
1•herbertl•8m ago•0 comments

Donut Lab – "I Donut Believe"

https://idonutbelieve.com/
1•twalichiewicz•8m ago•0 comments

Show HN: OpenClaw Live2D – Open-source AI companion with Live2D avatar

https://github.com/Singularity-Engine/openclaw-live2d
1•RuipengCao•9m ago•0 comments

Theia: Hold Your LLM Accountable

https://chromewebstore.google.com/detail/theia/gofhbbagfnkjhddlncmmlkcihgdpjncc
1•plushywushy•10m ago•1 comments

Urban Astrophotography

https://www.rodiger.io/p/urban-astrophotography
1•rodiger•11m ago•0 comments

OpenAI will reportedly release an AI-powered smart speaker in 2027

https://www.engadget.com/ai/openai-will-reportedly-release-an-ai-powered-smart-speaker-in-2027-17...
1•foxfired•12m ago•0 comments

From 'buy America' to 'bye America', Wall Street exodus gathers pace

https://www.reuters.com/business/buy-america-bye-america-wall-street-exodus-gathers-pace-2026-02-20/
2•Bondi_Blue•13m ago•0 comments

EventBus: Events for Android

https://greenrobot.org/eventbus/
1•elianodiarra•13m ago•0 comments

Model is 6'2" wearing size Medium

https://pilk.website/2/model-is-6-2-wearing-size-medium
2•duck•18m ago•1 comments

Paediatricians' blood used to make new treatments for RSV and colds

https://www.newscientist.com/article/2516079-paediatricians-blood-used-to-make-new-treatments-for...
1•ColinWright•18m ago•0 comments

Knife edge getting dull time lapse [video]

https://www.youtube.com/watch?v=QetC2QGr6as
2•dvh•19m ago•0 comments

ΛProlog: Logic programming in higher-order logic

https://www.lix.polytechnique.fr/Labo/Dale.Miller/lProlog/
1•ux266478•21m ago•0 comments

Show HN: How Amazon Pricing Algorithms Work

https://www.pricedropnotifications.com/algorithms.html
2•HNFINDS•24m ago•0 comments

Render and stream large scale 3D Gaussian Splats with Spark 2.0 Preview

https://twitter.com/sparkjsdev/status/2024969164138729632
8•dmarcos•24m ago•0 comments

Show HN: FPGA prime finder – discovered a 1,123-digit Proth prime

https://github.com/0xdeadbeefnetwork/Optimus_Prime
1•sickthecat•25m ago•0 comments

Missing Novell server discovered after four years

https://www.theregister.com/2001/04/12/missing_novell_server_discovered_after/
1•jerdman76•25m ago•0 comments

Xbox chief Phil Spencer is leaving Microsoft

https://www.theverge.com/news/882241/microsoft-phil-spencer-xbox-leaving-retirement
1•cebert•26m ago•0 comments

Wine 11.3 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://www.winehq.org/announce/11.3
1•neustradamus•26m ago•0 comments

GitHub-ospo – Helping open source program offices get started

https://github.com/github/github-ospo
1•themaxdavitt•27m ago•1 comments

The Conspiracy Against High Temperature Sampling

https://gist.github.com/Hellisotherpeople/71ba712f9f899adcb08b94bce20d5397
2•theyoungsir•27m ago•0 comments

How ‘Pachelbel's Canon' Conquered Classical Music

https://www.wsj.com/opinion/free-expression/how-pachelbels-canon-conquered-classical-music-7f23e46f
1•RickJWagner•28m ago•0 comments

What If LLMs Could See Trust Boundaries?

https://rockwotj.com/blog/llm-trust-boundaries/
1•rockwotj•30m ago•0 comments

Across the US, people are dismantling and destroying Flock surveillance cameras

https://www.bloodinthemachine.com/p/across-the-us-people-are-dismantling
6•latexr•33m ago•1 comments