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

Function test_qdrant_vec_db_config

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

Source from the content-addressed store, hash-verified

35
36
37def test_qdrant_vec_db_config():
38 check_config_base_class(
39 QdrantVecDBConfig,
40 required_fields=[
41 "collection_name",
42 ],
43 optional_fields=[
44 "vector_dimension",
45 "distance_metric",
46 "host",
47 "port",
48 "path",
49 "url",
50 "api_key",
51 ],
52 )
53
54 check_config_instantiation_valid(
55 QdrantVecDBConfig,
56 {
57 "collection_name": "test_collection",
58 "vector_dimension": 768,
59 "distance_metric": "cosine",
60 "path": "/custom/path",
61 },
62 )
63
64 check_config_instantiation_valid(
65 QdrantVecDBConfig,
66 {
67 "collection_name": "test_collection",
68 "vector_dimension": 768,
69 "distance_metric": "cosine",
70 "url": "https://cloud.qdrant.example",
71 "api_key": "dummy",
72 },
73 )
74
75 check_config_instantiation_invalid(QdrantVecDBConfig)
76
77
78def test_vector_db_config_factory():

Callers

nothing calls this directly

Tested by

no test coverage detected