Semantify enriches content with AI-generated summaries, Q&A, and semantically similar recommendations for CMS deployments.
Project description
Semantify
Semantify is a powerful CLI tool designed to enhance long-form content by leveraging Generative AI. It enriches MDX blog posts with AI-generated summaries, Q&A sections, and semantically similar recommendations, providing a richer and more engaging reader experience. Ideal for content creators, marketers, and anyone looking to elevate their written content, Semantify automates the process of adding valuable, semantic information and establishing deeper connections between blog posts.
Features
- AI-Generated Summaries: Automatically generates concise summaries for your blog posts, making it easier for readers to grasp the essence of your content quickly.
- Q&A Sections: Creates engaging Q&A sections from your content, adding interactive and informative elements that enhance reader engagement.
- Semantic Recommendations: Analyzes your content to recommend your other relevant blog posts, helping to increase page views and keep readers engaged with your site longer.
- Customizable Enhancements: Offers options to selectively update reading time estimates, recommendations, and Q&A sections for all blog posts.
Installation
Semantify requires Python 3.9 or later. You can install Semantify directly from PyPI:
pip install semantify
This command will install Semantify and all required dependencies.
Usage
After installation, you can run Semantify from the command line. Here's how to get started:
semantify --blog-directory "/path/to/your/blog/directory"
Basic Commands
-
Specify an OpenAI API Key: To use the AI features, you must provide an OpenAI API key. You can pass this key directly through the command line or set it as an environment variable (
OPENAI_API_KEY
).semantify --openai-api-key "your_openai_api_key"
-
Replace Reading Time: To update the reading time estimates for your blog posts:
semantify --replace-reading-time
-
Replace Recommendations: To refresh the recommendations for your blog posts:
semantify --replace-recommendations
-
Replace Q&A: To update the Q&A sections for your blog posts:
semantify --replace-qa
Configuration
Semantify works out of the box with minimal configuration. However, you can customize various aspects of its behavior through command-line options or environment variables.
Running the Examples
To run the examples, you need to have poetry installed. Then, from the root of this repository run:
poetry install
poetry build
With the project built, you can install with pip:
pip install dist/semantify-0.0.1-py3-none-any.whl
Now, you can run the Astro.js example using the provided run_semantify.sh
script
Contributing
Contributions to Semantify are welcome! Whether it's bug reports, feature requests, or code contributions, please feel free to reach out or submit a pull request.
License
Semantify is released under the Apache 2.0 License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file semantify-0.0.3.tar.gz
.
File metadata
- Download URL: semantify-0.0.3.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.6 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f50567ed5a67e029043ff7eec721cf0ac5833980d909adb3cc3c1e959c28bf |
|
MD5 | 36591097bca65ab0d348e05ee3cbcf81 |
|
BLAKE2b-256 | 07e4d6cb3f7d4a062f992878a4b3e831e4a31b5a54f6f284d70935c33c22ba1c |
File details
Details for the file semantify-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: semantify-0.0.3-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.6 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d68b2b94a45497cecb908fef73e2fa5dff09997391ef55105df0299b5f4918a |
|
MD5 | 521c0be4d5d420a13e95fd4e6ebc434a |
|
BLAKE2b-256 | 0a3347af7ce28542d164a1ec050b1fd4ab30e03550c037b8c25f45acafd4b83d |