Skip to content

Commit

Permalink
feat(modeldetails): migrate type to record (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
lprovost-coveo authored Jan 6, 2025
1 parent 8d7e4b6 commit 7e39c36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {ModelDetailsSubModels} from './ModelDetailsSubModels.js';
export interface ModelDetails {
possibleRecommendations?: number;
totalQueries?: number;
recommendationsPerLanguage?: Map<string, number>;
recommendationsPerLanguage?: Record<string, number>;
userContextFields?: string[];
contentIDKeys?: string[];
candidatesPerFilters?: Map<string, number>;
contextCandidateExamples?: Map<string, string[]>;
languages?: Map<string, ModelDetailsLanguages>;
candidateExamples?: Map<string, string[]>;
candidatesPerLanguages?: Map<string, number>;
minClickCountByLang?: Map<string, number>;
candidatesPerFilters?: Record<string, number>;
contextCandidateExamples?: Record<string, string[]>;
languages?: Record<string, ModelDetailsLanguages>;
candidateExamples?: Record<string, string[]>;
candidatesPerLanguages?: Record<string, number>;
minClickCountByLang?: Record<string, number>;
subModels?: {[key: string]: ModelDetailsSubModels};
candidates?: number;
modelDetailedBuildingStats?: ModelDetailsBuildingStats;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export interface ModelDetailsLanguages {
words?: number;
stopwords?: number;
topfacets?: string[];
contextKeysToDocuments?: Map<string, number>;
docPerFilters?: Map<string, number>;
contextKeysToDocuments?: Record<string, number>;
docPerFilters?: Record<string, number>;
}

0 comments on commit 7e39c36

Please sign in to comment.