Skip to content

A open-source AI chatbot that answers questions about Oscar, a Brown University's high performance computing cluster for both research and classes maintained and supported by Center for Computation and Visualization (CCV).

Notifications You must be signed in to change notification settings

DuoAlly/oscar-chatbot

Repository files navigation

Oscar Chatbot

Oscar Chatbot is an open-source AI-powered chatbot assistant that answers questions from Oscar's documentation. It uses FAISS for indexing, Sentence Transformers for embeddings, and OpenAI’s GPT-3.5 for generating responses. The project features a Flask backend and a JavaScript frontend styled with a GitBook-inspired design.

Requirements

  • Python 3.8+
  • pip

Setup

  1. Clone the repository and navigate to this directory.
  2. (Optional) Create and activate a virtual environment:
    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Index your documentation:
    Run the following command that generates index and pickle files (chunk_metadata.pkl and faiss_index.index) for all the markdown documents inside oscar-documentation:
    python index_documents.py
  5. Set your OpenAI API key:
    Export your API key as an environment variable:
    export OPENAI_API_KEY=your_api_key_here

Running

Start the Flask server:

python server.py

Then open http://localhost:5000 in your browser to chat about Oscar.

Demo

oscar.chatbot.mov

About

A open-source AI chatbot that answers questions about Oscar, a Brown University's high performance computing cluster for both research and classes maintained and supported by Center for Computation and Visualization (CCV).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published