MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / getEmbeddingBatchSize

Function getEmbeddingBatchSize

src/core/embeddings.ts:178–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176}
177
178export function getEmbeddingBatchSize(): number {
179 const requested = toIntegerOr(process.env.CONTEXTPLUS_EMBED_BATCH_SIZE, DEFAULT_EMBED_BATCH_SIZE);
180 return Math.min(MAX_EMBED_BATCH_SIZE, Math.max(MIN_EMBED_BATCH_SIZE, requested));
181}
182
183export function getEmbedChunkChars(): number {
184 const requested = toIntegerOr(process.env.CONTEXTPLUS_EMBED_CHUNK_CHARS, DEFAULT_EMBED_CHUNK_CHARS);

Callers 7

buildIdentifierIndexFunction · 0.85
rankCallSitesFunction · 0.85
fetchEmbeddingFunction · 0.85
indexMethod · 0.85

Calls 1

toIntegerOrFunction · 0.70

Tested by

no test coverage detected