ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { CancellationToken } from './cancellation.js';
type SparseEmbedding = Record</* word */ string, /* weight */number>;
type TermFrequencies = Map</* word */ string, /*occurrences*/ number>;
type DocumentOccurrences = Map</* word */ string, /*documentOccurrences*/ number>;
function countMapFrom<K>(values: Iterable< Map
map
value values
mapvalue mapvalue
map
text
tf TermFrequencies
key
textChunks
key
score
key
score
query token CancellationToken TfIdfScore
embedding query
idfCache
scores TfIdfScore
key doc documents
tokenisCancellationRequested
chunk docchunks
score chunk embedding idfCache
score
scores key score
scores
input TermFrequencies
TfIdfCalculatorinput
input Iterable
word word
word input
word
camelParts word
camelPartslength
part camelParts
partlength part
part
chunkCount
chunkOccurrences DocumentOccurrences
documents
documents ReadonlyArrayTfIdfDocument
key documents
key
doc documents
chunks text tf TermFrequencies
text doctextChunks
tf TfIdfCalculatortext
term tf
chunkOccurrencesterm chunkOccurrencesterm
chunks text tf
chunkCount chunkslength
documentsdockey chunks
key
doc documentskey
doc
documentskey
chunkCount docchunkslength
chunk docchunks
term chunktf
currentOccurrences chunkOccurrencesterm
currentOccurrences
newOccurrences currentOccurrences
newOccurrences
chunkOccurrencesterm
chunkOccurrencesterm newOccurrences
chunk DocumentChunkEntry queryEmbedding SparseEmbedding idfCache Map
sum
term termTfidf ObjectqueryEmbedding
chunkTf chunktfterm
chunkTf
chunkIdf idfCacheterm
chunkIdf
chunkIdf term
idfCacheterm chunkIdf
chunkTfidf chunkTf chunkIdf
sum chunkTfidf termTfidf
sum
input SparseEmbedding
tf TfIdfCalculatorinput
tf
term
chunkOccurrences chunkOccurrencesterm
chunkOccurrences
MathchunkCount chunkOccurrences
termFrequencies TermFrequencies SparseEmbedding
embedding Object
word occurrences termFrequencies
idf word
idf
embeddingword occurrences idf
embedding
scores TfIdfScore NormalizedTfIdfScore
result scores score
resulta b bscore ascore
max resultscore
max
score result
scorescore max
result TfIdfScore