Golden
Golden provides a set of natural language APIs for querying and enrichment using the Golden Knowledge Graph e.g. queries such as:
Products from OpenAI,Generative ai companies with series a funding, andrappers who investcan be used to retrieve structured data about relevant entities.The
golden-querylangchain tool is a wrapper on top of the Golden Query API which enables programmatic access to these results. See the Golden Query API docs for more information.
安装与设置
- 前往 Golden API 文档 以了解 Golden API 的概览。
- 从 Golden API 设置 页面获取您的API密钥。
- 将你的 API 密钥保存到 GOLDEN_API_KEY 环境变量中
包装器
工具
存在一个 GoldenQueryAPIWrapper 工具,用于封装此 API。要导入此工具:
from langchain_community.utilities.golden_query import GoldenQueryAPIWrapper
API 参考:GoldenQueryAPIWrapper
有关此包装器的更详细指南,请参见 这个笔记本。
工具
你还可以轻松将此包装器加载为工具(与代理一起使用)。 你可以通过以下方式实现:
from langchain.agents import load_tools
tools = load_tools(["golden-query"])
API 参考:load_tools
有关工具的更多信息,请参见 此页面。