Constructor IngestionRecipe
IngestionRecipe(int, string, int, string, string?, string?, string, int, int, string, int, ResolvedChunkOptions, string, string)
The tuple a chunk's vector is a pure function of (spec 9.2). When a document's stored
recipe_hash differs from the run's, that document is dirty regardless of its content
hash — which is what stops a MaxTokens change from leaving every old vector in place.
public IngestionRecipe(int SchemaVersion, string ModelProfileId, int Dimensions, string Pooling, string? DocumentPrefix, string? QueryPrefix, string TokenizerId, int TokenizerMaxSequenceLength, int SpecialTokenOverhead, string ChunkerId, int ChunkerVersion, ResolvedChunkOptions Chunking, string ExtractorFingerprint, string DistanceFunction)
Parameters
SchemaVersionintThe recipe's own shape version. Bump when a field is added.
ModelProfileIdstringSP2's lower-case preset id, verbatim.
DimensionsintThe collection's declared width.
PoolingstringThe model's pooling mode.
DocumentPrefixstringA token RESERVE and a recipe input only; SP3 never writes it.
QueryPrefixstringThe query-side prefix, for completeness.
TokenizerIdstringThe tokenizer's vocabulary identity.
TokenizerMaxSequenceLengthintThe tokenizer's ceiling.
SpecialTokenOverheadintTokens the encoder adds that
CountTokensomits.ChunkerIdstringThe selected chunker.
ChunkerVersionintIts version.
ChunkingResolvedChunkOptionsThe frozen budget, field by field.
ExtractorFingerprintstringThe SELECTED extractor's
"{Id}:{Version}", never the registry's: hashing the set would re-index an entire Markdown corpus because the PDF extractor's version was bumped. Because the selection is per document, the recipe a run freezes at startup carries the stand-in"*"in this one field, and the recipe actually written to and compared againstrecipe_hashis that baseline with the chosen extractor's fingerprint substituted. The baseline is whatGetRecipeAsync,IngestionRunResult.RecipeHashandIngestionStatus.RecipeHashreport, because it is the one recipe identity that does not depend on which file was next.DistanceFunctionstringThe collection's distance function.