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!

Abandoning my game dev dreams in the pursuit of fulfillment and better coffee

https://anastasialaczko.substack.com/p/1-abandoning-my-game-dev-dreams-in
1•papermocha•20s ago•0 comments

Everything I Know About Dynamic Discrete Choice

https://nicholasdecker.substack.com/p/everything-i-know-about-dynamic-discrete
1•paulpauper•35s ago•0 comments

React File Viewer

https://www.npmjs.com/package/@smazeeapps/file-viewer
1•naveenar•43s ago•0 comments

Exporting Data from Anime-Planet (2018)

https://kiniro.uk/articles/22
1•bariumbitmap•1m ago•0 comments

Show HN: A minimal screen-on time tracker for Wayland

https://github.com/skorotkiewicz/work-track
1•modinfo•2m ago•0 comments

Show HN: CLI and MCP for Suunto smartwatches data

https://github.com/tajchert/suuntool
1•tajchert•7m ago•0 comments

xAI Adds 19 New Gas Turbines Despite Ongoing Lawsuit

https://www.wired.com/story/xai-adds-19-new-gas-turbines-despite-ongoing-lawsuit/
4•srameshc•11m ago•0 comments

Bellwether's Hurricane Prediction and Response Tools

https://x.company/blog/posts/bellwetherhurricanetools/
1•michaefe•11m ago•0 comments

Nvidia Is Buying the Chip Supply Chain

https://www.wsj.com/tech/nvidia-is-buying-the-chip-supply-chain-871db5e3
2•fortran77•12m ago•1 comments

Data needed for FOSS gesture typing library

https://github.com/HeliBorg/HeliBoard/wiki/Tutorial:-How-to-Contribute-Gesture-Data
1•thenub•12m ago•0 comments

The Post-Mortem Problem

https://incident.io/blog/the-post-mortem-problem
1•smurda•13m ago•0 comments

Pyrefly 1.0

https://github.com/facebook/pyrefly/releases/tag/1.0.0
2•0x1997•14m ago•0 comments

Hi-Vis: one-shot jailbreak disguised as LLM "software patch" reaching 100% ASR

https://medium.com/@emma-k/a-new-jailbreak-the-hi-vis-attack-26c2f7ec6da6
2•emmakrentz•15m ago•0 comments

OpenAI Supply Co

https://supplyco.openai.com/
1•ajuhasz•17m ago•0 comments

Quack and VGI: Two Approaches to Bringing RPC to DuckDB

https://rusty.today/blog/quack-vgi-two-approaches-rpc-duckdb/
1•rustyconover•22m ago•0 comments

Deadnet Internet Services

http://deadnet.se/
1•marvinborner•24m ago•0 comments

My graduation cap runs Rust

https://ericswpark.com/blog/2026/2026-05-12-my-graduation-cap-runs-rust/
11•ericswpark•28m ago•2 comments

Show HN: Tmux-palette – Raycast-style command palette for tmux

https://www.eduwass.com/blog/tmux-palette/
1•eduwass•29m ago•3 comments

On the Probable Irreversibility of the Kurzweilian Singularity

https://medium.com/@adlumal/on-the-probable-irreversibility-of-the-kurzweilian-singularity-e8d10f...
1•adlumal•33m ago•0 comments

RFC 9959: Careful Resume: Convergence of Congestion Control from Retained State

https://www.rfc-editor.org/rfc/rfc9959.html
2•luu•34m ago•0 comments

You Don't Look Like a Gamer: On Toxicity, Gatekeeping, & Women Who Share Gaming

https://gardinerbryant.com/you-dont-look-like-a-gamer/
2•Kate0CoolLibby•36m ago•0 comments

Net May 19 Starship • Flight 12

https://spaceflightnow.com/launch-schedule/
1•bookmtn•37m ago•1 comments

Influential study touting ChatGPT in education retracted over red flags

https://arstechnica.com/ai/2026/05/influential-study-touting-chatgpt-in-education-retracted-over-...
1•andrei_says_•37m ago•0 comments

Show HN: Outpainting Avatar: The Last Airbender from 4:3 to 16:9

https://bsky.app/profile/markjgx.bsky.social/post/3mlotqveddc2i
1•markjgx•37m ago•0 comments

Canvas hack: Company pays criminals to delete students' stolen data

https://www.bbc.com/news/articles/cdepzg83x87o
1•smurda•38m ago•0 comments

Compressing Scrabble Dictionaries (2014)

https://williame.github.io/post/87682811573.html
1•kristianp•39m ago•0 comments

Compared to What? Baselines and Metrics for Counterfactual Prompting

https://arxiv.org/abs/2605.01048
1•Anon84•40m ago•0 comments

Zoom info charges 15k a year for business leads. I built an alternative using AI

https://dayonelead.com
2•monkeeguy•40m ago•0 comments

Foxconn confirms cyberattack after Nitrogen claims Apple, Nvidia data theft

https://www.theregister.com/cyber-crime/2026/05/12/foxconn-confirms-cyberattack-after-nitrogen-cl...
3•y1n0•44m ago•0 comments

When "idle" isn't idle: how a Linux kernel optimization became a QUIC bug

https://blog.cloudflare.com/quic-death-spiral-fix/
3•sbulaev•46m ago•0 comments