0.10.3 • Published 6 months ago

@mastra/upstash v0.10.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

@mastra/upstash

Upstash provider for Mastra that includes both vector store and database storage capabilities.

Installation

npm install @mastra/upstash

Vector Store Usage

import { UpstashVector } from '@mastra/upstash';

const vectorStore = new UpstashVector({
  url: process.env.UPSTASH_VECTOR_REST_URL,
  token: process.env.UPSTASH_VECTOR_TOKEN
});

// Add vectors
const vectors = [[0.1, 0.2, ...], [0.3, 0.4, ...]];
const metadata = [{ text: 'doc1' }, { text: 'doc2' }];
const ids = await vectorStore.upsert({
  indexName: 'my-namespace',
  vectors,
  metadata
});

// Query vectors
const results = await vectorStore.query({
  indexName: 'my-namespace',
  queryVector: [0.1, 0.2, ...],
  topK: 10,
  filter: { text: { $eq: 'doc1' } },
  includeVector: false
});

Vector Store Configuration

The Upstash vector store requires the following configuration:

  • UPSTASH_VECTOR_REST_URL: Your Upstash Vector REST URL
  • UPSTASH_VECTOR_TOKEN: Your Upstash Vector REST token
  • UPSTASH_INDEX: Name of the index to use

Database Storage Usage

import { UpstashStore } from '@mastra/upstash';

const store = new UpstashStore({
  url: process.env.UPSTASH_REDIS_REST_URL,
  token: process.env.UPSTASH_REDIS_REST_TOKEN,
});

Database Storage Configuration

The Upstash store requires the following configuration:

  • UPSTASH_REDIS_REST_URL: Your Upstash Redis REST URL
  • UPSTASH_REDIS_REST_TOKEN: Your Upstash Redis REST token

Features

  • Serverless vector database and key-value store
  • Pay-per-use pricing
  • Low latency global access
  • REST API interface
  • Built-in vector similarity search
  • Durable storage for chat history and agent memory

Related Links

0.10.3

6 months ago

0.10.3-alpha.4

6 months ago

0.10.3-alpha.3

6 months ago

0.10.3-alpha.2

6 months ago

0.10.3-alpha.1

6 months ago

0.10.3-alpha.0

6 months ago

0.10.2

6 months ago

0.10.2-alpha.2

6 months ago

0.10.2-alpha.1

6 months ago

0.10.2-alpha.0

6 months ago

0.10.1

6 months ago

0.10.1-alpha.0

6 months ago

0.10.0

6 months ago

0.4.0-alpha.1

6 months ago

0.3.5-alpha.0

6 months ago

0.3.4

7 months ago

0.3.4-alpha.4

7 months ago

0.3.4-alpha.3

7 months ago

0.3.4-alpha.2

7 months ago

0.3.4-alpha.1

7 months ago

0.3.4-alpha.0

7 months ago

0.3.3

7 months ago

0.3.3-alpha.1

7 months ago

0.3.3-alpha.0

7 months ago

0.3.2

7 months ago

0.3.2-alpha.6

7 months ago

0.3.2-alpha.5

7 months ago

0.3.2-alpha.4

7 months ago

0.3.2-alpha.3

7 months ago

0.3.2-alpha.1

7 months ago

0.3.2-alpha.0

7 months ago

0.3.1

7 months ago

0.3.1-alpha.8

7 months ago

0.3.1-alpha.6

7 months ago

0.3.1-alpha.5

7 months ago

0.3.1-alpha.4

7 months ago

0.3.1-alpha.3

7 months ago

0.3.1-alpha.2

7 months ago

0.3.1-alpha.1

7 months ago

0.3.1-alpha.0

7 months ago

0.3.0

7 months ago

0.3.0-alpha.8

7 months ago

0.3.0-alpha.7

7 months ago

0.3.0-alpha.6

7 months ago

0.3.0-alpha.5

8 months ago

0.3.0-alpha.4

8 months ago

0.3.0-alpha.3

8 months ago

0.2.6-alpha.2

8 months ago

0.2.6-alpha.1

8 months ago

0.2.5

8 months ago

0.2.5-alpha.5

8 months ago

0.2.5-alpha.4

8 months ago

0.2.5-alpha.3

8 months ago

0.2.5-alpha.2

8 months ago

0.2.5-alpha.1

8 months ago

0.2.5-alpha.0

8 months ago

0.2.4

8 months ago

0.2.4-alpha.0

8 months ago

0.2.3

8 months ago

0.2.3-alpha.0

8 months ago

0.2.2

8 months ago

0.2.2-alpha.8

8 months ago

0.2.2-alpha.7

8 months ago

0.2.2-alpha.6

8 months ago

0.2.2-alpha.5

8 months ago

0.2.2-alpha.4

8 months ago

0.2.2-alpha.3

8 months ago

0.2.2-alpha.2

8 months ago

0.2.2-alpha.1

8 months ago

0.2.1

8 months ago

0.2.1-alpha.3

8 months ago

0.2.1-alpha.2

8 months ago

0.2.1-alpha.1

8 months ago

0.2.1-alpha.0

8 months ago

0.2.0

8 months ago

0.2.0-alpha.1

8 months ago

0.1.13-alpha.0

8 months ago

0.1.12

9 months ago

0.1.12-alpha.0

9 months ago

0.1.11

9 months ago

0.1.11-alpha.0

9 months ago

0.1.10

9 months ago

0.1.10-alpha.2

9 months ago

0.1.10-alpha.1

9 months ago

0.1.10-alpha.0

9 months ago

0.1.9

9 months ago

0.1.9-alpha.1

9 months ago

0.1.9-alpha.0

9 months ago

0.1.8

9 months ago

0.1.8-alpha.10

9 months ago

0.1.8-alpha.9

9 months ago

0.1.8-alpha.8

9 months ago

0.1.8-alpha.7

9 months ago

0.1.8-alpha.6

9 months ago

0.1.8-alpha.5

9 months ago

0.1.8-alpha.4

9 months ago

0.1.8-alpha.3

9 months ago

0.1.8-alpha.2

9 months ago

0.1.8-alpha.1

9 months ago

0.1.8-alpha.0

9 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.6-alpha.4

9 months ago

0.1.6-alpha.3

9 months ago

0.1.6-alpha.1

9 months ago

0.1.6-alpha.0

9 months ago

0.1.5

9 months ago

0.1.5-alpha.2

9 months ago

0.1.5-alpha.1

9 months ago

0.1.5-alpha.0

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.3-alpha.1

9 months ago

0.1.3-alpha.0

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.1-alpha.0

9 months ago

0.1.0

9 months ago

0.1.0-alpha.20

9 months ago

0.1.0-alpha.19

10 months ago

0.1.0-alpha.18

10 months ago

0.1.0-alpha.17

10 months ago

0.1.0-alpha.16

10 months ago

0.1.0-alpha.15

10 months ago

0.1.0-alpha.14

10 months ago

0.1.0-alpha.13

10 months ago

0.1.0-alpha.12

10 months ago

0.1.0-alpha.11

10 months ago

0.1.0-alpha.10

10 months ago

0.1.0-alpha.9

10 months ago

0.1.0-alpha.8

10 months ago

0.1.0-alpha.6

10 months ago

0.1.0-alpha.5

10 months ago

0.1.0-alpha.4

10 months ago

0.1.0-alpha.3

10 months ago

0.1.0-alpha.2

10 months ago