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

Comments

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

Mojo's Not (Yet) Python

https://theconsensus.dev/p/2026/03/12/mojos-not-yet-python.html
1•tuananh•1m ago•0 comments

Show HN: LookGood Live – Chrome plugin enhances your appearance on camera video

https://webcameffects.app/en/extensions/looksgood-live/
1•mda_damico•7m ago•0 comments

Meta, Google lose US case over social media harm to kids

https://www.reuters.com/legal/litigation/jury-reaches-verdict-meta-google-trial-social-media-addi...
2•1vuio0pswjnm7•14m ago•0 comments

Six open table formats compared across 5 architectural forks

https://medium.com/@shaoting.huang/the-table-format-wars-4daa6ba3dd84
1•fujidanbao•15m ago•0 comments

Async, Sync, in Between

https://antfu.me/posts/async-sync-in-between
1•luispa•16m ago•0 comments

Comparison of embedding size reduction methods for vector search

https://corvi.careers/blog/vector-search-embedding-compression/
1•sp1982•17m ago•0 comments

Earliest iron blooms discovered off the Carmel coast

https://www.nature.com/articles/s40494-026-02409-7
1•wslh•17m ago•0 comments

Writing Changes Mathematical Thought

https://www.quantamagazine.org/how-writing-changes-mathematical-thought-20260325/
1•sonabinu•18m ago•0 comments

Chinese National and 2 US Citizens Charged W Conspiring to Smuggle AITech to CCP

https://www.justice.gov/opa/pr/chinese-national-and-two-us-citizens-charged-conspiring-smuggle-ar...
1•737min•19m ago•0 comments

Ask HN: Has Claude Code quality level degraded lately?

1•narmiouh•19m ago•0 comments

Weaponizing Extension Packs with PackRAT

https://blog.yeethsecurity.com/2026/03/13/PackRat.html
1•somerandom1337•24m ago•0 comments

LA Jurors Find Meta, YouTube Liable for Youth Mental Health Problems, Award $6M

https://www.law.com/2026/03/25/los-angeles-jurors-find-meta-and-youtube-liable-for-youths-mental-...
2•1vuio0pswjnm7•28m ago•1 comments

Verdicts against social media companies carry consequences. But questions linger

https://www.boston25news.com/news/business/verdicts-against/EZ3JDN546E7RHDQDVPTYYGCAGI/
1•1vuio0pswjnm7•32m ago•0 comments

VS Code plugin to annotate in Markdown previews for your AI

https://github.com/41fred/ai-markdown-feedback
1•41fred•34m ago•1 comments

Web and File Server Comparison (NT Server 4.0 versus RedHat 5.2 on Linux 2.2.2)

http://www.mindcraft.com/whitepapers/first-nts4rhlinux.html
2•markus_zhang•35m ago•0 comments

Isolated Web Apps

https://chromeos.dev/en/web/isolated-web-apps
1•h4ch1•37m ago•0 comments

Every Online Conversation about AI, Summarized

https://rushyendramaganty.com/ai
3•finolex1•38m ago•0 comments

KKR to acquire Nothing Bundt Cakes for over $2B

https://www.reuters.com/business/retail-consumer/kkr-acquire-nothing-bundt-cakes-over-2-billion-w...
4•mattas•40m ago•0 comments

Docker Coding Agent Sandboxes (2025)

https://www.docker.com/blog/docker-sandboxes-a-new-approach-for-coding-agent-safety/
1•nateb2022•42m ago•0 comments

Your First Parser

https://davesnx.github.io/parseff/guides/first-parser/
2•y1n0•46m ago•0 comments

Fyrox Game Engine 1.0.0

https://fyrox.rs/blog/post/fyrox-game-engine-1-0-0/
1•robinsonrc•48m ago•0 comments

Buy Them the Tools

https://eric.mann.blog/buy-them-the-tools/
1•eamann•49m ago•0 comments

Electric Motorcycles Don't Have to Be Security Nightmares, but This One Was

https://hackaday.com/2026/03/25/electric-motorcycles-dont-have-to-be-security-nightmares-but-this...
1•initramfs•49m ago•1 comments

SpaceX set to file for share sale

https://www.bbc.com/news/articles/c5y8d721q18o
1•y1n0•50m ago•0 comments

FCC imposes ban on new foreign-made routers, allows 2 yrs firmware updates

https://arstechnica.com/tech-policy/2026/03/trump-fcc-prohibits-import-and-sale-of-new-wi-fi-rout...
4•walterbell•52m ago•3 comments

Mark to Market

https://cameronwestland.com/mark-to-market/
1•camwest•52m ago•0 comments

Background Agents Landscape

https://background-agents.com/landscape
1•sidk24•56m ago•0 comments

MCP Server for ERPNext / Frappe ERP – MCP Apps

https://github.com/Casys-AI/mcp-erpnext
1•ErwanLP•1h ago•0 comments

Ask HN: Why is a "War ON Iran" being labelled as a "War IN Iran"?

3•vfclists•1h ago•2 comments

streaming service for reading (6M+ titles)

https://lex-books.com
2•davidmainayar•1h ago•1 comments