Building an AI- and Avatar-Based Knowledge System on AWS
Guide

Building an AI- and Avatar-Based Knowledge System on AWS

An AWS guide presents a cloud RAG architecture with an avatar interface and smart caching for institutional knowledge

4 min read
Based on original reporting byAWS Machine LearningTranslated and summarized by our AI-assisted news systemHow we work

Executive summary

Key Takeaways

  • The solution combines Amazon Bedrock Knowledge Bases, Amazon S3, and OpenSearch Serverless for institutional data retrieval.

  • The user interface supports voice and text interactions through an avatar powered by DeepBrain AI technology and WebRTC.

  • In testing, for workloads where 50 to 70 percent of questions were repeats, using caching reduced inference costs by a comparable rate.

  • S3 event notifications trigger automated Lambda synchronization to update the knowledge base when new documents are uploaded.

Building an AI- and Avatar-Based Knowledge System on AWS

  • The solution combines Amazon Bedrock Knowledge Bases, Amazon S3, and OpenSearch Serverless for institutional data...
  • The user interface supports voice and text interactions through an avatar powered by DeepBrain AI...
  • In testing, for workloads where 50 to 70 percent of questions were repeats, using caching...
  • S3 event notifications trigger automated Lambda synchronization to update the knowledge base when new documents...

In a post published on the AWS blog, a cloud-based solution featuring a smart caching mechanism was presented, designed to capture, maintain, and deliver accumulated institutional knowledge through an intelligent avatar system running on AWS services. According to the post's authors, organizations across diverse industries struggle with managing institutional knowledge and experience accumulated over years of operations, which is often lost when key employees leave. Traditional documentation methods frequently prove inadequate, leaving outdated or inaccessible information.

Target Audiences and System Use Cases

According to the post, organizations across diverse industries can use the system to preserve critical knowledge. In manufacturing organizations, for example, production procedures and maintenance protocols can be captured before experienced technicians retire. Additionally, healthcare facilities, financial services firms, energy companies, and government agencies can tailor the solution to their needs. Knowledge workers can access procedures and policies through natural language queries instead of searching multiple repositories, while subject matter experts or retiring employees can upload documentation to preserve their expertise for future generations.

The system can be deployed with desktop browser access for detailed research, voice interaction for hands-free operation, and text-based queries for quick reference depending on the operational context of each industry.

Solution Architecture and Cloud Components

At the foundation of the solution is a browser-based interface supporting both voice and text interactions, connecting to a configurable avatar system that works with third-party avatar solutions (implemented here based on DeepBrain AI).

Behind the scenes, the following AWS services operate:

  • Amazon Cognito secures access management and user controls.
  • Amazon API Gateway provides managed, monitored endpoints for communication between system components.
  • Amazon Bedrock Knowledge Bases serves as the knowledge-processing core for managed Retrieval Augmented Generation (RAG): data stored in Amazon S3 serves as the data source, and Bedrock performs chunking, vector generation (embedding) using the Amazon Titan Text Embeddings model, and document-grounded retrieval.
  • Amazon OpenSearch Serverless serves as a vector store for the Bedrock knowledge base.
  • Amazon DynamoDB provides a response caching layer.
  • AWS Lambda functions orchestrate request and response workflows.
  • Amazon Transcribe converts voice input to text.
  • Amazon Polly converts text responses to natural speech.
  • Avatar video streaming operates over WebRTC alongside WebSocket connections for response control.

Regarding costs, the post noted that the OpenSearch Serverless vector store is billed per OpenSearch Compute Unit (OCU) with an always-on minimum threshold independent of query volume, representing a fixed baseline cost of a few hundred dollars per month in the default configuration, on top of which are variable language model costs that the caching mechanism is designed to reduce.

Implementation Phases of the Solution

The setup process is described in three main phases:

  1. Knowledge Foundation Setup: Documents are uploaded to a repository in Amazon S3 in supported formats such as Word, PDF, plain text, Markdown, or JSON (with Markdown and JSON recommended for optimal retrieval performance). An AWS Glue ETL job can optionally be used to convert documents from other formats before uploading.
  2. Infrastructure Deployment: Infrastructure deployment using AWS CloudFormation templates, which includes setting up Amazon Cognito for user authentication and access controls, configuring API Gateway endpoints, establishing S3 repositories for knowledge storage, and implementing DynamoDB for response caching.
  3. AI Integration: Configuring Amazon Bedrock, connecting Lambda functions for orchestration, setting up the audio processing pipeline with Transcribe and Polly, and integrating the avatar system.

Initial deployment requires appropriate AWS IAM permissions for all involved services. The foundation models used in the implementation are Amazon Titan Text Embeddings for document encoding, as well as Amazon Nova Pro and Anthropic Claude 3 Sonnet as selectable models for generating responses. According to the post, Amazon Bedrock provides automatic access to Amazon-owned serverless models, so Amazon Nova Pro and Amazon Titan Text Embeddings are available by default with no manual enablement; conversely, Anthropic Claude models are not covered by automatic access in all Regions, and before the first Claude model request, a one-time model-access request must be completed in the Bedrock console and appropriate AWS Marketplace subscription permissions ensured.

Performance Optimization and the Caching Mechanism

The system implements a dual-layer caching strategy:

  • A browser-side cache using an LRU algorithm in browser memory for instant responses to repeated questions.
  • A server-side cache in DynamoDB with intelligent Time-To-Live (TTL) settings tailored to content type: longer retention for fundamental knowledge, medium-term for operational procedures, and short-term for time-sensitive information.

In the current implementation, cache matching is performed based on exact query text matching. In AWS testing, for workloads with 50 to 70 percent repeated questions, the cache hit rate resulted in a comparable reduction in variable language model inference costs.

Knowledge Updates, Accuracy Considerations, and Limitations

To keep the system current, Amazon S3 event notifications are configured: adding or removing a document triggers a Lambda function that initiates synchronization and re-indexing in Bedrock Knowledge Bases without manual intervention.

In terms of accuracy, Bedrock grounds answers in passages retrieved from the organization's verified documents and can return source citations for verification. However, the post emphasizes that this grounding reduces but does not completely eliminate the risk of incorrect answers, so for high-consequence or safety-related decisions, a human should be kept in the loop and the system should be treated as decision support rather than an exclusive authoritative source.

Additionally, this architecture depends on continuous cloud connectivity and includes no offline capability in this prototype, making it suitable for connected environments (such as training rooms, quality labs, and control rooms) rather than network-disconnected plant floors. In testing, the default configuration was estimated to support roughly 50 to 100 concurrent users, with the figures representing indicative estimates only and not guarantees, depending on Region, model choice, document size, cache hit rate, and service quotas; enterprise-scale expansion to over 5,000 concurrent users is achievable with the same architecture but requires proactive service-quota increases.

Questions & Answers

FAQ

This article was produced by our AI-assisted system through translation, summarization, and automated quality controls based on original reporting by AWS Machine Learning. Read about our editorial process. Link to the original source.

Get useful AI updates by email

A concise digest from our news desk.

More articles you might like

All articles
שרשרת מחשבה (CoT): טכניקות ומתי להשתמש בהן
מדריך
4 דקות
מ־n8n

שרשרת מחשבה (CoT): טכניקות ומתי להשתמש בהן

טכניקת שרשרת מחשבה (Chain-of-Thought - CoT) מסייעת למודלי שפה גדולים (LLMs) להתמודד עם משימות חשיבה מורכבות ורב-שלביות. במקום לספק תשובה ישירה שעלולה להיות שגויה או חלקית, מודל השפה מייצר שלבי ביניים לוגיים המדמים חשיבה אנושית. המאמר סוקר חמש טכניקות נפוצות של CoT: החל מ-Zero-shot פשוט ועד לשיטות מתקדמות כמו עקביות עצמית (self-consistency) וצעד אחורה (step-back). בנוסף, מוצגות דרכים פרקטיות ליישום וניהול פקודות אלו באופן ויזואלי ובר-ביקורת באמצעות פלטפורמת n8n, תוך הבחנה בין משימות שבהן השיטה משפרת את הדיוק לבין משימות פשוטות שבהן היא עלולה לפגוע בביצועים ולהוביל להזיות.

קרא עוד
שיטות אימות API מוסברות: ממפתחות ועד אסימונים
מדריך
5 דקות
מ־n8n

שיטות אימות API מוסברות: ממפתחות ועד אסימונים

במדריך מקיף זה מבית n8n, מוצגות שבע שיטות אימות ה-API הנפוצות ביותר – כולל מפתחות API, אימות בסיסי, mTLS, HMAC, OAuth 2.0, JWT ו-OpenID Connect. המדריך מפרט את היתרונות והחסרונות של כל גישה, מציע שיטות עבודה מומלצות לאבטחת ממשקי REST API, ומסביר כיצד פלטפורמת האוטומציה n8n מאפשרת לנהל ולאחסן אישורי גישה מוצפנים בצורה מאובטחת, במיוחד בסביבות העושות שימוש בסוכני בינה מלאכותית (AI agents) או סוכני קוד ללא חשיפת המפתחות אליהם.

קרא עוד
מיקרו-שירותים מונחי אירועים: ארכיטקטורה, תבניות ופשרות בייצור
מדריך
6 דקות
מ־n8n

מיקרו-שירותים מונחי אירועים: ארכיטקטורה, תבניות ופשרות בייצור

ארכיטקטורת מיקרו-שירותים מונחי אירועים (Event-Driven Microservices) מציעה אלטרנטיבה גמישה ועמידה לחיבור הסינכרוני המסורתי בין שירותים. במדריך שפורסם על ידי צוות n8n ויוליה דמיטרייבנה, נדונים היתרונות של הגישה – כגון יכולת התרחבות עצמאית, עמידות גבוהה יותר ופיתוח מהיר – לצד הפשרות והאתגרים הכרוכים בה, הכוללים קשיים בתצפיתיות (observability), ניפוי שגיאות מורכב ודרישה לעקביות בסופו של דבר (eventual consistency). המדריך מפרט את ההבדלים המרכזיים בין תורי הודעות (Message Queues) לזרמי אירועים (Event Streams), מזהה תבניות אנטי-פטרן נפוצות בייצור שיש להימנע מהן, ומציג מקרים מעשיים של שימוש כמו עיבוד הזמנות במסחר אלקרוני ומערכות פיננסיות. לבסוף, מוסבר כיצד פלטפורמת n8n משמשת כשכבת תזמור מעשית המאפשרת לנטר ולנהל את זרימות האירועים החוצות שירותים בקלות.

קרא עוד
בניית אובזרבביליטי לסוכני AI בתהליכי עבודה בייצור
מדריך
4 דקות
מ־n8n

בניית אובזרבביליטי לסוכני AI בתהליכי עבודה בייצור

מדריך יישום זה מבית n8n מפרט כיצד לבנות יכולות אובזרבביליטי (observability) עבור סוכני בינה מלאכותית (AI Agents) בסביבות ייצור. בניגוד לאפליקציות מסורתיות, סוכני AI מקבלים החלטות דינמיות ומשתמשים בכלים שונים, מה שמקשה על ניפוי שגיאות באמצעות ניטור רגיל. המדריך מציג את שלושת סוגי הטלמטריה הקריטיים – עקבות (Traces), מדדים (Metrics) ולוגים (Logs) – ומשווה בין כלים פופולריים כמו Langfuse, LangSmith, Arize AI, Datadog ו-n8n. בנוסף, המדריך מתווה חמישה שלבים מעשיים להטמעת אובזרבביליטי משלב הכניסה ועד לניהול שגיאות והתראות בזמן אמת, לצד שיטות עבודה מומלצות לשמירה על יציבות ואמינות המערכת.

קרא עוד