Skip to main content

Module instance_id

Module instance_id 

Source
Expand description

Stable per-database instance identity (#5742).

Autoincrementing primary keys (e.g. conversation_id) are unique only within one physical database. When multiple independent databases share a single external store (e.g. Qdrant), those keys collide. get_or_create_instance_id gives each database a random UUID, generated once and persisted, that callers combine with such keys to disambiguate them across databases.

Functions§

get_or_create_instance_id
Fetch this database’s stable instance UUID, generating and persisting one on first call.