Skip to main content

Create and host retrieval plugins for ChatGPT in one click

Project description

๐Ÿ• Gold Retriever

Powered by Jina and DocArray

Easily empower ChatGPT to store and analyze your data using goldretriever, a powerful command-line tool for creating and hosting retrieval plugins in just a few simple steps.

Blog images

๐ŸŽฌ Showcase: Real-world Plugin Creations

โšก Quick Start

๐Ÿ“ฆ Installation

  1. Ensure you have Python 3.8 or later.
  2. Install the tool via pip:
pip install goldretriever

๐Ÿš€ Deployment

  1. Run the following command to deploy the plugin:
goldretriever deploy --key <your openai key>
  1. 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

  1. Gather relevant text data files (PDF, TXT, DOCX, PPTX, or MD) in a directory.
  2. Index the data:
goldretriever 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:

goldretriever index --data docs.bin

๐Ÿ”— Integration

  1. Go to OpenAI Plugins.
  2. Select "Develop your own plugin".
  3. 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:

goldretriever 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 Gold Retriever
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:

goldretriever list

Output:

Plugin ID: ece735568f | Status: Serving

๐Ÿ—‘๏ธ Deleting Plugins

Delete a plugin:

goldretriever delete <plugin id>

๐Ÿ” Indexing Specific Plugins

Index data for a specific plugin:

goldretriever index --data my_files --id <plugin_id>

If the plugin ID is not specified, the last created plugin will be indexed.

๐ŸŽ“ Acknowledgements

This project is built upon the open-source chatgpt-retrieval-plugin repository developed by OpenAI.

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

goldretriever-0.1.3.tar.gz (80.4 kB view details)

Uploaded Source

Built Distribution

goldretriever-0.1.3-py3-none-any.whl (90.6 kB view details)

Uploaded Python 3

File details

Details for the file goldretriever-0.1.3.tar.gz.

File metadata

  • Download URL: goldretriever-0.1.3.tar.gz
  • Upload date:
  • Size: 80.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for goldretriever-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7bf83e23f306a4262d161969d56d1874e63851e3202ca090e10d38a2063c3643
MD5 961b8b0d93f13a11a006646d5c06a246
BLAKE2b-256 ad0bd80ba052315d691ed6c0bbf07d8b635c255eead0607ecb743c50e3dbb88c

See more details on using hashes here.

File details

Details for the file goldretriever-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for goldretriever-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab0adc3620ec175b57b686a0fd3f83a6669e0eedfd569846fa19a2e3e28b03a
MD5 d979c57d832214bf4a438fb7b22eb61e
BLAKE2b-256 efd1759c7e4362558e00e62352d22e68407637245e374e13617776702dd7fb85

See more details on using hashes here.

Supported by

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