Icon

02 Retrieval-Augmented Generation (RAG)

<p>This workflow demonstrates how you can visually embed LLM and embedding models into your analytical workflow. It also showcases a <strong>RAG implementation</strong>, including <strong>vector store</strong> creation, retrieval, and prompt augmentation.</p><p>The workflow accesses data about product reviews from a database, filters the data for analysis, uses GenAI to automatically define sentiment, identify the product, and categorize the problems in the reviews, and finally analyzes the reviews by product, sentiment, and category. <strong>It uses RAG with the company's domain-specific product documentation to achieve more accurate results from GenAI.</strong></p>

02 Retrieval-Augmented Generation (RAG)

This workflow demonstrates how you can visually embed LLM and embedding models into your analytical workflow. It also showcases a RAG implementation, including vector store creation, retrieval, and prompt augmentation.

The workflow accesses data about product reviews from a database, filters the data for analysis, uses GenAI to automatically define sentiment, identify the product, and categorize the problems in the reviews, and finally analyzes the reviews by product, sentiment, and category. It uses RAG with the company's domain-specific product documentation to achieve more accurate results from GenAI.

Access database data for analysis

Connect to an LLM provider

Data analysis

1. Build knowledge base

2. Populate vector store

3. Retrieve relevant chunks

4. Augment prompt

5. Generate responses

OpenAI Embedding Model Selector
Credentials Configuration
OpenAI LLM Selector
Retrieve results
Vector Store Retriever
Review analysis
Add documentsto vector store
FAISS Vector Store Creator
Process retrieved documents
Descriptions of products:investor agreements
PDF Parser
Analyze sentimentof product reviewsand extract product
LLM Prompter
SQLite Connector
Validate GenAIresults beforeupdating a tableon Databricks
Table Validator
Query DB data
Model Writer
Create a promptfor each review
Expression
Text chunking
Text Chunker
OpenAI Authenticator
Extract the product and the sentiment into columns
Document Data Extractor

Nodes

Extensions

Links