An open API service indexing awesome lists of open source software.

https://github.com/patterns-ai-core/blog-post-classifier-demo


https://github.com/patterns-ai-core/blog-post-classifier-demo

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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`