Command Line Interface (CLI) tool designed for utilizing Notion as your knowledge base, with the capability to leverage OpenAI models for generating and enhancing information.
Clone the repository to your local environment:
git clone https://github.com/199ocero/ailoomhub-cli.git
cd ailoomhub-cli
Ensure you have Composer installed. If not, get it here.
Run the following command in the project directory:
composer install
To get started, make sure you have PostgreSQL v14 installed on your system. If you don't have it installed yet, you can download it here.
Once PostgreSQL is installed, create a database for your project by following these steps:
- Open your PostgreSQL environment.
- Use the appropriate commands to create a new database.
To enable vector similarity search in your PostgreSQL database, you'll need to install the pgvector
extension. Follow these instructions:
- Refer to the official documentation for the
pgvector
extension. - Follow the provided instructions to install the extension in your PostgreSQL environment.
After completing these steps, your PostgreSQL setup should be ready for use with the pgvector
extension.
Before starting, ensure you have set your OpenAI Secret Key in the .env
file:
OPENAI_API_KEY=sk-tzY...
-
Create User: To create a user, run:
php artisan make:user
-
Notion Integration: Create a Notion integration using the command:
php artisan make:notion
Note: Create an internal Notion integration here.
-
Embed Collection: Generate an embed collection by running:
php artisan make:embed-collection
-
Retrieve Connected Pages: Use the command to fetch all connected pages:
php artisan make:page-retriever
Note: If no pages are connected, follow the steps here to establish connections.
-
Create Text Embedding: Generate text embedding with:
php artisan make:embedding
-
Ask a Chatbot: You can now test if your chatbot is working:
php artisan ask:chatbot