💡 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
Fix token storage auth error (#676)
Grant Sherrick0cd2ec984d31
diff --git a/docs/embeddings/configuration/cloud.md b/docs/embeddings/configuration/cloud.mdindex 41682db1..b73b8b75 100644--- a/docs/embeddings/configuration/cloud.md+++ b/docs/embeddings/configuration/cloud.md@@ -22,25 +22,27 @@ Cloud provider. Can be one of the following:container: string```-Container/bucket/directory/repository name.+Container/bucket/directory/repository name. Your embeddings will be stored in the container with the filename specified by the `path` configuration.## Cloud object storage configuration-In addition to the above common configuration, the cloud object storage provider has the following additional configuration parameters.+In 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).### key```yamlkey: string```-Provider-specific access key. Can also be set via ACCESS_KEY environment variable. Ensure the configuration file is secured if added to the file.+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'.### secret```yamlsecret: string```-Provider-specific access secret. Can also be set via ACCESS_SECRET environment variable. Ensure the configuration file is secured if added to the file.+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.### host```yamldiff --git a/docs/install.md b/docs/install.mdindex 1e7483d8..7b096724 100644--- a/docs/install.md+++ b/docs/install.md@@ -132,6 +132,8 @@ txtai can also be installed directly from GitHub to access the latest, unreleasepip install git+https://github.com/neuml/txtai+Extras can be installed from GitHub by adding `#egg=txtai[<name-of-extra>]` to the end of the above URL.+## CondaA [community-supported txtai package](https://anaconda.org/conda-forge/txtai) is available via conda-forge.diff --git a/src/python/txtai/cloud/storage.py b/src/python/txtai/cloud/storage.pyindex e61a1276..d97d2d05 100644--- a/src/python/txtai/cloud/storage.py+++ b/src/python/txtai/cloud/storage.py@@ -16,7 +16,6 @@ except ImportError:from .base import Cloud-class ObjectStorage(Cloud):"""Object storage cloud provider backed by Apache libcloud.@@ -49,11 +48,7 @@ class ObjectStorage(Cloud):self.client = driver(config.get("key", os.environ.get("ACCESS_KEY")),config.get("secret", os.environ.get("ACCESS_SECRET")),- host=config.get("host"),- port=config.get("port"),- token=config.get("token"),- region=config.get("region"),- )+ **{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 efcece76..c06ac852 100644--- a/src/python/txtai/workflow/task/storage.py+++ b/src/python/txtai/workflow/task/storage.py@@ -107,11 +107,7 @@ class StorageTask(Task):client = driver(key,secret,- host=self.host,- port=self.port,- token=self.token,- region=self.region,- )+ **{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)]