AzureCosmosDBSimilarityType: {
    COS: "COS";
    IP: "IP";
    L2: "L2";
} = ...

Type declaration

  • ReadonlyCOS: "COS"

    CosineSimilarity

  • ReadonlyIP: "IP"

    Inner - product

  • ReadonlyL2: "L2"

    Euclidian distance

Install and import from "@langchain/azure-cosmosdb" instead. Cosmos DB Similarity type.