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

Comments

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

Ask HN: What Is the Big-O Order of a Jigsaw Puzzle?

1•AnimalMuppet•32s ago•0 comments

Show HN: DynamoSQL – I made a SQL query engine for DynamoDB

https://dynamosql.com/
1•cammasmith•59s ago•0 comments

Forensic analysis of 37GB data loss caused by Cursor AI Agent

https://github.com/kotarimorm/-Report-AI-coding-agent-programmatically-bypassing-OS-security-poli...
1•GRAY_WHALE_CO•2m ago•0 comments

A sleek, wearable airbag for cyclists is nearly here

https://www.theverge.com/gadgets/911540/a-sleek-wearable-airbag-for-cyclists-is-nearly-here
1•JeanKage•2m ago•0 comments

Dual-Boot an Apple Silicon Mac in Sequoia or Tahoe

https://eclecticlight.co/2026/04/14/dual-boot-an-apple-silicon-mac-in-sequoia-or-tahoe/
1•chmaynard•2m ago•0 comments

Cloudflare Incident – Increased HTTP 5xx Errors

https://www.cloudflarestatus.com/incidents/213v4v7s7m97
1•palmeida•3m ago•0 comments

Dermcidin has antiviral activity and protects against influenza

https://www.pnas.org/doi/10.1073/pnas.2424461123
1•geox•3m ago•0 comments

Show HN: Hotel MCP server for cash and points search/booking (free)

https://www.gondola.ai/mcp
1•skyler1537•6m ago•0 comments

Can you pass the reverse Turing test?

https://nataliercargill.substack.com/p/can-you-pass-the-reverse-turing-test
1•eatitraw•6m ago•0 comments

Man suspected of Molotov attack Sam Altmans home charged with attempted murder

https://www.theregister.com/2026/04/14/altman_attempted_murder/
1•Bender•7m ago•0 comments

Linux 7.0 debuts as Linus Torvalds ponders AI's bug-finding powers

https://www.theregister.com/2026/04/13/linux_kernel_7_releaseed/
2•Bender•8m ago•0 comments

Measles takes a plane to Idaho, which has worst vaccination rate in US

https://arstechnica.com/health/2026/04/airport-measles-case-reported-in-idaho-state-with-lowest-v...
2•Bender•9m ago•0 comments

My First Fight

https://dschorno.wordpress.com/2026/04/10/my-first-fight/
1•eatitraw•12m ago•0 comments

Surf

https://about.surf.social/
1•bookofjoe•16m ago•0 comments

Show HN: Manex Hub – private AI research memory, on-device

https://manex.app/
2•krcnow•17m ago•0 comments

Show HN: Get Hired with AI, a free book I wrote on using LLMs for a job search

https://www.careervectorhq.com/book/get-hired-with-ai.html
1•dawie•17m ago•1 comments

Time for Scrutiny: Getting to the Bottom of Daylight Saving Time and Time Zones

https://fixdst.com/?rdt_cid=5846299599488362810
1•surprisetalk•18m ago•0 comments

JSON-complete data formats and programming languages

https://lemire.me/blog/2025/12/20/json-complete-data-format-and-programming-languages/
1•surprisetalk•18m ago•0 comments

Noise

https://homosabiens.substack.com/p/noise
1•surprisetalk•18m ago•0 comments

Which of these two arcades is the "world largest"

https://arstechnica.com/gaming/2026/03/which-of-these-two-arcades-is-the-world-largest-and-does-i...
1•surprisetalk•18m ago•1 comments

Tracking takedown notices filed by UK Biobank

https://biobank.rocher.lc
1•Cynddl•19m ago•0 comments

Stanford HAI Index Report 2026

https://hai.stanford.edu/ai-index/2026-ai-index-report
1•giuliomagnifico•20m ago•0 comments

Durable Objects in Dynamic Workers: Give each AI-generated app its own database

https://blog.cloudflare.com/durable-object-facets-dynamic-workers/
1•TheTaytay•20m ago•0 comments

MCP – It's Hot, but Will It Win? (2025)

https://hardcoresoftware.learningbyshipping.com/p/230-mcp-its-hot-but-will-it-win
2•tosh•22m ago•0 comments

Comad World v0.3.0 – your reading compounds into your tools

https://github.com/kinkos1234/comad-world
1•comadj•22m ago•0 comments

OpenAI Introduction (2015)

https://openai.com/index/introducing-openai/
1•downbad_•24m ago•1 comments

Colossal Pressure: Russia targets university students for military recruitment

https://www.cnn.com/2026/04/14/europe/russia-students-military-recruitment-campaign-intl-cmd
3•breve•24m ago•0 comments

CorePage: I built an AI start page to replace my tabs (notes, news, tools, chat)

https://corepage.ai/
1•devrimco•25m ago•1 comments

Moats Don't Work When Bridges Are Free

https://www.dustinalper.com/blog/bridges-are-free
2•dalps•25m ago•1 comments

Completion is a Substrate, not a UI

https://www.chiply.dev/post-icr-primer
1•chiply•26m ago•0 comments