Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/base/embeddingsCache.ts
13388 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
import { EmbeddingVector } from '../../src/platform/embeddings/common/embeddingsComputer';
6
import { SQLiteCache } from './cache';
7
import { CacheableEmbeddingRequest, IEmbeddingsCache } from './cachingEmbeddingsFetcher';
8
import { CurrentTestRunInfo } from './simulationContext';
9
10
export const usedEmbeddingsCaches = new Set<string>();
11
12
export class EmbeddingsSQLiteCache extends SQLiteCache<CacheableEmbeddingRequest, EmbeddingVector> implements IEmbeddingsCache {
13
constructor(salt: string, currentTestRunInfo: CurrentTestRunInfo) {
14
super('embeddings', salt, currentTestRunInfo);
15
}
16
}
17