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.
- Python 3.8+
- pip
- Clone the repository and navigate to this directory.
- (Optional) Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Index your documentation:
Run the following command that generates index and pickle files (chunk_metadata.pkl
andfaiss_index.index
) for all the markdown documents inside oscar-documentation:python index_documents.py
- Set your OpenAI API key:
Export your API key as an environment variable:export OPENAI_API_KEY=your_api_key_here
Start the Flask server:
python server.py
Then open http://localhost:5000 in your browser to chat about Oscar.