Skip to main content

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.

Metadata

Release files for semantify 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for semantify 0.0.3
File Size Uploaded
semantify-0.0.3.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for semantify 0.0.3
File Interpreter ABI Platform
semantify-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 35.4 kB

Release files / semantify-0.0.3.tar.gz

Download URL semantify-0.0.3.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
70f50567ed5a67e029043ff7eec721cf0ac5833980d909adb3cc3c1e959c28bf
BLAKE2b-256 checksum
How to use checksums
07e4d6cb3f7d4a062f992878a4b3e831e4a31b5a54f6f284d70935c33c22ba1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.6 Darwin/22.6.0

Release files / semantify-0.0.3-py3-none-any.whl

Download URL semantify-0.0.3-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d68b2b94a45497cecb908fef73e2fa5dff09997391ef55105df0299b5f4918a
BLAKE2b-256 checksum
How to use checksums
0a3347af7ce28542d164a1ec050b1fd4ab30e03550c037b8c25f45acafd4b83d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.6 Darwin/22.6.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page