Griptape Cloud Knowledge Base Tool
The GriptapeCloudKnowledgeBaseTool is a lightweight Tool to retrieve data from a RAG pipeline and vector store hosted in Griptape Cloud. It enables searching across a centralized Knowledge Base that can consist of various data sources such as Confluence, Google Docs, and web pages.
Note: This tool requires a Knowledge Base hosted in Griptape Cloud and an API Key for access.
import os
from griptape.structures import Agent
from griptape.tools import GriptapeCloudKnowledgeBaseTool
knowledge_base_client = GriptapeCloudKnowledgeBaseTool(
description="Contains information about the company and its operations",
api_key=os.environ["GRIPTAPE_CLOUD_API_KEY"],
knowledge_base_id=os.environ["GRIPTAPE_CLOUD_KB_ID"],
)
agent = Agent(
tools=[
knowledge_base_client,
]
)
agent.run("What is the company's corporate travel policy?")