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
- Host: GitHub
- URL: https://github.com/patterns-ai-core/blog-post-classifier-demo
- Owner: patterns-ai-core
- License: mit
- Created: 2024-08-01T18:39:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T21:08:09.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T21:08:16.132Z (over 1 year ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`