blog-post-classifier-demo

This tiny script utilizes the Langchain.rb Assistant and Tools to classify a blog post found in a text file.

Usage

  1. git clone https://github.com/patterns-ai-core/blog-post-classifier-demo.git
  2. bundle install
  3. cp .env.example .env and fill it out with your OPENAI_API_KEY.
  4. ruby classifier.rb --file=blog_post.txt