diff --git a/docs/attributes-registry/db.md b/docs/attributes-registry/db.md index bc6f42e7f4..8f969013df 100644 --- a/docs/attributes-registry/db.md +++ b/docs/attributes-registry/db.md @@ -10,6 +10,8 @@ - [Cassandra Attributes](#cassandra-attributes) - [Azure Cosmos DB Attributes](#azure-cosmos-db-attributes) - [Elasticsearch Attributes](#elasticsearch-attributes) +- [Search attributes](#search-attributes) +- [Db Vector Attributes](#db-vector-attributes) - [Deprecated Database Attributes](#deprecated-database-attributes) - [Deprecated Database Metrics](#deprecated-database-metrics) diff --git a/model/database/registry.yaml b/model/database/registry.yaml index c67c035cc2..d28e761743 100644 --- a/model/database/registry.yaml +++ b/model/database/registry.yaml @@ -566,8 +566,62 @@ groups: `db.elasticsearch.path_parts.`, where `` is the url path part name. The implementation SHOULD reference the [elasticsearch schema](https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json) in order to map the path part values to their names. - examples: - [ - "db.elasticsearch.path_parts.index=test-index", - "db.elasticsearch.path_parts.doc_id=123", - ] + examples: ['db.elasticsearch.path_parts.index=test-index', 'db.elasticsearch.path_parts.doc_id=123'] + - id: registry.db.search + prefix: db.search + type: attribute_group + display_name: Search attributes + brief: > + This group defines attributes for Search. + attributes: + - id: similarity_metric + type: + members: + - id: cosine + value: 'cosine' + brief: > + The cosine metric. + stability: experimental + - id: dot + value: 'dot' + brief: > + The dot product metric. + stability: experimental + - id: euclidean + value: 'euclidean' + brief: > + The euclidean distance metric. + stability: experimental + - id: manhattan + value: 'manhattan' + brief: > + The Manhattan distance metric. + stability: experimental + stability: experimental + brief: > + The metric used in similarity search. + examples: 'cosine' + - id: registry.db.vector + prefix: db.vector + type: attribute_group + brief: > + This group defines attributes for vector databases. + attributes: + - id: field_name + type: string + stability: experimental + brief: > + The name field as of the vector (e.g. a field name). + examples: 'vector' + - id: dimension_count + type: int + stability: experimental + brief: > + The dimension of the vector. + examples: [3] + - id: query.top_k + type: int + stability: experimental + brief: > + The top-k most similar vectors returned by a query. + examples: [5]