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.

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-db-cost-inspector

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.1.tar.gz (4.5 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.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for vector_db_cost_inspector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e0b3b5f9a8b11c1d6e8c3d1cfe40024571dd1a55fd8a6d1acf0b1fdf57ceda9
MD5 f9a3e1d69d2092e53c70a5e498d8c833
BLAKE2b-256 9e4938b07b5fbcf4dace140d681ee71e69d3a6043b37514c976fbd0afafbc26e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vector_db_cost_inspector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7fd7332b10147efafda907380a64791b31e189ff5f72510e932d71b39de63b5
MD5 8590b49b0c4d867127f4d9a944b0b6bf
BLAKE2b-256 0ba80d43f0f39bb4152aef56fb7b2611912fdc7fb7ffdde6acb4fb2a06c79f19

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