lancedb

Table Creation (REQUIRED)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "lancedb" with this command: npx skills add poletron/custom-rules/poletron-custom-rules-lancedb

Critical Patterns

Table Creation (REQUIRED)

import lancedb

✅ ALWAYS: Define schema clearly

db = lancedb.connect("./my_db")

data = [ {"id": 1, "text": "Hello world", "vector": [0.1, 0.2, ...]}, {"id": 2, "text": "Goodbye world", "vector": [0.3, 0.4, ...]}, ]

table = db.create_table("my_table", data)

Vector Search (REQUIRED)

✅ Search by vector similarity

results = table.search([0.1, 0.2, ...]).limit(10).to_list()

✅ With filter

results = table.search(query_vector)
.where("category = 'tech'")
.limit(5)
.to_list()

Decision Tree

Need semantic search? → Use vector search Need exact match? → Use where clause Need hybrid search? → Combine vector + filter Need persistence? → Use file-based connection

Resources

  • Best Practices: best-practices.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

trpc

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-flow

No summary provided by upstream source.

Repository SourceNeeds Review
General

javascript-mastery

No summary provided by upstream source.

Repository SourceNeeds Review
General

coding-standards

No summary provided by upstream source.

Repository SourceNeeds Review