Norman is an open-source chatbot that leverages OpenAI's GPT models to assist and automate communication on various chat platforms like Slack and IRC. The project is built with FastAPI, SQLite, and SQLAlchemy, and is designed to be easily extensible with additional connectors.
- Supports multiple chat platforms (e.g., Slack, IRC) through connectors
- Allows multiple chatbots with different GPT models (e.g., gpt-3.5-turbo, gpt-4)
- Configurable channel filters and actions for automation
- Minimal Web UI for configuration and management
- SQLite database for lightweight deployment
- Authentication and authorization support
- Extendable with custom connectors
app
: The main application directoryapi
: FastAPI routers and API endpointscore
: Core modules like configuration, logging, and exception handlingcrud
: CRUD operations for database modelsdb
: Database models and utilitiesschemas
: Pydantic schemas for API validationconnectors
: Channel connectors (e.g., IRC, Slack)
tests
: Unit tests and integration testsalembic
: Alembic migration scripts and configuration
- Python 3.8 or higher
- pip
- SQLite
- virtualenv (optional)
- Clone the repository:
git clone https://github.com/KristopherKubicki/norman.git
cd norman
- Set up a virtual environment (optional):
python -m venv env
source env/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Create a
config.yaml
based on the providedconfig.yaml.dist
:
cp config.yaml.dist config.yaml
-
Edit
config.yaml
to configure the application, connectors, and API keys. -
Run the
generate_key.sh
script to set a secret key for your application:
chmod +x generate_key.sh
./generate_key.sh
You can also just edit config.yaml instead and make up your own key. You'll also have to set your OpenAI key in the config.yaml file under the key "openai_api_key"
- Run the application:
python main.py
- Open the API documentation in your browser: http://localhost:8000/docs
For more information, refer to the documentation and the contributing guidelines.
For detailed information on how to use Norman, please refer to the Usage section in the documentation.
Norman can be deployed on various platforms, such as on a local server or a cloud provider. For detailed deployment instructions, please refer to our Deployment guide.
The architecture of Norman is designed to be modular and scalable. We have a detailed explanation of our architectural principles in our Architecture document, complete with a simple diagram to help you understand the structure.
Norman is built to be extensible, allowing you to add new connectors, actions, and filters as needed. To learn more about extending Norman, refer to our Extending Norman guide.
We created Norman to provide an open, self-hosted, and open-source solution for accessing large language models like GPT-4. We hope others can build upon and extend Norman to incorporate additional chat technologies and channels. Our philosophy centers on continuous improvement, utilizing automation, and striving for excellence in our project. Learn more about our philosophy in our Philosophy document.
We welcome contributions from the community! If you're interested in helping us improve Norman, please refer to our Contributing guide.
Norman is more than just a software project; it's a community of developers and users working together to create something special. To learn more about our community and how to get involved, check out our Community page.
Norman is licensed under the MIT License. For more information, see the LICENSE.md file.