Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AI Northstar Tech Vector io Index Discovery

From Leeroopedia
Knowledge Sources
Domains Vector_Database, Export, Metadata
Last Updated 2026-10-15 00:00 GMT

Overview

A data access pattern for discovering and selecting vector database indexes (or collections) available to a user, enabling targeted export of specific data subsets.

Description

Index Discovery addresses the problem of identifying which indexes or collections exist in a vector database before exporting data. Different vector databases use different terminology (Pinecone calls them "indexes", Qdrant calls them "collections", Milvus calls them "collections") and different APIs for listing them.

The pattern defines two complementary operations:

  • get_all_index_names(): Returns all available indexes/collections in the database, regardless of user access or other constraints. Used for discovery and display.
  • get_index_names(): Returns the user-selected subset of indexes to export. This may filter by user choice, access permissions, or other criteria.

By separating "all available" from "selected for export", the pattern allows users to see what's available and choose specific indexes, which is important for large databases where exporting everything is impractical.

Usage

Use this principle when designing systems that need to enumerate and select from multiple data containers in a vector database. It applies to:

  • Export tools that need to know which indexes to extract
  • Migration tools that need to map source indexes to target indexes
  • Administrative tools that need to inventory database contents

Theoretical Basis

The discovery and selection flow:

# Abstract algorithm (NOT real implementation)
class Exporter:
    def get_all_index_names(self) -> List[str]:
        """Query the DB for all available index/collection names."""
        return db_client.list_indexes()

    def get_index_names(self) -> List[str]:
        """Get the subset of indexes the user wants to export."""
        all_indexes = self.get_all_index_names()
        selected = self.args.get("index")
        if selected:
            return [i for i in all_indexes if i in selected]
        return all_indexes  # Export all if not specified

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment