cohere_rerank_driver
CohereRerankDriver
Bases: BaseRerankDriver
CohereRerankDriver
Bases: BaseRerankDriver
griptape/drivers/rerank/cohere_rerank_driver.py
api_key: str = field(metadata={'serializable': True})
class-attribute
instance-attribute
client: Client = field(default=Factory(lambda self: import_optional_dependency('cohere').Client(self.api_key), takes_self=True))
class-attribute
instance-attribute
model: str = field(default='rerank-english-v3.0', metadata={'serializable': True})
class-attribute
instance-attribute
top_n: Optional[int] = field(default=None)
class-attribute
instance-attribute
run(query, artifacts)
griptape/drivers/rerank/cohere_rerank_driver.py