This repository contains a Voice Assistant application designed to interact with a knowledge base using voice commands. The project integrates LangChain for managing conversational interactions and DeepLake for knowledge storage and retrieval. The knowledge base includes data retrieved from Wikipedia pages about notable football players.
- Voice-based interaction with a knowledge base
- Natural language processing for understanding and generating responses
- Contextual and relevant responses based on user queries
-
Clone the Repository
git clone https://github.com/javimp2003uma/VoiceAssistantForKnowledgeBase cd VoiceAssistantForKnowledgeBase -
Set Up a Virtual Environment
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` -
Install Dependencies
pip install -r requirements.txt -
Configure the Application
- Set up LangChain and DeepLake according to their respective documentation.
- Create and edit configuration files as necessary.
-
Prepare the API keys. Write an APIkeys.txt file with the following format:
openai: sk-... activeloop: ey... elevenlabs: ...where in each line the API key of the corresponding platform should be written.
-
Run the Application
python3 gatheringData.py streamlit run voiceAssistant.py
- LangChain: Edit
config/langchain_config.ymlto configure LangChain settings. - DeepLake: Follow DeepLake Documentation to set up and configure DeepLake.
- Start the application.
- Use voice commands to interact with the knowledge base.
- The assistant will process queries and provide relevant responses based on the knowledge base content.
For any questions or feedback, please contact on my LinkedIn account: https://www.linkedin.com/in/javier-montes-p%C3%A9rez-a9765a279/
