frontpage.
newsnewestaskshowjobs

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!

Does anyone know YouTube's pre-2006's des key?

2•kyer_bananaclan•3m ago•0 comments

Accuracy and Precision

https://blogs.extension.msstate.edu/theriskproject/accuracy-and-precision/
1•bryanrasmussen•3m ago•0 comments

Nim Version 2.2.12 Released

https://nim-lang.org//blog/2026/09/08/nim-2212.html
2•ibobev•4m ago•0 comments

Is Zenodo Down?

https://zenodo.org
2•cbracketdash•4m ago•0 comments

Taint tracking on AI agent traces: 0.48 precision on AgentDojo

https://github.com/IdoGol24/weir
2•CodeNinja778•4m ago•0 comments

Mamdani: Officials 'lied' to New Yorkers about still-toxic after 9/11

https://www.independent.co.uk/news/world/americas/911-air-quality-report-mamdani-ground-zero-b304...
1•doener•5m ago•0 comments

Wealth Inequality in America (Updated 2026) [video]

https://www.youtube.com/watch?v=2GxlL5-0m_g
4•sethops1•5m ago•0 comments

Underwater Drone Captured by Iran Matches American Anduril Model

https://www.navalnews.com/naval-news/2026/09/underwater-drone-captured-by-iran-matches-american-a...
1•bigyabai•5m ago•0 comments

Chime Announces Agreement to Acquire Stride Bank

https://finance.yahoo.com/markets/stocks/articles/chime-announces-agreement-acquire-stride-200500...
1•d1egoaz•7m ago•0 comments

Show HN: Browser viz of OpenAI's "spaghetti" Navier–Stokes vortex (illustration)

https://3d-retro.com/experiments/vortex
2•SouthWestAtlas•9m ago•0 comments

Show HN: CodeEraser – a deterministic judge of LLM-induced code and doc entropy

https://github.com/skymanbp/CodeEraser
1•Azng_0•11m ago•0 comments

USD Grants for OSS, Made by Guillermo Rauch (CEO Vercel)

https://rauchg-oss-grants.vercel.app/
2•gidellav•11m ago•0 comments

Judge spares Google's ad-tech business from a breakup

https://www.computerworld.com/article/4218844/judge-spares-googles-ad-tech-business-from-a-breaku...
1•CrankyBear•12m ago•0 comments

How long before a real crackdown on AI model decensoring?

https://www.unite.ai/how-long-before-a-real-crackdown-on-ai-model-decensoring/
2•50kIters•15m ago•0 comments

Superiority

https://www.baen.com/Chapters/1439133476/1439133476___5.htm
2•bryanrasmussen•17m ago•0 comments

A collection of minimal, generative and customizable SVG-patterns

https://bookofshapes.com/
2•drunkonvinyl•17m ago•0 comments

The Singapore Strategies

https://aeon.co/essays/did-singapore-go-wrong-in-its-quest-for-food-security
2•karakoram•17m ago•0 comments

Mercury 2.5

https://www.inceptionlabs.ai/blog/introducing-mercury-2-5
4•Topfi•22m ago•0 comments

Assume you've built sub-5-millon parameter competitor to Astra, so?

2•aunekiaru•24m ago•1 comments

UmamiEngine Has a Special Offer

https://umamiengine.com/
2•sauromates•26m ago•0 comments

Show HN: Postgres schema review and 3D explorer, run on seven open-source apps

https://github.com/greenstevester/postgres-schema-gallery
2•greenstevester•28m ago•1 comments

Animation in Bevy: The Big Picture

https://glocq.com/en/blog/20260827/
5•ibobev•29m ago•0 comments

Microsoft marked the holiday by unloading 973 CVEs

https://www.automox.com/blog/patch-fix-tuesday-september-2026
2•speckx•29m ago•0 comments

Voronoi Fragmentation of a Mesh

https://www.4rknova.com/blog/2026/07/27/voronoi-fracture
3•ibobev•29m ago•0 comments

Kimi K3 (2.8T) at 1 token/s on a MacBook Pro, streamed from four SSDs

https://github.com/argonautlabsai/deltafin
5•Argonautlabs•29m ago•1 comments

A laser scanner killed the two mobile apps we had just finished

https://aiku.io/blog/a-laser-scanner-killed-our-two-mobile-apps
2•xboro•29m ago•0 comments

OpenAI says GPT-6 Astra can find zero-days, but is also harder to monitor

https://www.bleepingcomputer.com/news/artificial-intelligence/openai-says-gpt-6-astra-can-find-ze...
3•sbulaev•30m ago•0 comments

Trey Parker and Matt Stone Are Changing the Name of South Park to South America

https://twitter.com/SouthPark/status/2097364141237539116
12•HelloUsername•31m ago•0 comments

After Work, We'll Have Each Other

https://asteriskmag.com/issues/15/after-work-we-ll-have-each-other
8•devonnull•31m ago•0 comments

Microsoft September 2026 Patch Tuesday fixes 966 flaws, 2 zero-days

https://www.bleepingcomputer.com/news/microsoft/microsoft-september-2026-patch-tuesday-fixes-966-...
4•Handy-Man•34m ago•0 comments