Skip to content

Jkrunal7/Function-Calling-and-RAG-Mistral-

Repository files navigation

Function Calling and RAG with Mistral πŸ€–πŸ“š

This project encompasses two powerful applications using Mistral AI πŸ€–:

  1. 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.
  1. 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.

About

Function Calling and RAG with Mistral AI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published