1 write to _currentChunk
Microsoft.Extensions.DataIngestion (1)
Chunkers\ElementsChunker.cs (1)
28_currentChunk = new(capacity: _maxTokensPerChunk);
10 references to _currentChunk
Microsoft.Extensions.DataIngestion (10)
Chunkers\ElementsChunker.cs (10)
49_currentChunk.Append(context); 74AppendNewLineAndSpan(_currentChunk, semanticContent.AsSpan()); 116AppendNewLineAndSpan(_currentChunk, tableBuilder.AsSpan(0, tableLength - Environment.NewLine.Length)); 140AppendNewLineAndSpan(_currentChunk, tableBuilder.AsSpan(0, tableLength - Environment.NewLine.Length)); 175AppendNewLineAndSpan(_currentChunk, spanToAppend); 199chunks.Add(new(_currentChunk.ToString(), document, context)); 202_currentChunk.Clear(); 208chunks.Add(new(_currentChunk.ToString(), document, context)); 211_currentChunk.Remove( 213length: _currentChunk.Length - context.Length);