Auto ChatGPT Retrieval Plugin
Effortlessly create and deploy your own ChatGPT Retrieval Plugins with auto-retrieval-plugin, a powerful command-line tool that takes care of hosting and server setup for you!
Quick Start
Installation
- Ensure you have Python 3.8 or later.
- Install the tool via pip:
pip install auto-retrieval-plugin
Deployment
- Run the following command to deploy the plugin:
auto-retrieval-plugin deploy --key <your openai key>
- Store the "Gateway (Http)" URL and the Bearer token provided in the output.
╭──────────────────────── 🎉 Flow is available! ────────────────────────╮
│ │
│ ID retrieval-plugin-<plugin id> │
│ Gateway (Http) https://retrieval-plugin-<plugin id>.wolf.jina.ai │
│ Dashboard https://dashboard.wolf.jina.ai/flow/<plugin id> │
│ │
╰───────────────────────────────────────────────────────────────────────╯
Bearer token: <your bearer token>
Data Indexing
- Gather relevant text data files (PDF, TXT, DOCX, PPTX, or MD) in a directory.
- Index the data:
auto-retrieval-plugin index --data my_files
Or, use docarray (v0.21.0) for text data:
from docarray import Document, DocumentArray
texts = ['Text 1', 'Text 2', 'Text 3']
docs = DocumentArray([Document(text=text) for text in texts])
docs.save_binary('docs.bin')
And then:
auto-retrieval-plugin index --data docs.bin
Integration
- Go to OpenAI Plugins.
- Select "Develop your own plugin".
- Enter the "Gateway (Http)" URL and Bearer token from the deployment step.
Advanced Usage
Configuration
To tailor the plugin to your needs, change the name and description during deployment:
auto-retrieval-plugin deploy --key <your openai key> --name "Custom Name" --description "Custom description"
If not specified, default values will be used.
| Argument | Description | Default Value |
|---|---|---|
| name | Human-readable name, such as the full company name | Retrieval Plugin |
| description | Description better tailored to the model, such as token context length considerations or keyword usage for improved plugin prompting | Plugin for searching through the user's documents (such as files, emails, and more) to find answers to questions and retrieve relevant information. Use it whenever a user asks something that might be found in their personal information |
Listing Plugins
List your plugins and their status:
auto-retrieval-plugin list
Output:
Plugin ID: ece735568f | Status: Serving
Deleting Plugins
Delete a plugin:
auto-retrieval-plugin delete <plugin id>
Indexing Specific Plugins
Index data for a specific plugin:
auto-retrieval-plugin index --data my_files --id <plugin_id>
If the plugin ID is not specified, the last created plugin will be indexed.
Metadata
Release files for auto-retrieval-plugin 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto_retrieval_plugin-0.1.5.tar.gz | 80.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_retrieval_plugin-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 171.4 kB
Release files / auto_retrieval_plugin-0.1.5.tar.gz
| Download URL | auto_retrieval_plugin-0.1.5.tar.gz |
|---|---|
| Size | 80.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce85515015c330c45b92ab41e9d00227eefbcb2eeba243fdd4bfc8193a2a0a08
|
|
BLAKE2b-256 checksum How to use checksums |
c27a701ac3cfb60d1c465fd474fd36a7839fd5e3e3d602036c48889689b2f364
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / auto_retrieval_plugin-0.1.5-py3-none-any.whl
| Download URL | auto_retrieval_plugin-0.1.5-py3-none-any.whl |
|---|---|
| Size | 91.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c0e36ce185f8d6bbc66d8aeda8a6f81a1c604fc7ccab6bb3aae220007cbfc9d
|
|
BLAKE2b-256 checksum How to use checksums |
c0aa093e9df0e259755846dfd9fcf4336ef92bd61b102ff025b4e785c186afa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|