Learn how to create a powerful retrieval-augmented generation agent without writing code using Knowledges
This tutorial guides you through creating a powerful Retrieval-Augmented Generation (RAG) agent using Prisme.ai’s Knowledges product. You’ll learn how to build an AI that can intelligently access and leverage your organization’s documents to provide accurate, contextual responses—all without writing a single line of code.
A customizable knowledge base containing your documents
Vector embedding and intelligent retrieval capabilities
An interactive chat interface for querying your documents
Automated testing for continuous quality assurance
Analytics for performance monitoring
Knowledges functions as a RAG-as-a-Service offering, creating a collaborative environment where Data Scientists, Data Engineers, Developers, and Business Teams can efficiently work together. The platform features a unique methodology called Gen.AI Test-Driven Building, ensuring everyone operates from a single source of truth.
Knowledges uses a Retriever-Augmented Generation architecture that combines document retrieval with language generation:This architecture allows your agent to:
Process and store documents as vector embeddings
Retrieve relevant document chunks based on user queries
Generate contextually accurate responses using LLMs
Provide sources and citations for transparency
Knowledges is designed to be model-agnostic, ensuring compatibility across various LLMs for both embedding and generative tasks. This flexibility allows you to switch models as needed without rebuilding your entire knowledge base.
Now that your documents are integrated, you can start querying your knowledge base:
1
Access the Chat Interface
Click on the “Chat” button to access the interactive interface
2
Ask Questions
Enter questions related to your documents to see how the AI responds
3
Review Sources and Chunks
Examine the sources and chunks used to generate each response
Knowledges provides full transparency by showing which document chunks were used to generate each response. This feature allows you to verify the AI’s reasoning and ensure accuracy.
A unique aspect of Knowledges is its support for Test-Driven Building (TDB), which ensures your RAG agent performs consistently over time:
1
Access the Testing Module
Navigate to the “Test” section in your project
2
Create a Test Suite
Click “Add Test” to create a new test suite for your RAG agent
3
Define Test Cases
Add test cases with:
Questions: Queries that users might ask your agent
Expected Answers: The correct information that should be provided
4
Configure Test Settings
Set how often tests should run (daily, weekly, etc.) and whether they should trigger automatically
5
Run Tests
Execute the tests to evaluate your agent’s performance
6
Review Results
Analyze the test results, which include:
Prompt and Context: The exact prompt and context used for generating responses
Generated Response: The AI’s actual response
Response Evaluation: Rating of response quality (poor, correct, good)
Context Evaluation: Rating of context relevance and accuracy
Business experts can manually assess responses, context, and instances of hallucination. We recommend running tests after each modification to the model, prompt, AI parameters, chunk size, image inclusion settings, self-query configuration, and other adjustments.
By following this tutorial, you’ve created a powerful RAG agent that can access and leverage your organization’s knowledge without requiring any coding. Your AI can now provide accurate, contextual responses based on your documents, with full transparency about its sources and reasoning.The Test-Driven Building approach ensures your agent maintains high performance over time, while the flexible architecture allows you to adapt and extend its capabilities as your needs evolve.