Coder Social home page Coder Social logo

moomoh / plagiarism-tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from austonianai/chatbot-starter

0.0 0.0 0.0 277 KB

This repository contains a simple but powerful chatbot built with Streamlit, OpenAI, and LangChain. The chatbot maintains conversational memory, meaning it can reference past exchanges in its responses.

Home Page: https://chatbot-starter.streamlit.app/

Python 100.00%

plagiarism-tool's Introduction

ChatBot Starter with Streamlit, OpenAI, and LangChain

This repository contains a simple yet powerful chatbot built with Streamlit, OpenAI, and LangChain. The chatbot maintains conversational memory, meaning it can reference past exchanges in its responses.

Overview

The chatbot is a demonstration of integrating OpenAI's GPT model, the LangChain library, and Streamlit for creating interactive web applications. The bot's conversational memory allows it to maintain context during the chat session, leading to a more coherent and engaging user experience. Importantly, this feature-rich chatbot application is implemented in less than 40 lines of code (excluding whitespace and comments)!

Key Features

  • Streamlit: A powerful, fast Python framework used to create the web interface for the chatbot.
  • OpenAI's GPT: A state-of-the-art language processing AI model that generates the chatbot's responses.
  • LangChain: A wrapper library for the ChatGPT model that helps manage conversation history and structure the model's responses.

Demo App

Streamlit App

How to Run

Prerequisites

  • Python 3.6 or higher
  • Streamlit
  • LangChain
  • OpenAI API key

Steps

  1. Clone this repository.
  2. Install the necessary Python packages using the command pip install -r requirements.txt.
  3. Set the environment variable for your OpenAI API key.
  4. Run the Streamlit app using the command streamlit run streamlit_app.py.

Usage

The chatbot starts with a system message that sets the tone for the conversation. It then alternates between receiving user inputs and generating AI responses. The conversation history is stored and used as context for generating future responses, allowing the chatbot to maintain conversational continuity.

Contribution

Contributions, issues, and feature requests are welcome. Feel free to check the Issues page if you want to contribute.

License

This project is licensed under the terms of the MIT license.

plagiarism-tool's People

Contributors

austonianai avatar dataprofessor avatar moomoh 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.