agentskit.js
Data layerMemory

redisVectorMemory

Redis Stack / Redis 8+ vector index. Metadata filtering + HNSW.

import { redisVectorMemory } from '@agentskit/memory'
import { createClient } from 'redis'

const client = createClient({ url: process.env.REDIS_URL })
await client.connect()

const store = redisVectorMemory({
  client,
  indexName: 'ak-idx',
  dim: 1536,
  distance: 'COSINE',
})

Requirements

Redis Stack or Redis 8+ with the Search module.

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page