Skip to content

Fully automated blog writer that uses LangChain and GPT type LLMs for topic selection and content generation

License

Notifications You must be signed in to change notification settings

tuhinmallick/ecrivai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blog-link auto-publish GitHub stars GitHub forks GitHub contributors GitHub last commit

🦜🔗✏️EcrivAI

EcrivAI is an automated blog writer that uses LangChain and GPT type LLMs for topic selection and content generation. The content is published to this blog

Star History Star History Chart

Usage

Prerequisites

  1. 🐍 You will need a working install of conda.
  2. 🔑 You will need an API key from OpenAI. You can create one for free here.

Dev Environment Setup

  1. Set up your API keys in a file called .env (see .env.example for an example)
  2. 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 .env file or you want to manually add them instead of using a .env file, you can set your environment variable in your ecrivai conda environment like this:

# set api key env var
conda env config vars set OPENAI_API_KEY="your-api-key-here"
# re-activate env
conda activate base
conda activate ecrivai

CLI

Note: Remember to activate your ecrivai conda 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

About

Fully automated blog writer that uses LangChain and GPT type LLMs for topic selection and content generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.6%
  • Jupyter Notebook 46.4%