2023-03-24 15:36:05 -07:00
..
2023-03-24 15:36:05 -07:00
2023-03-24 15:36:05 -07:00
2023-03-24 15:36:05 -07:00

ChatGPT Plugin Loader

The ChatGPT Plugin loader returns a set of documents from a server that implements that. ChatGPT Retrieval Plugin interface.

Usage

Here's an example usage of the ChatGPTRetrievalPluginReader.

from llama_index import download_loader

ChatGPTRetrievalPluginReader = download_loader("ChatGPTRetrievalPluginReader")

bearer_token = os.getenv("BEARER_TOKEN")
reader = ChatGPTRetrievalPluginReader(
    endpoint_url="http://localhost:8000",
    bearer_token=bearer_token
)

documents = reader.load_data("text query")

This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent. See here for examples.