cohere-embedder

Embed text with Cohere. Three models available for text search and text similarity.

Using

Tagger Plugins add annotations to text that can be queried and composed later.

Blockifiers convert data into Steamship’s native Block format.

Importer Plugins add annotations to text that can be queried and composed later.

Use them when writing Packages to help you work with data of different types.

Links

from steamship import Steamship, File

client = Steamship(workspace="my-workspace-handle")

# Import a file to Steamship
with open("file.ext") as f:
  file = File.create(content=file.read())

# Create an instance of this blockifier
blockifier = client.use_plugin(
  'cohere-embedder'
)

# Blockify the file
task = file.blockify()
task.wait()
from steamship import Steamship, File

client = Steamship(workspace="my-workspace-handle")

# Import a file to Steamship
with open("file.ext") as f:
  file = File.create(content=file.read())

# Create a blockifier. We'll assume Markdown here.
blockifier = client.use_plugin(
  'markdown-blockifier-default'
)

# Blockify the file
task = file.blockify()

# Create an instance of this tagger.
tagger = client.use_plugin(
  'cohere-embedder'
)

# Tag the file
task = file.tag()

task.wait()
Pulled from the GitHub repository.
# Cohere Embedder Plugin - Steamship

This project contains a Steamship Tagger plugin that enables embedding with Cohere's models.

## Configuration

This plugin must be configured with the following fields:

* `model` - The model, listed in the [Cohere Documentation](https://docs.cohere.ai/reference/embed). The default is `medium`

Cohere supports three stock embedding models.

* small (1024 dimensions)
* medium (2048 dimensions)
* large (4096 dimensions)


Steamship is building the fastest way to ship language AI.

Stop building and start shipping. Reach out to get onboarded.
Read More