Skip to content

AI-powered ‘10,000 Whys’ chatbot for kids using LangChain, GPT-4o-mini, Google SerpAPI, and Faiss vector database.

License

Notifications You must be signed in to change notification settings

Robbie-Han/MomWhyBot

Repository files navigation

MomWhyBot

English | 中文

MomWhyBot is an AI-powered chatbot designed to answer children's questions in a way that is easy for them to understand.

Features

  • Answers questions in simple, child-friendly language
  • Covers a wide range of topics suitable for children's curiosity
  • Provides explanations that encourage further learning

Installation

To install MomWhyBot, follow these steps:

  1. Clone the repository:
    git clone https://github.com/Robbie-Han/MomWhyBot.git
    
  2. Navigate to the project directory:
    cd MomWhyBot
    
  3. Install the required dependencies:
    pip install -r requirements.txt
    

Usage

To use MomWhyBot, run the following command:

python main.py

Then, follow the on-screen prompts to interact with the chatbot.

Configuration

Before running the bot, make sure to set up your OpenAI API key as an environment variable:

export OPENAI_API_KEY='your-openai-api-key'
export SERPAPI_API_KEY='your-serpapi-api-key'

Environment Setup

  1. Create a virtual environment:

    python -m venv chatbot_env
    
  2. Activate the virtual environment:

    • On Windows:
      chatbot_env\Scripts\activate
      
    • On macOS and Linux:
      source chatbot_env/bin/activate
      
  3. Install dependencies:

    pip install -r requirements.txt
    

Examples

  • Running example: demo

  • Example of running logs: log

About

AI-powered ‘10,000 Whys’ chatbot for kids using LangChain, GPT-4o-mini, Google SerpAPI, and Faiss vector database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages