File:RAG schema.svg

Original file(SVG file, nominally 4,249 × 1,722 pixels, file size: 76 KB)

Render this image in .

Summary

Description
English: Diagram illustrating the two-phase process for document retrieval using dense embeddings.
   Indexing Phase:
       Documents are transformed into vector representations using dense embeddings.
       These vectors are stored in a vector database.
   Inference Phase:
       The posed question is converted into a query vector using the same embedding technique.
       The vector database retrieves the top four most relevant articles by computing the cosine distance between the query vector and stored document vectors.
       The content of the selected articles is introduced to the Large Language Model (LLM) as context, together with the original question.
       The LLM is then instructed to formulate an answer.
This process ensures efficient and relevant document retrieval based on the semantic content of queries.
Polski: Diagram ilustrujący dwuetapowy proces wyszukiwania dokumentów przy użyciu gęstych osadzeń.
   Faza indeksowania:
       Dokumenty są przekształcane w reprezentacje wektorowe przy użyciu gęstych osadzeń.
       Te wektory są przechowywane w wektorowej bazie danych.
   Faza wnioskowania:
       Zadane pytanie jest konwertowane na wektor zapytania przy użyciu tej samej techniki osadzania.
       Wektorowa baza danych wyszukuje cztery najbardziej odpowiednie artykuły, obliczając odległość kosinusową między wektorem zapytania a przechowywanymi wektorami dokumentów.
       Treść wybranych artykułów jest wprowadzana do Dużego Modelu Językowego (LLM) jako kontekst, wraz z oryginalnym pytaniem.
       Następnie instruuje się LLM, aby sformułował odpowiedź.
Ten proces gwarantuje efektywne i trafne wyszukiwanie dokumentów na podstawie semantycznej zawartości zapytań.
Українська: Діаграма, яка показує двоетапний процес пошуку документів з використанням щільних вкладень.
   Етап індексування:
       Документи перетворюють на векторні подання з використанням щільних вкладень.
       Ці вектори зберігають у векторній базі даних.
   Етап висновування:
       Задане питання перетворюють на вектор запиту з використання того же щільного подання.
       Векторна база даних знаходить чотири найвідповідніші позиції, обчислюючи косинусну відстань між вектором запиту та векторами збережених документів.
       Вміст обраних позицій пропонується Великій Мовній Моделі (ВММ) як контекст, разом із первинним запитанням.
       ВММ відтак кажуть сформулювати відповідь.
Цей процес забезпечує ефективний та доречний пошук документів на основі семантичного вмісту запитів.
Date
Source Own work
Author Gknor
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with an unknown SVG tool.
 
 This file is translated using SVG switch elements: all translations are stored in the same file.

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Two-phase process of document retrieval using dense embeddings and Large Language Model (LLM) for answer formulation

Items portrayed in this file

depicts

24 October 2023

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current10:37, 2 January 2024Thumbnail for version as of 10:37, 2 January 20244,249 × 1,722 (76 KB)Olexa RiznykFile uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for uk.
13:49, 24 October 2023Thumbnail for version as of 13:49, 24 October 20234,249 × 1,722 (72 KB)GknorUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata