Skip to main content

Knowledge Base (RAG)

Retrieval-Augmented Generation enables intelligent document search and context-aware AI responses grounded in your data.

What is RAG?#

Retrieval-Augmented Generation (RAG) is a technique that enhances AI responses by retrieving relevant information from your documents before generating content. Instead of relying solely on the AI model's training data, RAG grounds responses in your specific data, resulting in more accurate, relevant, and factual outputs.

Grounded Responses

AI answers are based on your actual documents, not just general knowledge.

Source Citations

See exactly where information came from with automatic citations.

Semantic Search

Find relevant information based on meaning, not just keywords.

Automatic Indexing

All uploaded content is automatically indexed for fast retrieval.

RAG Features#

RAG capabilities are integrated throughout PromptReports in several key areas:

FeatureLocationDescription
Chat with ReportsAny generated reportAsk questions about your report content with automatic context retrieval
Context FilesPrompt creationUpload documents to provide context for AI-generated content
Source CitationsThroughout platformAI automatically cites sources when referencing uploaded content
Semantic SearchKnowledge Base pageFind relevant information across all your documents

Chat with Reports#

The "Ask the Report" chat feature lets you have a conversation with any generated report. The AI retrieves relevant sections from your report to answer your questions accurately.

1

Open a Report

Navigate to any generated report from your profile or the My Reports section.
2

Click "Ask the Report"

Find the chat icon or "Ask the Report" button in the report viewer.
3

Ask Questions

Type any question about the report content. The AI will search and answer based on the actual report.
4

Review Citations

The AI response includes citations showing which sections of the report were used.

Context Files#

When creating prompts, you can attach context files to ground AI responses in your data. Supported file types include PDF, TXT, DOCX, and more.

File Upload

Upload PDF, TXT, DOCX files directly as context for your prompts.

URL Import

Import content from web URLs to use as context.

Text Input

Paste text directly as context without uploading files.

Reusable Contexts

Save contexts to use across multiple prompts.

How It Works#

Under the hood, PromptReports uses a sophisticated pipeline to enable RAG:

1

Document Ingestion

When you upload a document, it is parsed and split into smaller chunks for efficient retrieval.
2

Embedding Generation

Each chunk is converted into a high-dimensional vector using an embedding model.
3

Vector Storage

Embeddings are stored in a vector database for fast similarity search.
4

Query Processing

When you ask a question, it is also converted to an embedding.
5

Retrieval

The most similar document chunks are retrieved based on vector similarity.
6

Generation

Retrieved context is provided to the AI along with your question to generate an accurate response.

Pro Tips#

The Knowledge Base page provides a central hub for understanding RAG capabilities and navigating to the features where RAG is used. For hands-on context management, visit the Contexts page.