Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.langchain.com/llms.txt

Use this file to discover all available pages before exploring further.

This module has been deprecated and is no longer supported. The documentation below will not work in versions 0.2.0 or later.
This example shows how to use the ChatGPT Retriever Plugin within LangChain. To set up the ChatGPT Retriever Plugin, follow the ChatGPT Retrieval Plugin setup instructions.

Usage

import { ChatGPTPluginRetriever } from "@langchain/classic/retrievers/remote";

const retriever = new ChatGPTPluginRetriever({
  url: "http://0.0.0.0:8000",
  auth: {
    bearer: "super-secret-jwt-token-with-at-least-32-characters-long",
  },
});

const docs = await retriever.invoke("hello world");

console.log(docs);