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•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!

Linus Torvalds declares AI-fueled code surges as the new normal

https://www.neowin.net/news/linus-torvalds-declares-massive-ai-fueled-code-surges-as-the-new-norm...
1•Corrado•1m ago•0 comments

Ask HN: Will writing code by hand remain a part of work?

1•jaynetics•2m ago•0 comments

Thoughts on ALS

https://energydon.fi/@rmattila74/116568059478685468
1•DamonHD•3m ago•0 comments

Gemini Omni Demo Shows AI Video Getting Better at Text

https://firethering.com/google-gemini-omni-video-model/
1•steveharing1•3m ago•0 comments

Show HN: US Salary explorer from job postings

https://corvi.careers/salary-explorer/
1•sp1982•5m ago•0 comments

AI Avatars Without the Face

https://www.trayo.ai/blog/ai-avatars-without-the-face/
1•ohadpr•5m ago•0 comments

A new data layer for robot learning

https://rerun.io/blog/data-layer-for-robot-learning
1•Tycho87•7m ago•0 comments

Counting to 3 with a new builder processing 50M+ monthly builds

https://blog.railway.com/p/new-builder-scale-big
1•ndneighbor•9m ago•0 comments

Posit AI is priced for the long run

https://posit.co/blog/posit-ai-priced-long-run
1•ionychal•10m ago•0 comments

Source of Truth: Code, Spec, or Requirement?

https://blog.reqproof.com/p/code-spec-or-requirement
2•LeonidBugaev•11m ago•0 comments

A JavaScript static site generator that will still work in 5 years

https://github.com/termermc/wunphile
1•qwm•12m ago•0 comments

Alchemize: PyMC's model to replace Stan/PyMC, etc. with an LLM

https://statmodeling.stat.columbia.edu/2026/05/14/alchemize-pymcs-model-to-replace-stan-pymc-etc-...
1•Tomte•15m ago•0 comments

We protect and prepare kids for an always-on world

https://www.commonsense.org/
1•lemonberry•15m ago•1 comments

Compression & Decompression w/ FHE via Err Correcting Codes and Copy-and-Recurse

https://eprint.iacr.org/2026/504
1•pizza•17m ago•1 comments

Big tech bets on new mascots in bid to seem more cuddly

https://www.bbc.com/news/articles/c99l1zzp8xzo
4•billybuckwheat•17m ago•0 comments

Latvian government collapses amid dispute over breaches by Ukrainian drones

https://www.washingtonpost.com/world/2026/05/14/latvian-government-collapses-amid-dispute-over-br...
6•washingupliquid•18m ago•2 comments

Postgres minor releases closing 11 CVEs

https://www.postgresql.org/about/news/postgresql-184-1710-1614-1518-and-1423-released-3297/
4•tee-es-gee•20m ago•0 comments

Safety‑First AI Architecture

https://github.com/ElviCore/ElviCore
2•jweng•20m ago•0 comments

YouTube asks my subscribers if I'm emotionally manipulative [video]

https://www.youtube.com/watch?v=6-Nzb-D3xKc
1•hnburnsy•20m ago•0 comments

Messing with Chrome's Local Gemini Nano to Deobfuscate LinkedIn Posts

https://brentfitzgerald.com/posts/linkedin-translator-browser-extension/
1•burnto•21m ago•1 comments

The Inference Shift

https://stratechery.com/2026/the-inference-shift/
2•gmays•25m ago•0 comments

Rice processing research points to evolving milling rates as quality factor

https://phys.org/news/2026-04-rice-evolving-milling-quality-factor.html
1•PaulHoule•26m ago•0 comments

PyTorch, rewritten from scratch in pure Rust

https://github.com/forecast-bio/ferrotorch
3•davidsainez•26m ago•0 comments

2.3x KV Cache Compression at 32k Context – Cut VRAM Costs by 50%

https://github.com/Jamie2111/liquid_memory
1•JamieObala•29m ago•0 comments

Germany's Sovereign Tech Fund Backs KDE with €1.3M

https://www.theregister.com/oses/2026/05/14/kde-bags-13m-as-europe-realizes-it-might-need-an-os-o...
27•Lihh27•30m ago•2 comments

FBI warns of '764' network: violent social engineering targeting kids in games

https://www.fbi.gov/contact-us/field-offices/dallas/news/fbi-dallas-open-letter-to-parents-guardi...
2•templar_snow•31m ago•1 comments

AT&T, T-Mobile, and Verizon to eliminate coverage dead zones

https://www.theverge.com/tech/930336/att-tmobile-verizon-joint-venture-agreement-satellite-coverage
1•mchusma•34m ago•1 comments

Show HN: Claude-stash – an idea queue for Claude Code

https://github.com/AmirSoleimani/claude-stash
3•Amirso•35m ago•0 comments

Firnflow: Fast search over object storage (open-source turbopuffer)

https://github.com/gordonmurray/firnflow
1•jzebedee•35m ago•0 comments

C++: The Documentary (Trailer)

https://www.youtube.com/watch?v=NXwTRzywDSk
3•pjmlp•37m ago•0 comments