Skip to content
AI-Native Portfolio

S3 Vectors Toolkit

active

A TypeScript library for working with Amazon S3 Vectors — embedding, indexing, and querying.

TypeScriptAWS SDKS3 VectorsBedrock

Overview

A lightweight TypeScript library that wraps the S3 Vectors API with a developer-friendly interface. Handles embedding generation, batched upserts, and similarity queries.

Features

  • Automatic chunking of text content with configurable overlap
  • Batch embedding via Bedrock Cohere
  • Upsert with metadata attachment
  • Similarity search with metadata filtering
  • Built-in rate limiting and retry logic

Usage

import { VectorStore } from "s3-vectors-toolkit";

const store = new VectorStore({
  bucketName: "my-vectors",
  indexName: "content",
  region: "us-east-1",
});

// Index content
await store.index({
  key: "post-1",
  text: "Your content here...",
  metadata: { type: "blog", slug: "my-post" },
});

// Search
const results = await store.search("semantic search query", { topK: 5 });

Related Content