AI

Generates and stores vector embeddings for Payload fields using the OpenAI or NLP Cloud APIs.

Community 15 8/wk MIT v1.1.0

Installation

pnpm add payload-plugin-ai

About

payload-plugin-ai adds AI features to a Payload CMS instance. The current feature is automatic text embedding generation. When you mark a field with the `genEmbeddings` helper inside its `custom` property, the plugin appends a hidden `number` `hasMany` field named `<fieldName>_embeddings` to the collection and registers a `beforeChange` hook that computes the vector on every save.

Package info

Package name
payload-plugin-ai
Latest version
1.1.0
Unpacked size
401 kB
License
MIT
Weekly downloads
8
Last publish
Apr 18, 2023

More from AlessioGr

View profile

Similar plugins

More in Search