ecrivai
ecrivai copied to clipboard
Fully automated AI blog writer that uses LangChain and GPT type LLMs for topic selection and content generation
π¦πβοΈEcrivAI
EcrivAI is a fully automated AI blog writer that uses LangChain and GPT type LLMs for topic selection and content generation. The content is published to this blog
Usage
Prerequisites
- π You will need a working install of
conda. - π You will need an API key from OpenAI or Google. You can create one for free here:
Dev Environment Setup
- Set up your API keys in a file called
.env(see.env.examplefor an example) - Set up and activate conda environment
conda env create -f conda.yml conda activate ecrivai
If you are having trouble setting your environment variables with the
.envfile or you want to manually add them instead of using a.envfile, you can set your environment variable in yourecrivaiconda environment like this:# set api key env var conda env config vars set OPENAI_API_KEY="your-api-key-here" conda env config vars set GOOGLE_API_KEY="your-api-key-here" # re-activate env conda activate base conda activate ecrivai
CLI
Note: Remember to activate your
ecrivaiconda environment before doing this (see above)
You can quickly generate a new original blog by running:
python ecrivai/add_blog.py
This will add a blog to a Markdown file in a directory called content/. You can also specify your own output directory by running this instead:
python ecrivai/add_blog.py --out-dir path/to/dir