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 investcan be used to retrieve structured data about relevant entities.
Installation and Setup
- Go to the Golden API docs to get an overview about the Golden API.
- Get your API key from the Golden API Settings page.
- Save your API key into GOLDEN_API_KEY env variable
There exists a GoldenQueryAPIWrapper utility which wraps this API. To import this utility:
from langchain_community.utilities.golden_query import GoldenQueryAPIWrapper
For a more detailed walkthrough of this wrapper, see this notebook.
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"])
For more information on tools, see this page.