Skip to main content

Turbopuffer vector database adapter for cognee

Project description

Cognee Turbopuffer Adapter

Installation

If published, the package can be simply installed via pip:

pip install cognee-community-vector-adapter-turbopuffer

In case it is not published yet, you can use poetry to locally build the adapter package:

pip install poetry
poetry install # run this command in the directory containing the pyproject.toml file

Connection Setup

  1. Create an account at turbopuffer.com
  2. Get your API key from the dashboard
  3. Set the TURBOPUFFER_API_KEY environment variable
  4. Optionally set TURBOPUFFER_REGION (defaults to gcp-us-central1). See available regions.

Usage

Import and register the adapter in your code:

from cognee_community_vector_adapter_turbopuffer import register

Also, specify the dataset handler in the .env file:

VECTOR_DATASET_DATABASE_HANDLER="turbopuffer"

Example

See example in example.py file.

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

Built Distribution

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

File details

Details for the file cognee_community_vector_adapter_turbopuffer-0.2.0.tar.gz.

File metadata

File hashes

Hashes for cognee_community_vector_adapter_turbopuffer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f8ecc1f138a9f0efec182b0aca7c06a3b60e666cea5c1e9fa8309cd5004b4a68
MD5 fce490c61f1e17feb6bca7331f2f3189
BLAKE2b-256 c9330ec27262a9d75dbfdfb2d00cc16fc71fa185f576b25cdc9b90353a1c44b7

See more details on using hashes here.

File details

Details for the file cognee_community_vector_adapter_turbopuffer-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cognee_community_vector_adapter_turbopuffer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e178fd5458d9033480fb780955569df67fc94b09037add31aa82d1b390e018eb
MD5 e49e74cd9ec0432eb94143aefafc7be8
BLAKE2b-256 45c3326614cc27ccf7484ac01e3e063dcf9a9a717d812e3ad5a0e3e75fa7e52e

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