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!

The 800XL – By Paul Lefebvre – Goto 10

https://www.goto10retro.com/p/the-800xl
1•rbanffy•2m ago•0 comments

Microsoft Surface Laptop Ultra 128GB Review

https://www.servethehome.com/microsoft-surface-laptop-ultra-review-rtx-spark-n1x/
1•teleforce•3m ago•0 comments

Why IAM:PassRole is a common privilege escalation path in AWS

https://roszigit.com/en/blog/aws-iam-passrole/
1•lkanwoqwp•6m ago•0 comments

Small Agents, Smaller Blast Radius

https://isc.sans.edu/diary/33430
1•jruohonen•6m ago•0 comments

Training Reasoning Models to Generate Diverse Scientific Ideas

https://arxiv.org/abs/2610.22324
1•theanonymousone•12m ago•0 comments

Letter to Anthropic Re: Planned Initial Public Offering

https://comptroller.nyc.gov/reports/letter-to-anthropic-re-planned-initial-public-offering/
3•theanonymousone•12m ago•0 comments

How employment is changing at Anthropic

https://www.anthropic.com/research/employment-at-anthropic
2•theanonymousone•13m ago•0 comments

How Much of a Harness Does a Strong Agent Need for Autonomous ML Engineering

https://machinelearning.apple.com/research/harness-autonomous-ml-engineering
1•krona•13m ago•0 comments

Use the Saw, Fear the Saw

https://stephango.com/saw
2•tosh•16m ago•0 comments

Limoges Town Hall, Which Survived Two World Wars, Is Destroyed in France Riots

https://uk.news.yahoo.com/limoges-town-hall-survived-two-054115920.html
1•baxtr•18m ago•0 comments

The Decoherence Trap

https://maevyn.codes/decoherence
1•mfbx9da4•19m ago•0 comments

Three Scenarios for a Leaderless World

https://www.nytimes.com/2026/10/18/opinion/america-world-order-democracy-trump.html
2•dkobia•19m ago•0 comments

The Standard of Excellence in Exhibition Poultry

https://en.wikipedia.org/wiki/British_Poultry_Standards
1•Bluestein•19m ago•0 comments

Minmax matrix: Desk routing went from 11% to 90%"

https://medium.com/@vektormemory/vektor-2-0-1-desk-routing-went-from-11-to-90-heres-how-we-measur...
1•vektormemory•25m ago•1 comments

Why is GitHub so bad at UI?

https://earthly-delights.net/blog/github/
2•mustardgreen•26m ago•0 comments

Show HN: Chrome extension that types one prompt into many AI chat tabs

https://chromewebstore.google.com/detail/use-multiple-chat-ai-at-o/pcpciffaliaooacnhiefjiegigjidehp
1•yesgenius•26m ago•0 comments

The Landscape of Humanoids – 2,351 products, 788 companies

https://airfold.co/humanoid-technology-map/
3•julianofficial•29m ago•1 comments

Blitz 3D Pro: A 2D/3D cool BASIC based on BlitzBasic

https://twitter.com/BlackCreepy_Cat/status/2111739882821374354
1•seyhajin•30m ago•0 comments

Young People and the Future of Free Expression

https://knightfoundation.org/articles/research/young-people-and-the-future-of-free-expression/
1•jruohonen•32m ago•0 comments

Making Solar Panels with a Microwave [video]

https://www.youtube.com/watch?v=zcWkApGjyGM
2•jackdoe•37m ago•0 comments

I verified on-chain why mined Pi and exchange Pi are the same asset

https://github.com/aybvip/pi-fungibility
1•ayoubbbs•37m ago•0 comments

Data centers are now the largest financial bet in US history

https://stateline.org/2026/10/16/data-centers-are-now-the-largest-financial-bet-in-us-history/
5•rdmuser•37m ago•0 comments

I may have discovered a new exoplanet using Claude

https://sixeleven.in/blog/tic402710280
3•specbug•38m ago•0 comments

The One Question I Can't Stand at Restaurants ("What's your phone number?")

https://www.theatlantic.com/culture/2026/10/restaurant-phone-number-question/688926/
3•Kaibeezy•39m ago•2 comments

Eval of 19 ways to crop images using LLMs, Jev and image classification models

https://workflows-of-ai.com/blog/can-ai-set-the-focal-point-of-a-photo
1•marcus_johansso•39m ago•0 comments

Legal experts warn Meta's new terms still grant broad scraping permissions

https://www.niemanlab.org/2026/10/legal-experts-warn-metas-new-terms-still-grant-broad-scraping-p...
2•DeepLogin•40m ago•0 comments

Study Offers Insights on How Heart Valves Last So Long

https://news.ncsu.edu/2026/10/how-heart-valves-last-so-long/
1•giuliomagnifico•41m ago•0 comments

What an adult ADHD diagnosis taught me

https://blog.raed.dev/posts/adhd/
1•Raed667•43m ago•0 comments

It's time to talk about TEEs

https://alinush.github.io//tee
3•joshcsimmons•47m ago•0 comments

Everything Rhymes with Porcelain

https://worksinprogress.co/issue/everything-rhymes-with-porcelain/
1•dverlaeckt80•48m ago•0 comments