We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df1e0a1 commit b0e314aCopy full SHA for b0e314a
1 file changed
src/lib/multi-config.ts
@@ -101,8 +101,11 @@ export interface EmbeddingConfig {
101
}
102
103
/**
104
- * Build a stable fingerprint string from embedding config fields that affect embeddings.
+ * Build a stable fingerprint string from embedding config fields that affect stored vectors.
105
* 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.
109
*/
110
export function embeddingFingerprint(config: EmbeddingConfig): string {
111
return `${config.model}|${config.pooling}|${config.normalize}|${config.dtype ?? ''}|${config.documentPrefix}`;
0 commit comments