Skip to main content

Get a hand writing your content with AI super powers!

Project description

wagtail-ai

Wagtail AI

Get help with your content using AI superpowers.

License: MIT PyPI version ai CI

Wagtail AI integrates Wagtail with AI's APIs (think ChatGPT) to help you write and correct your content.

Right now, it can:

  • Give you suggestions for titles and meta descriptions based on your page content
  • Suggest titles and descriptions for your images
  • Generate relevant alt text for your images based on both the image and surrounding page content
  • Provide qualitative feedback on your content with actionable improvement suggestions
  • Suggest related pages based on semantic similarity using vector embeddings
  • Work with multiple LLM providers including local models, OpenAI, Mistral, Claude and many others
  • Let you add your own custom prompts
  • Correct your spelling/grammar
  • Finish what you've started - write some text and tell Wagtail AI to finish it off for you

Demos

Page title and meta description suggestions

https://github.com/user-attachments/assets/4fcd543f-50fd-4687-b6ba-0715338bb92a

Image title, description, and contextual alt text suggestions

https://github.com/user-attachments/assets/7f9d86f4-f4b0-41c1-bc13-f9c37368570c

Content feedback

https://github.com/user-attachments/assets/45d1de20-8143-4572-ba5e-1cf4b350e121

Rich-text integration

https://user-images.githubusercontent.com/27112/223072938-8cb5ccff-4835-489a-8be4-cca85001885e.mp4

Requirements & Costs

Wagtail AI supports many different LLMs, with OpenAI models available by default. To use these, you'll need an OpenAI account and an API key. There'll also be some cost involved.

For the OpenAI API used here (gpt-3.5-turbo), the cost is

  • $0.0005 per 1000 tokens for input tokens (prompt)
  • $0.0015 per 1000 tokens for output tokens (answer)

Here is an estimated cost breakdown for the correction prompt on a 1000-word paragraph.

We assume that:

  • Prompt is 30 words and the existing paragraph is 1000 words (Input)
  • Each word is 1.3 tokens (Tokens multiplier)
  • We get back 1000 words back (Output)

Then:

  • Input tokens : (35 + 1000) x 1.3 = 1345.5 tokens.
  • Output tokens : 1000 x 1.3 = 1300
  • Input tokens cost : 1345.5 / 1000 * $0.0005 = $0.00067275
  • Output tokens cost : 1300 / 1000 * $0.0015 = $0.00195
  • Total cost : $0.00262275

Links

Supported Versions

  • Wagtail 7.1+
  • Django 4.2+
  • Python 3.11+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail_ai-3.1.0.tar.gz (114.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_ai-3.1.0-py3-none-any.whl (330.5 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_ai-3.1.0.tar.gz.

File metadata

  • Download URL: wagtail_ai-3.1.0.tar.gz
  • Upload date:
  • Size: 114.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wagtail_ai-3.1.0.tar.gz
Algorithm Hash digest
SHA256 377a8a179c5272a31b8b9ea26a2b5c792a3a5ffecc4b364b5df2ea472582958d
MD5 504d11254356aeb5c6f95f655cc5d5e2
BLAKE2b-256 109cc1921c390439d3dbc3a7fbfa4747084578e1d5c033631116fef428a9ddb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_ai-3.1.0.tar.gz:

Publisher: publish.yml on wagtail/wagtail-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wagtail_ai-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: wagtail_ai-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 330.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wagtail_ai-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed6e2cd8a189726ba0f9bee2f990f0fe1f66db66df229f491a2b45a048af042
MD5 c814a990d9373f85c1a9f4d33a7f0217
BLAKE2b-256 289aa8067c94a134a8d4a7f66773a177da6fe131d43178b8b76afe526f889b20

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_ai-3.1.0-py3-none-any.whl:

Publisher: publish.yml on wagtail/wagtail-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page