ChatGPT 插件 Retriever
¥ChatGPT Plugin Retriever
danger
此模块已被弃用,不再受支持。以下文档不适用于 0.2.0 或更高版本。
¥This module has been deprecated and is no longer supported. The documentation below will not work in versions 0.2.0 or later.
此示例展示了如何在 LangChain 中使用 ChatGPT Retriever 插件。
¥This example shows how to use the ChatGPT Retriever Plugin within LangChain.
要设置 ChatGPT Retriever 插件,请按照说明 此处 操作。
¥To set up the ChatGPT Retriever Plugin, please follow instructions here.
用法
¥Usage
import { ChatGPTPluginRetriever } from "langchain/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);
相关
¥Related
检索器 概念指南
¥Retriever conceptual guide
检索器 操作指南
¥Retriever how-to guides