Embeddings in Griptape are multidimensional representations of text data. Embeddings carry semantic information, which makes them useful for extracting relevant chunks from large bodies of text for search and querying.
Griptape provides a way to build Embedding Drivers that are reused in downstream framework components. Every Embedding Driver has two basic methods that can be used to generate embeddings:
More embedding drivers are coming soon.
Azure OpenAI Embeddings
Bedrock Titan Embeddings
Override Default Structure Embedding Driver
Here is how you can override the Embedding Driver that is used by default in agents.
from griptape.structures import Agent from griptape.tools import WebScraper from griptape.drivers import LocalVectorStoreDriver, OpenAiEmbeddingDriver agent = Agent( tools=[WebScraper()], embedding_driver=OpenAiEmbeddingDriver() ) agent.run("based on https://www.griptape.ai/, tell me what Griptape is")