StarModel 邀请活动
← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

seekdb-assistant

1

person作者: coldcodehubModelScope

SeekDB Assistant

A specialized skill designed for developers working on the SeekDB AI-native database kernel. This skill provides automated tools and procedures to manage local test instances, debug vector queries, run HNSW index benchmarks, and tune runtime configurations.


Quick Navigation


1. Instance Deployment & Lifecycle Management

Manage the local SeekDB daemon using the bundled controller script:

# Check current daemon status, PID, listening ports, and memory:
./skills/seekdb-assistant/scripts/seekdb_ctl.sh status

# Start SeekDB in background (ports 2881 SQL / 2882 RPC):
./skills/seekdb-assistant/scripts/seekdb_ctl.sh start

# Stop SeekDB daemon gracefully:
./skills/seekdb-assistant/scripts/seekdb_ctl.sh stop

# Restart SeekDB daemon:
./skills/seekdb-assistant/scripts/seekdb_ctl.sh restart

# Follow daemon logs in real time:
./skills/seekdb-assistant/scripts/seekdb_ctl.sh logs

2. Interactive SQL & Query Debugging

Direct Terminal Shell

Launch an interactive obclient session:

./skills/seekdb-assistant/scripts/seekdb_ctl.sh cli

Or execute a one-liner SQL query:

./skills/seekdb-assistant/scripts/seekdb_ctl.sh cli -e "SELECT version(), now();"

Vector Search Validation

Run the automated vector testing suite to verify vector creation, insertion, similarity search, and index build:

# Quick smoke test (1,000 vectors, 128 dimensions):
python3 ./skills/seekdb-assistant/scripts/seekdb_vector_benchmark.py -n 1000 -d 128

# High-dimensional benchmark (10,000 vectors, 768 dimensions):
python3 ./skills/seekdb-assistant/scripts/seekdb_vector_benchmark.py -n 10000 -d 768 --topk 10

# Test SeekDB Copy-on-Write Database Forking:
python3 ./skills/seekdb-assistant/scripts/seekdb_vector_benchmark.py -n 1000 --test-fork

3. Configuration & Performance Tuning

Inspect Parameters

Check memory and CPU allocations:

./skills/seekdb-assistant/scripts/seekdb_tune.sh inspect

Prevent Long-Query Timeouts

Extend query and transaction timeouts during large index builds:

./skills/seekdb-assistant/scripts/seekdb_tune.sh tune-timeouts

Apply Resource Presets

  • Developer Laptop Mode (Low Memory / 4G):
    ./skills/seekdb-assistant/scripts/seekdb_tune.sh tune-dev
    
  • Vector High-Performance Mode (12G RAM / 16 Cores):
    ./skills/seekdb-assistant/scripts/seekdb_tune.sh tune-perf
    

4. Key SeekDB Features Reference

For detailed syntax examples (including VECTOR(N), l2_distance, cosine_distance, CREATE VECTOR INDEX ... WITH (type=hnsw, lib=vsag) and FORK DATABASE), refer to the full references/seekdb_runbook.md.