vector-db-storage — community vector-db-storage, elix-db, 8dazo, community, ai agent skill, ide skills, agent automation, AI agent skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for AI Agents requiring efficient vector database storage and indexing solutions, particularly those working with ETS, File, PostgreSQL, and Qdrant backends. Storage backends and indexing for vector databases in Elixir. Use when choosing persistence, implementing exact vs approximate k-NN, or integrating pgvector, file, or ETS for vector storage.

8dazo 8dazo
[0]
[0]
Updated: 3/12/2026

Quality Score

Top 5%
33
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add 8dazo/elix-db/vector-db-storage
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The vector-db-storage skill by 8dazo is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for AI Agents requiring efficient vector database storage and indexing solutions, particularly those working with ETS, File, PostgreSQL, and Qdrant backends.

Core Value

Empowers agents to store and manage large vector datasets with support for various backends, including PostgreSQL with pgvector and Qdrant, enabling efficient scaling and querying using IVFFlat and HNSW indexes.

Capabilities Granted for vector-db-storage

Indexing large vector datasets for similarity search
Storing and retrieving vector embeddings with PostgreSQL and pgvector
Scaling vector databases with Qdrant for high-performance querying

! Prerequisites & Limits

  • ETS backend limited to ~100k-500k vectors in memory
  • File backend has same scalability limits as ETS, plus disk storage
  • Requires specific backend setup and configuration
Project
SKILL.md
2.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Vector DB Storage and Indexing

Storage Backends

BackendUse casePersistenceScale
ETSPrototype, small index, low latencyNo< ~100k–500k vectors in memory
FileSimple persistence, no DBYes (binary/term)Same as ETS, plus disk
PostgreSQL + pgvectorProduction, SQL + vectorsYesLarge; use IVFFlat/HNSW indexes
Qdrant (client)Dedicated vector engineYes (external)Very large

In-Memory (ETS)

  • :set table, key = vector id.
  • Value: {id, vector, metadata}; vector as list or binary.
  • No persistence: load from file on GenServer init if needed (see File below).
  • Exact k-NN: iterate all rows, compute distance, sort, take k. O(n) per query.

File Persistence

  • On shutdown: GenServer terminate/2 or :gen_server.cast(pid, :persist) → write ETS contents to file (e.g. :erlang.term_to_binary(entries) or custom binary format).
  • On start: read file, recreate ETS and insert all entries.
  • Keep dimension and metadata format in header or config so reload is consistent.

PostgreSQL + pgvector

Use pgvector and Ecto for persistent, indexed storage.

  • Schema: table with id, embedding (pgvector type), metadata (jsonb/map).
  • Index: create HNSW or IVFFlat index on embedding for approximate k-NN.
  • Queries: use pgvector’s distance operators (<=>, <->) in raw SQL or Ecto fragments; limit k.
elixir
1# Example: nearest neighbors (cosine distance) 2# fragment("embedding <=> ?::vector", ^Nx.to_flat_list(query))
  • Handles large datasets; persistence and backups via Postgres.

Exact vs Approximate k-NN

MethodAccuracySpeedWhen
Exact (scan all)ExactO(n) per querySmall n (e.g. < 100k), correctness critical
IVFFlat (pgvector)ApproximateFastMedium/large, good recall with tuning
HNSW (pgvector)ApproximateVery fastLarge, high recall

For in-memory ETS, start with exact k-NN; move to pgvector (or Qdrant) when n grows or persistence is required.

Design Checklist

  • Persistence requirement clear: none, file, or Postgres
  • If file: define format (term vs binary) and load/save on start/stop
  • If pgvector: add migration for vector column and chosen index (HNSW/IVFFlat)
  • Dimension and distance metric match across insert and search

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is vector-db-storage?

Ideal for AI Agents requiring efficient vector database storage and indexing solutions, particularly those working with ETS, File, PostgreSQL, and Qdrant backends. Storage backends and indexing for vector databases in Elixir. Use when choosing persistence, implementing exact vs approximate k-NN, or integrating pgvector, file, or ETS for vector storage.

How do I install vector-db-storage?

Run the command: npx killer-skills add 8dazo/elix-db/vector-db-storage. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for vector-db-storage?

Key use cases include: Indexing large vector datasets for similarity search, Storing and retrieving vector embeddings with PostgreSQL and pgvector, Scaling vector databases with Qdrant for high-performance querying.

Which IDEs are compatible with vector-db-storage?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for vector-db-storage?

ETS backend limited to ~100k-500k vectors in memory. File backend has same scalability limits as ETS, plus disk storage. Requires specific backend setup and configuration.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add 8dazo/elix-db/vector-db-storage. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use vector-db-storage immediately in the current project.

Related Skills

Looking for an alternative to vector-db-storage or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
Design

linear

Logo of lobehub
lobehub

Linear issue management. MUST USE when: (1) user mentions LOBE-xxx issue IDs (e.g. LOBE-4540), (2) user says linear, linear issue, link linear, (3) creating PRs that reference Linear issues. Provides

73.4k
0
Communication

testing

Logo of lobehub
lobehub

Testing guide using Vitest. Use when writing tests (.test.ts, .test.tsx), fixing failing tests, improving test coverage, or debugging test issues. Triggers on test creation, test debugging, mock setup

73.3k
0
Communication

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication