Skip to main content

A simple toolkit for generating vector embeddings across multiple providers and models

Project description

EmbedKit

A Python library for generating embeddings from text, images, and PDFs using various models (e.g. from Cohere, ColPali).

Usage

See main.py for examples.

from embedkit import EmbedKit
from embedkit.models import Model

# Instantiate a kit
# Using ColPali
kit = EmbedKit.colpali(model=Model.ColPali.V1_3)

# Using Cohere
kit = EmbedKit.cohere(
    model=Model.Cohere.EMBED_V4_0,
    api_key="your_api_key",
    text_input_type=CohereInputType.SEARCH_DOCUMENT,
)

# Then - the embedding API is consistent
embeddings = kit.embed_text("Hello world") or kit.embed_text(["Hello world", "Hello world"])
embeddings = kit.embed_image("path/to/image.png") or kit.embed_image(["path/to/image1.png", "path/to/image2.png"])
embeddings = kit.embed_pdf("path/to/pdf.pdf")  # Single PDF only

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

embedkit-0.1.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

embedkit-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file embedkit-0.1.0.tar.gz.

File metadata

  • Download URL: embedkit-0.1.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.4

File hashes

Hashes for embedkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 54f96ebb7ae5ff8f57d46629df56330d75f2a5f1ff1cd6a996277958189efcc5
MD5 a71d6c0eb0c27ba8af18ef3b8ddf2563
BLAKE2b-256 ad7c53f3df3090c84717d5455af87f5a51b9acccff3bc9f74a1b61614c7b11c1

See more details on using hashes here.

File details

Details for the file embedkit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: embedkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.4

File hashes

Hashes for embedkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd6be9d533a08bc0c24c544120d09b45daecacf2af534315dff2c6cbf429e34f
MD5 69115d0370afeec4cf736beb29c68e39
BLAKE2b-256 b668b0c6771259af9ff27d1db2e4bbdf3b844101ab1a50ec72055cb4028e0697

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page