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.2.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.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: embedkit-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 11e204bc25e17e5959ddca138610e814deec2405177a67502980b6b20df61268
MD5 a98e6b42d72b89e904f69014a0134228
BLAKE2b-256 3d77d27dfeec25bb28a1e1e13592cfa2d1c0d0ff52e17ef43cc7f29fe7f9d362

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for embedkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6fde781251455b4acea6c12407291bdd41f22336de91c5b8265921237f95237
MD5 3069baf20a65293c12edd2733bad9b80
BLAKE2b-256 999f86caecda9c6a169a503989740d338bd486abe17bb5e595a207b234235521

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