vector-db-integrator
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Integrates a vector database (Pinecone, Qdrant, Chroma, Weaviate, pgvector) into an application for semantic search or similarity queries. Use when adding vector search to any project.
In this repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- csv-processorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- json-transformerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- time-series-analyzerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- nginx-config-generatorSkill
- security-hardeningSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- nextjs-app-scaffoldSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 83
Multi-tenancy leakage: Always filter by tenant ID on every query.
- Distinctive: line 88
Create the index/collection.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
Provides complete integration code and guidance for the major vector databases. Covers selection criteria (hosted vs self-hosted, scale, cost, features), index/collection creation, metadata filtering, upsert and query patterns, namespace design, hybrid search, backup, and production-ready client code for Pinecone, Qdrant, Chroma, Weaviate, and pgvector.
When to Use This Skill
- Adding semantic search, recommendations, or RAG to an application.
- Choosing or switching vector databases.
- The user mentions a specific vector DB or needs help with the integration layer.
Prerequisites
- Embedding model chosen and accessible.
- Text (or other) data to vectorize.
- Chosen vector DB (or decision still open — the skill helps compare).
Steps
- DB selection guide:
- Chroma: great for local/dev and small-medium production.
- pgvector: if you already have Postgres and want everything in one DB.
- Qdrant / Weaviate: strong self-hosted or managed options, good filtering and hybrid.
- Pinecone: fully managed, serverless, excellent for large scale and low ops burden.
- Schema / collection design:
- Dimension (must match embedding model).
- Distance metric.
- Metadata schema (what will you filter on?).
- Namespaces or collections for multi-tenancy or data partitioning.
- Client setup & connection:
- API keys / connection strings.
- Async vs sync clients where available.
- Upsert pattern (idempotent):
- Stable IDs.
- Batch upserts (hundreds to thousands at a time).
- Include metadata and (optionally) the original text for reranking or display.
- Query pattern:
- Embed the query.
- Query with top_k, filter, include_metadata.
- Hybrid search (vector + sparse/keyword) when supported.
- Post-retrieval reranking (optional but powerful).
- Production concerns:
- Backup / snapshots.
- Monitoring (index size, query latency, error rate).
- Multi-tenancy (namespaces, partitions, or separate collections).
- Cost control (for hosted services).
- Output:
- Comparison table of the top 5 DBs.
- Complete, copy-pasteable client code for the top 3 (upsert + filtered query + hybrid if available).
- Collection/index creation script.
- Example of metadata filtering.
- Deployment / connection string notes.
Examples
Full integration modules for:
- Pinecone (serverless index, metadata filtering, hybrid).
- Qdrant (self-hosted or cloud, payload filtering, hybrid).
- pgvector (in existing Postgres, HNSW index, metadata via JSONB). With a shared embedding + query interface so swapping DBs is easy.
Edge Cases & Error Handling
- Dimension mismatch: Fail fast with clear error.
- Rate limits / quotas (Pinecone, etc.): Implement backoff and batch sizing.
- Multi-tenancy leakage: Always filter by tenant ID on every query.
- Stale data: Version vectors or use timestamps in metadata + filter.
Verification
- Create the index/collection.
- Upsert a small test set — vectors are queryable.
- Semantic queries return expected similar items.
- Metadata filters work correctly (e.g., only 2024 documents).
- Hybrid search (if used) improves relevance over pure vector.
- The client code handles errors and retries gracefully.
- Success: Vector search is reliably integrated and performs well at the expected scale.
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

