This project demonstrates the implementation of a conversational AI agent using OpenAI's powerful language model, along with Langchain for additional functionalities. The AI agent is capable of engaging in conversations on various topics, answering questions, providing recommendations, and more. Additionally, it can be extended to incorporate image recognition capabilities.
- Contextual Responses: Generates contextually relevant responses based on conversation history.
- Knowledge Retrieval: Retrieves information from external sources or databases to answer queries.
- Recommendation Engine: Provides personalized recommendations based on user preferences.
- Multi-Turn Conversations: Supports multi-turn conversations with context retention.
- Image Recognition: Capable of recognizing and analyzing images to provide relevant responses.
To get a local copy of the project up and running, follow these simple steps:
- Python (v3.6 or newer)
- OpenAI API Key (sign up at OpenAI to get your API key)
- Langchain (installation instructions provided below)
-
Clone the repository:
git clone https://github.com/
-
Navigate into the project directory:
cd conversational-ai-agent -
Install dependencies:
pip install -r requirements.txt
-
Set up Langchain: Follow the installation instructions for Langchain from its official repository.
-
Add your OpenAI API Key: Replace
YOUR_OPENAI_API_KEYin the code with your actual OpenAI API key.
Run the main script to start the conversational AI agent:
python main.pyInteract with the AI agent by typing your queries in the terminal.
Contributions are welcome!