This tiny script utilizes the Langchain.rb Assistant and Tools to classify a blog post found in a text file.
git clone https://github.com/patterns-ai-core/blog-post-classifier-demo.git
bundle install
cp .env.example .env
and fill it out with yourOPENAI_API_KEY
.ruby classifier.rb --file=blog_post.txt