langchain.js
    Preparing search index...

    Operation to retrieve an item by namespace and ID.

    interface GetOperation {
        key: string;
        namespace: string[];
    }
    Index

    Properties

    Properties

    key: string

    Unique identifier within the namespace. Together with namespace forms the complete path to the item.

    key: "user123"  // For a user profile
    key: "doc456" // For a document
    namespace: string[]

    Hierarchical path for the item.

    // Get a user profile
    namespace: ["users", "profiles"]