Path: blob/main/extensions/copilot/test/base/embeddingsCache.ts
13388 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/4import { EmbeddingVector } from '../../src/platform/embeddings/common/embeddingsComputer';5import { SQLiteCache } from './cache';6import { CacheableEmbeddingRequest, IEmbeddingsCache } from './cachingEmbeddingsFetcher';7import { CurrentTestRunInfo } from './simulationContext';89export const usedEmbeddingsCaches = new Set<string>();1011export class EmbeddingsSQLiteCache extends SQLiteCache<CacheableEmbeddingRequest, EmbeddingVector> implements IEmbeddingsCache {12constructor(salt: string, currentTestRunInfo: CurrentTestRunInfo) {13super('embeddings', salt, currentTestRunInfo);14}15}1617