Skip to main content

Inspector for Vector DB cost saving

Project description

VectorDBCostSavingInspector

This is a tool designed to inspect vertor database usage and find opportunities to reduce cost. The current version support Pinecone usage inspection based on vector's last access timestamp.

If your vector database is not Pinecone, we will estimate saving based on your vector database use cases.

If your Pinecone database does not have meta data about last access timestamp, we will estimate saving based on your vector database use cases. But we strongly suggest you add one.

Setup

  1. Install python package
python3 -m pip install vector-db-cost-inspector
  1. Environment Variables

Set the following environment variables (or create a .env file):

export PINECONE_API_KEY="your-pinecone-key"
export PINECONE_INDEX_NAME="your-index-name"

Note: This inspection tool only run in your machine. The Pinecone API key is only read by the inspection tool and won't be uploaded to cloud. We guarantee we don't have access to your Pinecone API key. This is a open source python tool. You can check our code if you want anytime.

Prerequisites

  • A Pinecone Index.
  • Vectors in Pinecone MUST have a metadata field named created_at (Unix timestamp) for the time-based logic to work.

Usage

Run the inspection

vector-inspect

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

vector_db_cost_inspector-0.1.6.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

vector_db_cost_inspector-0.1.6-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file vector_db_cost_inspector-0.1.6.tar.gz.

File metadata

File hashes

Hashes for vector_db_cost_inspector-0.1.6.tar.gz
Algorithm Hash digest
SHA256 08fb7467b78f065b6e48aa083857990b2e355f163ce2eb84c464f6a50556dd16
MD5 096c78ca69aeb8e4f4847d22b9c4af5b
BLAKE2b-256 2bbdac03ee3f354d7302dc1a8ace13424229a36c69207fde19b5e31c84b1468b

See more details on using hashes here.

File details

Details for the file vector_db_cost_inspector-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for vector_db_cost_inspector-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 164fa807039a320ef5c48c5e6b6ea20a184d85f920327cc3f6faf226dc2f2364
MD5 44f008f3ff33731ec18a261bd12b6302
BLAKE2b-256 fe9948c663870da6bd3544ff23c1a84eb5704566e7ed322d88ee72066309ecb9

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