Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 365 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 365 Bytes

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