Socket
Socket
Sign inDemoInstall

turbopuffer-sdk

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    turbopuffer-sdk

TypeScript SDK for turbopuffer vector database API


Version published
Weekly downloads
18
decreased by-45.45%
Maintainers
1
Install size
1.59 MB
Created
Weekly downloads
 

Changelog

Source

0.1.1

Patch Changes

  • Fix postinstall script, should run only locally

Readme

Source

Install

npm install turbopuffer-sdk

Usage

import { TurboPufferApiClientV1 } from 'turbopuffer-sdk'

const client = new TurboPufferApiClientV1({
    token: process.env.TURBOPUFFER_KEY,
})

const namespace = 'test'
const upsertRes = await client.upsertVectors({
    namespace,
    vectors: [{ id: 1, vector: [1, 2, 3], attributes: { hello: 'ciao' } }],
})

const vectors = await client.listAllVectors({ namespace })

const results = await puffer.queryVectors({
    namespace,
    distance_metric: 'cosine_distance',
    include_attributes,
    vector: [1, 2, 3],
})

const delRes = await client.deleteNamespace({ namespace })

Keywords

FAQs

Last updated on 26 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc