Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyMongo-VoyageAI

PyMongo integration with VoyageAI for multimodal embedding.

Installation

pip install --pre pymongo-voyageai

Quickstart

Obtain an API key for VoyageAI.

from pymongo_voyageai import PyMongoVoyageAI

# Create our client.
client = PyMongoVoyageAI(
    voyageai_api_key=os.environ["VOYAGE_API_KEY"],
    mongo_connection_string=os.environ["MONGODB_URI"],
    s3_bucket_name="<my-bucket-name>",
    collection_name="test",
    database_name="tests",
)

# Load data from a pdf url.
url = "https://www.fdrlibrary.org/documents/356632/390886/readingcopy.pdf"
images = client.url_to_images(url)
resp = client.add_documents(images)

# Wait for the vector search index to update.
client.wait_for_indexing()

# Query the embeddings, extracting the images.
query = "The consequences of a dictator's peace"
data = client.similarity_search(query, extract_images=True)

# Display the best image match.
data[0]["inputs"][0].image.show()

# Clean up and close the client.
client.delete_many({})
client.close()

Metadata

Release files for pymongo-voyageai 0.1.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymongo-voyageai 0.1.0a0
File Size Uploaded Provenance Actions
pymongo_voyageai-0.1.0a0.tar.gz 15.5 kB With provenance Details for pymongo_voyageai-0.1.0a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymongo-voyageai 0.1.0a0
File Interpreter ABI Platform Actions
pymongo_voyageai-0.1.0a0-py3-none-any.whl Python 3 none any Details for pymongo_voyageai-0.1.0a0-py3-none-any.whl

Total release size: 35.6 kB

Release files / pymongo_voyageai-0.1.0a0.tar.gz

Download URL pymongo_voyageai-0.1.0a0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f364b620987c943af3b6075529a7f5eb7472e0d6da276fb68f42c1ade192b287
BLAKE2b-256 checksum
How to use checksums
6ff7e5062066bf1b860ceb399ba1e4bb904f01a3a04886c0288908d78f39721d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 10, 2025.

Transparency log

Release files / pymongo_voyageai-0.1.0a0-py3-none-any.whl

Download URL pymongo_voyageai-0.1.0a0-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ddbf32b7e2c24d875bfec8923e787c2a999a820f7d6f44c91b46b01422b0f39
BLAKE2b-256 checksum
How to use checksums
035cc0005910083ba0df97fb93cf857390e0f80dac60faefdd1058c0cee92d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 10, 2025.

Transparency log

Security for pymongo-voyageai 0.1.0a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pymongo_voyageai-0.1.0a0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 10, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page