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!

You can make something good

https://sfalexandria.com/posts/farzas-creations/
1•aadillpickle•3m ago•0 comments

Git for web services – everything as a file for coding agents

https://github.com/KrzysztofBogdan/gitfs
1•kpbogdan•3m ago•1 comments

American Supply Chain

https://twitter.com/bihanmahadewa/status/2046732759339552772
1•bihan•3m ago•1 comments

In Search of (Claude's) Lost Time

https://www.gsarigiannidis.gr/claude-global-memory/
1•gsarig•6m ago•0 comments

Deep Research Max

https://blog.google/innovation-and-ai/models-and-research/gemini-models/next-generation-gemini-de...
1•markerbrod•7m ago•0 comments

Aube: A fast Node.js package manager

https://github.com/endevco/aube
1•icar•7m ago•0 comments

Spain's greatest matador gored by bull in comeback from retirement

https://www.thetimes.com/world/europe/article/morante-bullfighter-injured-bull-goring-tsj0bt7ks
1•petethomas•9m ago•0 comments

C++ Scripting with Libriscv

https://libriscv.no/blog/expert-example/
1•fwsgonzo•10m ago•0 comments

Anthropic CVP – Run 2

https://sunglasses.dev/reports/anthropic-cvp-opus-4-7-evaluation-run-2
1•azrollin•13m ago•0 comments

Shared Agent Harness

https://github.com/goncalossilva/.agents
1•ankitg12•18m ago•0 comments

Rspack 2.0

https://rspack.rs/blog/announcing-2-0
2•0x1997•22m ago•0 comments

The Free Universal Construction Kit

https://fffff.at/free-universal-construction-kit/
1•robinhouston•23m ago•0 comments

Force all app traffic into the tunnel in the iOS app

https://mullvad.net/en/blog/force-all-app-traffic-into-the-tunnel
1•eptcyka•24m ago•0 comments

Run Commands on File Event

https://evilcookie.de/on-run-commands-on-file-event.html
1•Tch1b0•24m ago•0 comments

Viewing One's Live Self Interrupts Mindless Short-Form Video Scrolling

https://arxiv.org/abs/2604.19424
2•50kIters•25m ago•0 comments

When the pronoun "they" breaks your RAG pipeline

https://old.reddit.com/r/Rag/comments/1spro5f/when_the_pronoun_they_breaks_your_rag_fixing/
1•HarinezumIgel•29m ago•0 comments

What Makes Docs Beautiful?

https://passo.uno/what-makes-docs-beautiful/
1•eigenBasis•29m ago•0 comments

CrabTrap

https://github.com/brexhq/CrabTrap/
1•handfuloflight•33m ago•0 comments

Pixi: One Package Manager for Python and C/C++ Libraries

https://codecut.ai/uv-pixi-comparison/
1•lululpac•33m ago•0 comments

What's new in JavaScript (and what's coming next)

https://neciudan.dev/whats-new-in-javascript
1•theanonymousone•34m ago•0 comments

Emergency Prices: How Private Equity Captured the Ambulance Market

https://www.thebignewsletter.com/p/code-red-why-your-city-cant-affordor
1•xbmcuser•39m ago•1 comments

Gist.Science – Popular Science for All ArXiv/BioRxiv/MedRxiv Papers

https://gist.science/
1•gistscience•39m ago•0 comments

Roundtables: Unveiling the Things That Matter in AI

https://www.technologyreview.com/2026/04/21/1135486/roundtables-unveiling-the-10-things-that-matt...
1•joozio•40m ago•0 comments

Aspirin can reduce the risk of cancer – and we're starting to understand why

https://www.bbc.com/future/article/20260420-cancer-how-aspirin-may-be-a-powerful-new-weapon-again...
1•ranit•44m ago•0 comments

Show HN: A P2P Network Where Agents Collaborate on Code Optimization

https://community.computer/
2•lftherios•47m ago•1 comments

High Performance Git

https://gitperf.com/
1•handfuloflight•47m ago•0 comments

Geo Content Writer: a backlog-first system for AI visibility content

https://github.com/dageno-agents/geo-content-writer
3•timdageno•50m ago•0 comments

Show HN: Data-driven GEO and marketing agent platform

https://dageno.ai
6•timdageno•59m ago•0 comments

SpaceX is working with Cursor and has an option to buy the startup for $60B

https://techcrunch.com/2026/04/21/spacex-is-working-with-cursor-and-has-an-option-to-buy-the-star...
1•thiele•1h ago•0 comments

Reflecting on 50 years of environmental innovation

https://blogs.sas.com/content/sascom/2026/04/22/reflecting-on-50-years-of-environmental-innovation/
1•salkahfi•1h ago•0 comments