Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexcg1/executor_tensor_deleter

Reduce the size of Jina indexes by removing tensors
https://github.com/alexcg1/executor_tensor_deleter

Last synced: 16 days ago
JSON representation

Reduce the size of Jina indexes by removing tensors

Awesome Lists containing this project

README

        

# TensorDeleter

After creating embeddings you may no longer require a Document's tensor. This Executor simply sets `doc.tensor` to `None`, thus reducing storage space for indexed data.

## Usage

#### via Docker image (recommended)

```python
from jina import Flow

f = Flow().add(uses='jinahub+docker://TensorDeleter')
```

#### via source code

```python
from jina import Flow

f = Flow().add(uses='jinahub://TensorDeleter')
```

- To override `__init__` args & kwargs, use `.add(..., uses_with: {'key': 'value'})`
- To override class metas, use `.add(..., uses_metas: {'key': 'value})`