This repository contains a demos showcasing the implementation of the RAG (Retrieval Augmented Generation) pattern using Azure Cosmos DB for MongoDB vCore with Semantic Cache and LangChain. The RAG pattern combines retrieval-based and generative-based approaches to natural language processing, enhancing text generation capabilities.
- Integration of Azure Cosmos DB for MongoDB vCore as a scalable and fully managed database solution.
- Utilization of LangChain for text processing, enabling retrieval of relevant information and generation of contextually relevant responses.
- Demonstrates how to implement the RAG pattern for enhanced natural language processing tasks.
- Azure subscription for deploying Azure Cosmos DB for MongoDB vCore.
- Python environment with LangChain installed.
- Basic knowledge of MongoDB and natural language processing concepts.
- Follow the steps provided in the README file.
- Step 1 - Load Cosmos DB for Mongo DB Vector Store using sample dataset
- Step 2 - Create FastAPI to integrate LangChain RAG pattern with web front-end.
- Step 3 - Build the React web front-end to ask 'grounded' questions of your data and view relevant documents.
- Follow the setup instructions provided in the README file.
- Run the demo application and explore the RAG pattern in action.
This project is licensed under the MIT License, granting permission for commercial and non-commercial use with proper attribution.
For any questions or issues, please open an issue on GitHub or reach out to the project maintainers.
This demo application is provided for educational and demonstration purposes only. Use at your own risk.