aws-samples / Serverless-Retrieval-Augmented-Generation-RAG-on-AWS

A full-stack serverless RAG workflow. This is thought for running PoCs, prototypes and bootstrap your MVP.
MIT No Attribution
44 stars 17 forks source link

Bug: Allow users to ask a question even when the table does not exist. #16

Closed giusedroid closed 3 months ago

giusedroid commented 3 months ago

Currently, upon user registration, thier LanceDB table does not exist. This causes an issue if they try to ask a question with an empty knowledge-base. Fix: use Cognito post confirmation trigger to create an empty table or manage the exception and provide a user friendly message.

giusedroid commented 3 months ago

error specimen

2024-06-16T12:00:41.012Z    62d1406d-056c-416d-9443-60107eb9f94e    ERROR   Invoke Error    
{
    "errorType": "Error",
    "errorMessage": "LanceDBError: Table 'us-west-2:14b3a170-REDACTED-5acdc' was not found",
    "stack": [
        "Error: LanceDBError: Table 'REDACTED' was not found"
    ]
}

This is coming from inference Lambda

giusedroid commented 3 months ago

addressed in #19

giusedroid commented 3 months ago

addressed with #19