This project encompasses two powerful applications using Mistral AI π€:
- RAG with Mistral AI: This implementation extracts blog content π from a provided URL π, processes it by chunking βοΈ, embedding π, and storing the embeddings in a FAISS database ποΈ. The system then performs Retrieval-Augmented Generation (RAG) π to retrieve relevant information from the database and generate context-aware responses.
Key Features:
RAG with Mistral AI:
- URL Content Extraction ππ: Extracts the entire blog content from a provided URL.
- Chunking and Embedding βοΈπ: Breaks down the content into smaller chunks, converts them into embeddings, and stores them in a FAISS database ποΈ.
- RAG Model ππ€: Performs RAG using the stored embeddings to generate responses based on the extracted blog content.
- Function Calling with Mistral:
This part demonstrates function calling π±οΈ with Mistral AI π€ to interact with a database containing transaction data π³π. Two functions, retrieve_payment_status and retrieve_payment_dates, are used to extract specific information (payment status and payment dates) from the transaction database based on the provided query parameters.
Key Features:
Function Calling with Mistral:
- Database Integration ποΈπ³: Uses a transactional database with columns such as transaction_id, customer_id, payment_amount, payment_date, and payment_status.
- Function Calling π±οΈπ: Defines two functions (retrieve_payment_status and retrieve_payment_dates) to extract specific details from the database.
- Dynamic Querying ππ: Functions are invoked dynamically to retrieve information based on transaction data.