💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Formatting updates #676
davidmezzetti9b9a7736af50
diff --git a/docs/embeddings/configuration/cloud.md b/docs/embeddings/configuration/cloud.mdindex b73b8b75..2eb7347b 100644--- a/docs/embeddings/configuration/cloud.md+++ b/docs/embeddings/configuration/cloud.md@@ -22,27 +22,27 @@ Cloud provider. Can be one of the following:container: string```-Container/bucket/directory/repository name. Your embeddings will be stored in the container with the filename specified by the `path` configuration.+Container/bucket/directory/repository name. Embeddings will be stored in the container with the filename specified by the `path` configuration.## Cloud object storage configurationIn addition to the above common configuration, the cloud object storage provider has the following additional configuration parameters. Note that some cloud providers do not need any of these parameters and can use implicit authentication with service accounts.-These parameters are defined in the [libcloud documentation](https://libcloud.readthedocs.io/en/stable/apidocs/libcloud.common.html#module-libcloud.common.base).+See the [libcloud documentation](https://libcloud.readthedocs.io/en/stable/apidocs/libcloud.common.html#module-libcloud.common.base) for more information on these parameters.### key```yamlkey: string```-Required provider-specific access key. Can also be set via `ACCESS_KEY` environment variable. Ensure the configuration file is secured if added to the file. When using implicit authentication, set this to a value such as 'using-implicit-auth'.+Provider-specific access key. Can also be set via `ACCESS_KEY` environment variable. Ensure the configuration file is secured if added to the file. When using implicit authentication, set this to a value such as 'using-implicit-auth'.### secret```yamlsecret: string```-Optional provider-specific access secret. Can also be set via `ACCESS_SECRET` environment variable. Ensure the configuration file is secured if added to the file.+Provider-specific access secret. Can also be set via `ACCESS_SECRET` environment variable. Ensure the configuration file is secured if added to the file. When using implicit authentication, this option is not required.### host```yamldiff --git a/src/python/txtai/cloud/storage.py b/src/python/txtai/cloud/storage.pyindex d97d2d05..d4b399a1 100644--- a/src/python/txtai/cloud/storage.py+++ b/src/python/txtai/cloud/storage.py@@ -16,6 +16,7 @@ except ImportError:from .base import Cloud+class ObjectStorage(Cloud):"""Object storage cloud provider backed by Apache libcloud.@@ -48,7 +49,8 @@ class ObjectStorage(Cloud):self.client = driver(config.get("key", os.environ.get("ACCESS_KEY")),config.get("secret", os.environ.get("ACCESS_SECRET")),- **{field: config.get(field) for field in ["host", "port", "region", "token"] if config.get(field)})+ **{field: config.get(field) for field in ["host", "port", "region", "token"] if config.get(field)},+ )def metadata(self, path=None):try:diff --git a/src/python/txtai/workflow/task/storage.py b/src/python/txtai/workflow/task/storage.pyindex c06ac852..24ca8fd5 100644--- a/src/python/txtai/workflow/task/storage.py+++ b/src/python/txtai/workflow/task/storage.py@@ -104,10 +104,7 @@ class StorageTask(Task):driver = get_driver(provider)# Get client connection- client = driver(- key,- secret,- **{field: getattr(self, field) for field in ["host", "port", "region", "token"] if getattr(self, field)})+ client = driver(key, secret, **{field: getattr(self, field) for field in ["host", "port", "region", "token"] if getattr(self, field)})container = client.get_container(container_name=container)return [client.get_object_cdn_url(obj) for obj in client.list_container_objects(container=container, prefix=prefix)]