MCPcopy Create free account
hub / github.com/MemTensor/MemOS / test_base_vec_db_config

Function test_base_vec_db_config

tests/configs/test_vec_db.py:13–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test_base_vec_db_config():
14 check_config_base_class(
15 BaseVecDBConfig,
16 required_fields=[
17 "collection_name",
18 ],
19 optional_fields=[
20 "vector_dimension",
21 "distance_metric",
22 ],
23 )
24
25 check_config_instantiation_valid(
26 BaseVecDBConfig,
27 {
28 "collection_name": "test_collection",
29 "vector_dimension": 768,
30 "distance_metric": "cosine",
31 },
32 )
33
34 check_config_instantiation_invalid(BaseVecDBConfig)
35
36
37def test_qdrant_vec_db_config():

Callers

nothing calls this directly

Tested by

no test coverage detected