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.gitbundle installcp .env.example .envand fill it out with yourOPENAI_API_KEY.ruby classifier.rb --file=blog_post.txt