Skip to content

Indian-boult/chatbot-using-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot with Image Uploading and Retrieval

Project Overview

Developed a chatbot to handle image uploading and retrieval, utilizing WebSocket communication and OpenAI integration for enhanced interactions

Features

  • Real-time chatting via WebSocket.
  • Image upload and retrieval using REST api's.
  • Conversation context management for OpenAI's GPT interactions.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

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-openai

Installing

A 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

Usage

Using Api's

  • POST /upload Upload an image with an associated identifier.
image
  • GET /retrieve Retrieve the metadata for an uploaded image.
image

Using UI

Here I have created the simple UI to access the chatbot and use it's feature to upload image, retrieve image, talk about image. image

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published