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!

Stripe Introduces B2B CLI Payments

https://docs.stripe.com/cli/pay
1•meander_water•5m ago•0 comments

Free course: Build and deploy an AI web app with Django and DigitalOcean

https://www.aicertificationcouncil.com/
1•quietkernel•5m ago•0 comments

How to tell the birds from the flowers (1907)

https://archive.org/details/howtotellbirds00wood
1•the-mitr•8m ago•0 comments

Peltola campaign and national Dems recruited spoiler candidates according to NYT

https://alaskapublic.org/news/politics/elections/2026-10-28/peltola-campaign-and-national-dems-re...
1•lakeviewterrace•11m ago•0 comments

Nono: Agent Runtime Security

https://nono.sh
1•handfuloflight•11m ago•0 comments

Point system Claude uses to ban accounts

https://twitter.com/make_claude/status/2115501814090969583
1•cft•13m ago•0 comments

New superconducting chip aims to help tame fusion plasma

https://www.scientificamerican.com/article/new-superconducting-chip-aims-to-help-tame-fusion-plasma/
1•gmays•13m ago•0 comments

Windows 9

https://archive.org/details/windows_9
2•andsoitis•14m ago•1 comments

O11: OpenRouter for Agent Tools

https://o11.ai
1•handfuloflight•15m ago•0 comments

Nanofluidic circuitry

https://en.wikipedia.org/wiki/Nanofluidic_circuitry
1•CGMthrowaway•15m ago•0 comments

Ultrasound creates a tube that guides matter through the air

https://www.helsinki.fi/en/news/energy/ultrasound-creates-tube-guides-matter-through-air
3•geox•24m ago•0 comments

NLnet Publishes More Stringent Generative AI Policy

https://nlnet.nl/news/2026/20261020-AI-policy.html
2•luu•29m ago•0 comments

This image will get blurrier everytime someone sees it & be gone after 10 views

https://joinfaded.com/post/8eb37c53-e278-41d0-be45-20574429467a
1•dreadsword•31m ago•4 comments

1,053,690 answers show that the current AEO landscape is bullshit [pdf]

https://manicule.com/research/manicule-prompt-tracking-methodology.pdf
1•namban06•32m ago•1 comments

Run custom connectors without a Fivetran account

https://fivetran.com/docs/connector-sdk/testing/write-to-iceberg-catalog
2•emrah•34m ago•0 comments

Mull: Note-Taking with a Language Server

https://github.com/stepchowfun/mull
2•stepchowfun•38m ago•1 comments

IT Security and the Normalization of Deviance

https://www.schneier.com/blog/archives/2016/01/it_security_and.html
2•luu•39m ago•0 comments

GitHub Universe, and the place Conn3x lives

https://conn3x.org/blog/github-universe-2026
1•jamesconwaydev•42m ago•0 comments

Show HN: Make Friends Through Movies

https://cinebor.vercel.app/
1•sheraviaansh•45m ago•1 comments

Show HN: Real Time AI Heat Map Sourced from over 140 News Feeds

https://ai-news.jagular.io/
1•psiberaktiv•46m ago•0 comments

Show HN: AgentGPA, a report card for how you work with coding agents

https://agentgpa.dev/leak-index
1•sgungor•47m ago•0 comments

Samsung Electronics shares slid despite record profit in the third-quarter

https://www.cnbc.com/2026/10/29/samsung-electronics-third-quarter-earnings.html
1•snikolaev•49m ago•0 comments

SRS (DOE nuclear materials production) ends site area emergency after lab fire

https://www.wrdw.com/2026/10/28/emergency-response-activities-underway-srs/
1•WaitWaitWha•57m ago•0 comments

Who's Ahead in the Global AI Talent Race?

https://carnegieendowment.org/features/whos-ahead-in-the-global-ai-talent-race
1•gmays•1h ago•0 comments

A Letter to a Royal Academy, Sometimes Referred to as "Fart Proudly"

https://en.wikipedia.org/wiki/A_Letter_to_a_Royal_Academy
2•gregsadetsky•1h ago•0 comments

Messing Around with the Warburg Effect

https://www.science.org/content/blog-post/messing-around-warburg-effect
1•Tomte•1h ago•0 comments

Getting a Tablo OTA DVR to Stream on Linux and Roku Without the Cloud

https://rowbose.com/blog/
2•nddipiazzarobos•1h ago•0 comments

Zillow to pay $212.5M to settle class action for real estate venture

https://www.reuters.com/legal/government/zillow-pay-2125-million-settle-class-action-over-failed-...
13•WaitWaitWha•1h ago•2 comments

The Milwaukee Brewers win the first World Series title in franchise history

https://www.cnn.com/2026/10/28/sport/live-news/game-5-world-series
33•skeptrune•1h ago•8 comments

Ruliobiology and the Theoretical Foundations of Biological Form

https://writings.stephenwolfram.com/2026/10/endless-forms-most-beautiful-and-most-wonderful-rulio...
1•nsoonhui•1h ago•0 comments