-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
171 lines (115 loc) · 7.05 KB
/
readme.txt
File metadata and controls
171 lines (115 loc) · 7.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
=== Tainacan AI ===
Contributors: Sigismundo, tainacan, wetah, daltonmartins, vnmedeiros
Tags: tainacan, ai, cataloging, museums, image-analysis
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Automated metadata extraction in Tainacan using WordPress AI and Connectors. Prompts, mapping, and analysis are integrated into Tainacan.
== Description ==
Tainacan AI extends the [Tainacan](https://wordpress.org/plugins/tainacan/) plugin with AI-assisted metadata extraction from images and documents. It is intended for museums, archives, libraries, and digital repositories that want to speed up cataloging while keeping control of prompts and field mapping.
**AI access** is provided by **WordPress AI** through **Settings → Connectors** (WordPress 7.0+). This plugin does not store API keys for OpenAI, Gemini, or other vendors in its own settings screen; which model or service runs depends on your site’s connector configuration.
= Key Features =
* **WordPress AI & Connectors**: Uses the site’s configured AI connectors
* **Image analysis**: Extract structured metadata from images when your connector supports it
* **Document analysis**: Extract bibliographic-style or custom JSON fields from PDFs, TXT, and HTML
* **Custom prompts per collection**: Specialized prompts for different collections and schemas
* **Metadata mapping**: Map AI output keys to Tainacan metadata for fill workflows
* **EXIF data extraction**: Optional technical metadata from image files (when the server supports it)
* **PDF support**: Text extraction via bundled parser; optional visual analysis depends on Imagick/Ghostscript and the connector
* **Smart caching**: Reduce repeat analysis with caching and a manual clear action
* **WP Consent API**: Optional consent gate for AI-powered actions (when enabled in settings)
= Supported Formats =
* **Images**: JPG, PNG, GIF, WebP
* **Documents**: PDF (text and optional visual analysis), TXT, HTML
= How It Works =
1. Configure **AI connectors** under **Settings → Connectors** in WordPress
2. Optionally set default prompts, features, and mapping under **Tainacan → Others → AI Tools**
3. Upload an image or document to a Tainacan item
4. Click **Analyze Document** in the item edit form
5. Review extracted fields and map or fill Tainacan metadata
= AI configuration =
Connectors and credentials are managed in **Settings → Connectors**. The plugin relies on WordPress to choose an appropriate connector/model for each request; you do not pick a legacy “provider card” inside Tainacan AI.
= Customization =
Configure default and per-collection prompts, toggle features such as EXIF extraction, map AI field names to Tainacan metadata, and clear cache from **Tainacan → Others → AI Tools**.
== Installation ==
= Automatic Installation =
1. Go to **Plugins > Add New** in your WordPress admin
2. Search for "Tainacan AI"
3. Click **Install Now** and then **Activate**
4. Set up **Settings → Connectors** for AI access, then open **Tainacan → Others → AI Tools** for plugin options
= Manual Installation =
1. Upload the `tainacan-ai` folder to `/wp-content/plugins/`
2. Activate the plugin through the **Plugins** menu in WordPress
3. Configure **Settings → Connectors**, then **Tainacan → Others → AI Tools** as needed
= Requirements =
* WordPress 7.0 or higher (WordPress AI / Connectors)
* PHP 8.0 or higher
* Tainacan plugin (version 1.0 or higher)
* At least one AI connector configured in **Settings → Connectors** (exact providers depend on your site)
= Optional Dependencies =
* **EXIF Extension**: For automatic EXIF data extraction from images
* **Imagick Extension**: For visual PDF analysis (converts PDF pages to images)
* **Ghostscript**: Alternative method for PDF to image conversion
* **PDF Parser Library**: Install via Composer in the plugin directory for PDF text extraction
== Frequently Asked Questions ==
= Do I need the Tainacan plugin? =
Yes. Tainacan AI requires the [Tainacan](https://wordpress.org/plugins/tainacan/) plugin to be installed and active.
= Where do I configure API keys? =
In **Settings → Connectors** (WordPress 7.0+). The Tainacan AI settings page is for prompts, features, cache, and mapping.
= Which AI model or provider is used? =
That depends on your **Connectors** configuration and WordPress AI. This plugin does not expose a separate vendor picker; routing is handled by WordPress.
= How much does it cost? =
Any pricing depends on the services behind your connectors (hosted APIs, etc.).
= Can I customize what metadata is extracted? =
Yes. You can configure default and per-collection prompts and map AI field names to Tainacan metadata.
= Does it work with scanned PDFs? =
Often yes, when Imagick or Ghostscript is available and your connector supports the required modality—but results depend on environment and connector capabilities.
= Is my data sent to external services? =
If your connector uses a remote API, document content may be sent according to that service’s terms. For fully local setups, that depends on your connector. The plugin can integrate with the **WP Consent API** when the consent option is enabled.
= Can I use multiple AI providers? =
You can configure multiple connectors in WordPress; this plugin does not maintain its own separate list of provider API keys.
== Screenshots ==
1. AI Tools settings page (prompts, features, cache)
2. Custom prompt configuration for collections
3. Metadata mapping interface
4. Document analysis in the item edit form
== Changelog ==
= 0.1.0 =
* Migrates to using Core's AI client and Connectors APIs
* Removes logging functionality in favor of incoming WP 7.0+ logging system
* Cleans up the UI to match Tainacan Admin Style
= 0.0.3 =
* Improved document detection in item edit form (less DOM mutations using Tainacan hooks)
* Added no document found message to item edit form
* Makes more strings translatable in the Javascript side
= 0.0.2 =
* UI improvements to match Tainacan Admin Style
* Detects if document is of type attachment before showing the analyze button
= 0.0.1 =
* Initial release
* Support for OpenAI, Google Gemini, DeepSeek, and Ollama (legacy in-plugin provider configuration)
* Image and document analysis
* Custom prompts per collection
* Metadata mapping
* EXIF extraction
* PDF support (text and visual)
* REST API endpoints
* WP Consent API integration
== Upgrade Notice ==
= 0.1.0 =
* Migrates to using Core's AI client and Connectors APIs (only works with WordPress 7.0+)
= 0.0.3 =
* Improved document detection in item edit form.
= 0.0.2 =
Better integration with Tainacan Admin Style.
= 0.0.1 =
Initial release. Requires WordPress 6.5+, PHP 8.0+, and Tainacan 1.0+.
== Development ==
* **GitHub Repository**: [https://github.com/tainacan/tainacan-ai](https://github.com/tainacan/tainacan-ai)
* **Issues**: [GitHub Issues](https://github.com/tainacan/tainacan-ai/issues)
* **License**: GPLv2 or later
== Support ==
For support, feature requests, or bug reports, please visit the [GitHub repository](https://github.com/tainacan/tainacan-ai).