Conversational AI Assistant with Memory

The Conversational AI Assistant with Memory is an advanced interactive AI system designed to engage in natural language conversations, remember important information, and retrieve relevant info to enhance responses. This versatile assistant integrates text embedding, vector similarity search, and text-to-speech capabilities to provide a seamless user experience.

Description

The Conversational AI Assistant with Memory is an advanced interactive AI system designed to engage in natural language conversations, remember important information, and retrieve relevant info to enhance responses. This versatile assistant integrates text embedding, vector similarity search, and text-to-speech capabilities to provide a seamless user experience.

Dependencies:

  • requests
  • faiss
  • numpy
  • pickle
  • openai
  • pyttsx3
  • speech_recognition
  • os

Installation and Run Instructions:

  1. Install Dependencies: Ensure you have Python installed, then use pip to install the required libraries:
    pip install requests faiss-cpu numpy openai pyttsx3 SpeechRecognition
  2. Prepare the Local Language Model: Ensure you have a local language model server running at http://localhost:1234/v1. Follow the instructions for setting up a language model server compatible with the code.
  3. Set Up the Index and Documents Directory: Create the necessary directories and files for storing the FAISS index and document lists:
    C:\faiss_index
    touch C:\faiss_index.bin C:\documents.pkl C:\important_documents.pkl
  4. Run the Application: Execute the main script to start the Conversational AI Assistant:
    python main.py
  5. Interact with the Assistant: Once the application is running, you can start speaking to the assistant. It will listen to your queries, provide responses, and remember important information.
  6. Exiting the Application: To exit the application, simply say “exit” or “quit” during the interaction.

Note: Ensure your microphone is properly configured and accessible to the application for speech recognition to function correctly.