Developed a chatbot to handle image uploading and retrieval, utilizing WebSocket communication and OpenAI integration for enhanced interactions
- Real-time chatting via WebSocket.
- Image upload and retrieval using REST api's.
- Conversation context management for OpenAI's GPT interactions.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
go get github.com/gorilla/mux
go get github.com/gorilla/websocket
go get github.com/go-sql-driver/mysql
go get github.com/joho/godotenv
go get github.com/sashabaranov/go-openaiA step-by-step series of examples that tell you how to get a development environment running, before that please make sure that you are ran setup.sql script in the chatbot db and have specified all configurations along with openai key in .env file:
# Clone the repository
git clone https://github.com/yourusername/chatbot.git
# Navigate to the project directory
cd chatbot
# Build the project (optional)
go build
# Run the server
go run cmd/chatbot/main.go- POST /upload Upload an image with an associated identifier.
- GET /retrieve Retrieve the metadata for an uploaded image.
Here I have created the simple UI to access the chatbot and use it's feature to upload image, retrieve image, talk about image.

This project is licensed under the MIT License - see the LICENSE.md file for details