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!

Linkits moved to a dark theme – what's your opinion?

https://linkits.xyz
1•max_cm•1m ago•0 comments

Use plain old REST instead of MCP

https://imbue.com/product/latchkey/
1•Wuzzy•2m ago•0 comments

Xbox Replaces Head of Gaming, Xbox History, Whither Xbox

https://stratechery.com/2026/xbox-replaces-head-of-gaming-xbox-history-whither-xbox/
1•vinnyglennon•4m ago•0 comments

Amid crackdown on Chinese students, one US university appears to block them

https://www.theguardian.com/us-news/2026/feb/20/chinese-university-student-trump-crackdown
1•pseudalopex•5m ago•0 comments

Show HN: Vis Pro – A Formula-Based Workout Program Editor

https://vis.fitness/pro
1•strongpigeon•6m ago•0 comments

What Is Driving Change in the Net Carbon Budget in Forest Soils?

https://onlinelibrary.wiley.com/doi/10.1111/gcb.70729
1•PaulHoule•7m ago•0 comments

Show HN: My iPhone notifies me about cloud outages before they blow up here

https://apps.apple.com/us/app/pingy-cloud-outage-alerts/id6759363978
1•Sayuj01•8m ago•0 comments

Why AI hallucinations make automated SoC triage dangerous

https://thehgtech.com/articles/ai-soc-analyst-future-2026.html
1•thehgtech•8m ago•1 comments

Red Dwarf creator Rob Grant has died

https://www.beyondthejoke.co.uk/content/17193/red-dwarf-rob-grant
2•nephihaha•9m ago•0 comments

Something for My Friends and Colleagues

https://stackresearch.org/blog/
1•dnmacon•9m ago•0 comments

How LDAP Works

https://growingswe.com/blog/ldap
1•PROTechThor•10m ago•0 comments

Show HN: NutriAssess – AI body composition for nutritionists

https://nutri-assess.vercel.app
1•caffaroai•11m ago•0 comments

Show HN: Interactive Resume/CV Game

https://breezko.dev
1•breezk0•14m ago•0 comments

NASA announces change to its Moon landing plans

https://www.bbc.com/news/articles/c6270030neyo
3•colinprince•15m ago•0 comments

Anthropic says it 'cannot in good conscience' allow Pentagon to remove AI checks

https://www.theguardian.com/us-news/2026/feb/26/anthropic-pentagon-claude
3•devonnull•15m ago•0 comments

Myrient Is Shutting Down

https://www.timeextension.com/news/2026/02/this-is-what-ai-and-greed-does-video-game-preservation...
1•kn0where•16m ago•0 comments

From 60 APM to 60 Agents: A Reluctant Convert's Guide to Agentic Workflows

https://github.com/chao2zhang/chao2zhang/blob/main/blog/apm-for-software-engineers.md
2•chao2zhang2•17m ago•0 comments

Ask HN: Is Claude Code slow for you as well? It thinks a lot

1•Gooblebrai•17m ago•0 comments

Show HN: Roxlit – Open-source launcher that connects AI tools to Roblox Studio

https://github.com/Roxlit/installer
1•juanzab•18m ago•1 comments

AI Won't Automatically Accelerate Clinical Trials

https://www.asimov.press/p/ai-clinical-trials
1•mailyk•19m ago•0 comments

Show HN: I Built AGI on GitHub Actions

https://github.com/statespersons/AGI
2•Alexander9•20m ago•0 comments

Confused about how to keep up with the pace they themselves created

https://lucumr.pocoo.org/2026/2/13/the-final-bottleneck/
1•hypertexthero•20m ago•0 comments

Congress finds data brokers cost consumers tens of billions of dollars

https://themarkup.org/privacy/2026/02/27/following-markup-investigation-congress-finds-data-broke...
3•billybuckwheat•23m ago•0 comments

The Ownership Problem: Why We Get Territorial and What to Do About It

https://www.thecaringtechie.com/p/how-to-handle-territorial-behavior
2•rbanffy•24m ago•0 comments

Show HN: Open‑Source Capital Formation OS (Postgres and AI Agents)

https://github.com/agio711/Riserva-Fly
1•tgiordano•25m ago•0 comments

Suicide forum in breach of Online Safety Act after failing to block UK users

https://www.theguardian.com/technology/2026/feb/27/suicide-forum-in-breach-of-online-safety-act-a...
1•chrisjj•26m ago•1 comments

AI Agents to validate your idea

https://www.founderspace.work
1•VladCovaci•26m ago•0 comments

Using Reticulum, open-source, using decentralized parallel networking stack [video]

https://www.youtube.com/watch?v=XTnYVh7K6xQ
1•PeteZa•26m ago•1 comments

A Day in the Life of an Enshittificator

https://www.youtube.com/watch?v=T4Upf_B9RLQ
3•adipid•27m ago•0 comments

Leaving Google has actively improved my life

https://pseudosingleton.com/leaving-google-improved-my-life/
3•speckx•27m ago•0 comments