Scroll down to skip to app demo
This application uses Retrieval-Augmented Generation (RAG) to provide accurate cricket-related answers by combining document retrieval with generative AI. The admin uploads PDFs, which are split into chunks, vectorized, and saved as indices in an S3 bucket using the Titan Embedding Model. Users query the chatbot, which downloads the index files, builds a local vector store, performs similarity searches to retrieve relevant documents, and uses a prompt template to generate responses from the Large Language Model (LLM).
Python, Docker, Amazon Bedrock, LangChain, Amazon S3
- Amazon Titan Text Embeddings V1
- Amazon Titan Text Lite
└── PDF Split
└── Distributed in Chunks
└── Vectorized
└── Titan Embedding Model leveraged to create vector representation
└── Save indices (S3 Bucket)
└── Index files are downloaded from S3 and saved locally to build vector store
└── Langchain RetrievalQA
└── Saved Embedding Model leveraged to convert query into vector embedding
└── Similarity Search executed
└── Gets back 5 matching documents and builds context
└── Leverage prompt template to provide query and context to LLM
└── Shows LLM output













