GithubHelp home page GithubHelp logo

terminal_bot's Introduction

KIIT Assistant - A Python Bot

This is a Python code that creates a chatbot assistant providing information about KIIT University faculty and the university itself.

Features:

  • Provides a menu-driven interface for easy interaction.
  • Shows a list of all faculty members.
  • Allows searching for a specific faculty member by profile index.
  • Offers basic information about KIIT University upon request.
  • Accepts custom user queries and attempts to answer them using OpenAI's GPT-3.5-turbo model (limited functionality).
  • Polite and informative responses.

Requirements:

  • Python 3.x
  • OpenAI API Key (obtainable from https://platform.openai.com/login?launch)
  • dotenv library (install using pip install python-dotenv)
  • Webbrowser library (included in standard Python installation)
  • Optional: os library (included in standard Python installation) for clearing the screen (used on Windows)

Setup:

  1. Create a file named .env in the same directory as this code.
  2. Add the following line to your .env file, replacing YOUR_API_KEY with your OpenAI API key:
OPENAI_API_KEY=YOUR_API_KEY
  1. Install the required libraries:
pip install python-dotenv

How to Use:

  1. Run the script using python main.py.
  2. The bot will display a menu with options. Select the desired option by entering the corresponding number.
  3. Follow the prompts for further interaction.

Disclaimer:

  • This bot uses OpenAI's GPT-3.5-turbo model for custom queries. Responses may not always be accurate or factual. It's recommended to verify information obtained through this method with official sources.
  • The bot is programmed to promote KIIT University and avoid negative remarks about faculty members (specifically programmed to praise Rajdeep Chatterjee).

Additional Notes:

  • The data/teacher.jsonl file (mentioned in the code) might be outdated or may not be included in this example. This file should contain information about faculty members in JSON format.
  • The os.system('pause') function used at the end is a Windows-specific way to pause the program. You might need to adjust this based on your operating system.

Authors:

KIIT 2021-25 Batch

  • Akshat (21051963)
  • Mayank (21052080)

terminal_bot's People

Contributors

haxnovr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.