Javascript BPE Encoder Decoder for GPT-2 / GPT-3
Server-side actions to encode and decode text using the GPT-3 Encoder. It's a powerful tool for developers who want to work with GPT-3 or similar models in their Bubble apps. The plugin uses the gpt-3-encoder Node.js library to convert text into a sequence of token IDs (encoding) and convert a sequence of token IDs back into text (decoding).
Free
For everyone
stars • 0 ratings
44 installs
This plugin does not collect or track your personal data.
Once the plugin is installed, you can use its actions in your workflows. The plugin provides two actions: "Encode" and "Decode".
Encode Action: The "Encode" action takes a string of text as input and returns a list of numbers, which represents the encoded text. To use this action, add it to a workflow, fill in the inputText field with the text you want to encode, and then use the encodedText and decodedText outputs in the next steps of your workflow.
Decode Action: The "Decode" action takes a string of numbers separated by commas as input and returns the decoded text. To use this action, add it to a workflow, fill in the encodedText field with the encoded text, and then use the decodedText output in the next steps of your workflow.
Error Handling: If there's an error during encoding or decoding, the actions will return the error message in the error output field. You can check this field to handle any errors in your workflow.
Types
This plugin can be found under the following types: