You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **DynamoDB Table**: Tracks analytics job status and results
265
282
- **Lambda Functions**: Request handler and processor functions
266
283
- **AppSync Resolvers**: GraphQL API endpoints for web UI integration
@@ -269,10 +286,11 @@ The feature automatically creates:
269
286
### Environment Variables
270
287
271
288
Key configuration settings:
289
+
272
290
- `ANALYTICS_TABLE`: DynamoDB table for job tracking
273
291
- `ATHENA_DATABASE`: Database containing processed document data
274
292
- `ATHENA_OUTPUT_LOCATION`: S3 location for query results
275
-
- `DOCUMENT_ANALYSIS_AGENT_MODEL_ID`: AI model for agent processing
293
+
- `CHAT_COMPANION_MODEL_ID`: AI model for agent processing
276
294
277
295
## Best Practices
278
296
@@ -295,21 +313,25 @@ Key configuration settings:
295
313
### Common Issues
296
314
297
315
**Agent Not Responding:**
316
+
298
317
- Check CloudWatch logs for the Analytics Processor Lambda function
299
318
- Verify Bedrock model access is enabled for your selected model
300
319
- Ensure sufficient Lambda timeout (15 minutes) for complex queries
301
320
302
321
**SQL Query Errors:**
322
+
303
323
- Agent automatically retries failed queries up to 5 times
304
324
- Check that column names are properly quoted in generated SQL
305
325
- Verify database permissions for Athena access
306
326
307
327
**Visualization Errors:**
328
+
308
329
- Check that query results contain expected data types
309
330
- Verify Python code generation in AgentCore sandbox
310
331
- Review agent messages for detailed error information
311
332
312
333
**Performance Issues:**
334
+
313
335
- Consider using simpler queries for large datasets
314
336
- Try breaking complex questions into smaller parts
315
337
- Monitor Athena query performance and optimize if needed
@@ -333,6 +355,7 @@ The Agent Analysis feature uses several AWS services that incur costs:
333
355
- **Amazon DynamoDB**: Storage and request costs for job tracking
334
356
335
357
To optimize costs:
358
+
336
359
- Choose appropriate Bedrock models based on accuracy vs. cost requirements
337
360
- Monitor usage through AWS Cost Explorer
338
361
@@ -341,11 +364,13 @@ To optimize costs:
341
364
The Agent Analysis feature has access to _all_ tables that the GenAIIDP stores in Athena. Therefore it integrates seamlessly with other GenAIIDP capabilities:
342
365
343
366
### Evaluation Framework Integration
367
+
344
368
- Query evaluation metrics and accuracy scores
345
369
- Analyze patterns in document processing quality
346
370
- Compare performance across different processing patterns
0 commit comments