Skip to content

Commit b0e314a

Browse files
committed
Document queryPrefix exclusion from embeddingFingerprint
1 parent df1e0a1 commit b0e314a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/lib/multi-config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ export interface EmbeddingConfig {
101101
}
102102

103103
/**
104-
* Build a stable fingerprint string from embedding config fields that affect embeddings.
104+
* Build a stable fingerprint string from embedding config fields that affect stored vectors.
105105
* Used to detect config changes that require re-indexing.
106+
*
107+
* queryPrefix is intentionally excluded: it only affects query-time embeddings,
108+
* not the stored document vectors — so changing it does not require re-indexing.
106109
*/
107110
export function embeddingFingerprint(config: EmbeddingConfig): string {
108111
return `${config.model}|${config.pooling}|${config.normalize}|${config.dtype ?? ''}|${config.documentPrefix}`;

0 commit comments

Comments
 (0)