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
עב
Building an AI- and Avatar-Based Knowledge System on AWS
Based on original reporting byAWS Machine Learning ↗Translated and summarized by our AI-assisted news systemHow we work

Executive summary

What to know

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

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

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

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

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.

Was this useful for your business?

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 from AWS Machine Learning

All articles from AWS Machine Learning
שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר
מוצר חדש
4 דקות
מ־AWS Machine Learning

שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר

שירות Amazon Polly השיק יכולת שכפול קול (voice cloning) הזמינה כעת במסגרת שחרור מבוקר (gated release). היכולת מאפשרת להפיק קול מותאם אישית מתוך מספר דקות של הקלטות של דובר שהסכים לכך, על גבי המנוע היוצר (generative engine) של השירות. השירות תומך בשבע שפות: אנגלית, ספרדית, גרמנית, צרפתית, איטלקית, פורטוגזית והינדי, כאשר כל קול פועל בשפה שבה הוקלט. ההקלטות אינן נשמרות לאחר יצירת הקול ואינן משמשות לאימון מודלים, והגישה לקול מוגבלת לחשבון שיצר אותו עם תמיכה בהצפנת AWS KMS וניהול הרשאות ב-IAM. יצירת הקול ניתנת ללא עלות, והשימוש בסינתזה מחויב לפי צריכה.

קרא עוד
תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity
מדריך
5 דקות
מ־AWS Machine Learning

תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity

בפוסט שפורסם בבלוג של AWS, הוכרזה תמיכה בתעודות רשות אישורים פרטית (Private CA) במסגרת AgentCore Identity, יכולת של Amazon Bedrock AgentCore. יכולת זו מאפשרת לסוכני בינה מלאכותית להתחבר לספקי זהות פרטיים כמו Keycloak המאוחסנים ברשת פנימית, תוך מתן אמון ב-CA הארגוני. התעודה בפורמט PEM נשמרת ב-Secrets Manager או ב-S3 ומאומתת מול נקודות הקצה של ה-IdP דרך Amazon VPC Lattice. הפוסט מפרט את אופן ההגדרה, שלבי הניטור ב-CloudWatch ותהליך ביצוע רוטציה ללא השבתה.

קרא עוד
ניהול עלויות מקצה לקצה ב-Amazon Bedrock: מדריך לצוותי FinOps
מדריך
5 דקות
מ־AWS Machine Learning

ניהול עלויות מקצה לקצה ב-Amazon Bedrock: מדריך לצוותי FinOps

בפוסט של מומחי AWS מוצג מודל תפעולי בן חמישה שלבים לניהול עלויות ב-Amazon Bedrock, המיועד לצוותי FinOps והנדסת פלטפורמה. המודל מתמקד בעומסי עבודה של סוכני בינה מלאכותית (agentic workloads), שבהם צריכת הטוקנים מושפעת מרמת האוטונומיה וגודל ההקשר. חמשת השלבים כוללים: שיוך עלויות לכל ישות וצוות באמצעות תגי IAM ודוחות CUR 2.0; יצירת יכולת תצפית ובקרה באמצעות רישום יומני הסקה ב-CloudWatch וב-S3 לצד מטא-דאטה מובנית; אכיפת תקציבים בשלוש רמות (התראות, שלילת הרשאות ב-IAM או חסימה סינכרונית בשער); מיטוב ברירות מחדל באמצעות שמירה במטמון (prompt caching) וניתוב מודלים חכם; והפעלת סקירת ביצועים משותפת מבוססת מדדים ברורים.

קרא עוד
אימון סוכנים ב-Multi-Turn Reinforcement Learning ב-SageMaker AI
מדריך
5 דקות
מ־AWS Machine Learning

אימון סוכנים ב-Multi-Turn Reinforcement Learning ב-SageMaker AI

מדריך טכני של מהנדסי AWS מציג את השימוש ב-Multi-Turn Reinforcement Learning (MTRL) על גבי Amazon SageMaker AI לאימון סוכני בינה מלאכותית על רצפי פעולות מרובי שלבים. באמצעות הדגמה על משחק Wordle, המאמר מפרט כיצד אימון מודל GPT-OSS-20B בעזרת סביבת Amazon Bedrock AgentCore ואלגוריתם GRPO העלה את שיעור הפתרון מ-61% ל-84% בהגדרות הגשה, בעלות של כ-339 דולר בטוקנים. המדריך כולל פירוט על ארכיטקטורת המערכת, הכנת מערך הנתונים ללא תוויות, נוסחת פונקציית התגמול המפרידה בין תוצאה לעיצוב התנהגות, והתמודדות עם תקלות תשתית ואימות במהלך האימון.

קרא עוד

More articles you might like

All articles
תזמור סוכני בינה מלאכותית: המדריך לניהול כוח העבודה העסקי החדש
מדריך
5 דקות
מ־Salesforce Blog

תזמור סוכני בינה מלאכותית: המדריך לניהול כוח העבודה העסקי החדש

מדריך שפורסם על ידי סיילספורס (Salesforce) מפרט כיצד פועל תזמור של סוכני בינה מלאכותית (AI orchestration) ומה תפקידו של מתזמר הבינה המלאכותית בעסקים. לפי המדריך, תזמור עוסק בתיאום בין סוכנים מרובים כך שכל שלב מנותב לסוכן המתאים ביותר, בעוד אדמיניסטרציית בינה מלאכותית מתמקדת בתחזוקה, הרשאות ובדיקת איכות הנתונים. המדריך מציג מחזור עבודה קבוע הכולל קליטה, ניתוב, פעולה וסקירה אנושית, ומדגיש כי מחקר של Slack מצא ש-41% מהזמן בעבודה אובד על משימות חזרתיות. כדי לתזמר סוכנים אין צורך בידע בכתיבת קוד, אלא בשיקול דעת, בניסוח הנחיות ברורות ובשימוש במערכת CRM כבסיס נתונים משותף המונע ניחושים ושומר על רצף המידע.

קרא עוד
תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity
מדריך
5 דקות
מ־AWS Machine Learning

תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity

בפוסט שפורסם בבלוג של AWS, הוכרזה תמיכה בתעודות רשות אישורים פרטית (Private CA) במסגרת AgentCore Identity, יכולת של Amazon Bedrock AgentCore. יכולת זו מאפשרת לסוכני בינה מלאכותית להתחבר לספקי זהות פרטיים כמו Keycloak המאוחסנים ברשת פנימית, תוך מתן אמון ב-CA הארגוני. התעודה בפורמט PEM נשמרת ב-Secrets Manager או ב-S3 ומאומתת מול נקודות הקצה של ה-IdP דרך Amazon VPC Lattice. הפוסט מפרט את אופן ההגדרה, שלבי הניטור ב-CloudWatch ותהליך ביצוע רוטציה ללא השבתה.

קרא עוד
אוטומציה של טופסי יצירת קשר באמצעות עוזרי AI ו-Zapier
מדריך
4 דקות
מ־Zapier

אוטומציה של טופסי יצירת קשר באמצעות עוזרי AI ו-Zapier

במאמר שפורסם בבלוג של Zapier מוסבר כיצד ניתן לחבר טופסי יצירת קשר ליישומים עסקיים באמצעות עוזרי בינה מלאכותית. חיבור Zapier לעוזר AI דוגמת Claude, ChatGPT או Cursor, כשרת MCP או כמחבר, מאפשר למשתמש לתאר בשפה פשוטה את הפעולות הנדרשות עבור כל הגשת טופס. הסוכן בונה תהליך עבודה אוטומטי (Zap) המתחבר ליותר מ-9,000 אפליקציות, כגון HubSpot, Salesforce ו-Slack. האוטומציה פועלת ברגע קבלת הטופס, משתמשת בבינה מלאכותית רק לשלבים הדורשים שיקול דעת, ושומרת על פרטי ההתחברות ומפתחות ה-API מחוץ לצ'אט.

קרא עוד
מדריך סיילספורס לפיתוח סוכני AI, אפליקציות וארכיטקטורת Headless
מדריך
4 דקות
מ־Salesforce Blog

מדריך סיילספורס לפיתוח סוכני AI, אפליקציות וארכיטקטורת Headless

לפי מדריך שפרסמה סיילספורס, ארגונים נדרשים להתאים את מחזורי הפיתוח לעידן הבינה המלאכותית ולפתח סוכנים ואפליקציות מבלי להתפשר על אבטחה ואיכות. המדריך מתווה תהליך עבודה מודולרי בן שישה שלבים הכולל תכנון, בנייה, בדיקה, פריסה, ניטור והרחבה, תוך שילוב עקבי של משילות ואבטחה לכל אורך הדרך. במסגרת הבנייה מוצגים כלי פיתוח שונים, בהם Vibe coding, כלי Low-code ו-No-code כגון Builder Central, לצד ניתוב מחדש של קידוד מסורתי למשימות מותאמות אישית. שלבי הבדיקה והפריסה נשענים על סביבות Sandbox, מיסוך נתונים וכלי DevOps מובנים, בעוד ששכבת Headless ופרוטוקולי MCP מאפשרים לחבר את הסוכנים למערכות ארגוניות ולנתונים מנוהלים.

קרא עוד