Skip to main content

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, and rappers who invest can be used to retrieve structured data about relevant entities.

The golden-query langchain 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.

Installation and Setup​

Wrappers​

Utility​

There exists a GoldenQueryAPIWrapper utility which wraps this API. To import this utility:

from langchain_community.utilities.golden_query import GoldenQueryAPIWrapper

API Reference:

For a more detailed walkthrough of this wrapper, see this notebook.

Tool​

You can also easily load this wrapper as a Tool (to use with an Agent). You can do this with:

from langchain.agents import load_tools
tools = load_tools(["golden-query"])

API Reference:

For more information on tools, see this page.


Help us out by providing feedback on this documentation page: