Skip to Content
RAG pratico per la produzione (Italian Edition)
book

RAG pratico per la produzione (Italian Edition)

by Ofer Mendelevitch, Forrest Sheng Bao
May 2026
Intermediate
358 pages
11h 21m
Italian
O'Reilly Media, Inc.
Content preview from RAG pratico per la produzione (Italian Edition)

Prefazione di Sharon Zhou

La prima volta che ho visto un sistema RAG fallire in produzione, è stato perché qualcuno aveva ingenuamente suddiviso i propri documenti in blocchi in base a limiti di caratteri fissi, tagliando a metà una clausola legale. La clausola A era in un blocco insieme a parte della clausola B, mentre il resto della clausola B era in un altro. Il problema era che il secondo blocco forniva un'eccezione utile e comune. Il sistema RAG ha recuperato il primo blocco ma non il secondo in base alla domanda dell'utente, quindi, sfortunatamente, il modello ha risposto alla domanda dell'utente con l'opposto di ciò che diceva il contratto. Pensaci: se ti venissero fornite informazioni incomplete o errate tramite una ricerca su Google, avresti anche tu difficoltà a dare la risposta giusta.

Nessuno di coloro che hanno sviluppato il sistema aveva pensato alla strategia di suddivisione in blocchi, almeno non in modo critico. Erano stati impegnati a discutere su quale LLM utilizzare. Ecco perché un libro come questo è così importante per chi sviluppa RAG con LLMs e agenti in produzione.

Il RAG sembra ingannevolmente semplice:

  • Suddividi i tuoi documenti in blocchi: è facile, basta una divisione di stringa.
  • Incorpora i segmenti: facile, basta una chiamata all'API del modello leggero in un ciclo for.
  • Recupera i segmenti rilevanti: facile, basta usare la ricerca, che esiste da molto più tempo dell'IA moderna, quindi in un certo senso dovrebbe già avere delle best practice integrate. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Progettare interfacce di IA (Italian Edition)

Progettare interfacce di IA (Italian Edition)

Louise Macfadyen
Trasformazione guidata dal dominio (Italian Edition)

Trasformazione guidata dal dominio (Italian Edition)

Carola Lilienthal, Henning Schwentner

Publisher Resources

ISBN: 0642572397630