Skip to content

Commit

Permalink
starting
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Haltmayer <[email protected]>
  • Loading branch information
Filip Haltmayer committed Apr 21, 2023
1 parent a1e3734 commit 00fb70b
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 0 deletions.
Empty file.
28 changes: 28 additions & 0 deletions pymilvus/pymilvus_client/defaults.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""Default vectorstore args."""

DEFAULT_COLLECTION_ARGS = {
"collection_name": "ClientStore",
}
DEFAULT_LOAD_ARGS = {
"partition": None,
"replica_number": 1,
}

DEFAULT_CONNECTION_ARGS ={
"alias": 'default',

}

DEFAULT_SEARCH_PARAMS = {
"IVF_FLAT": {"metric_type": "L2", "params": {"nprobe": 10}},
"IVF_SQ8": {"metric_type": "L2", "params": {"nprobe": 10}},
"IVF_PQ": {"metric_type": "L2", "params": {"nprobe": 10}},
"HNSW": {"metric_type": "L2", "params": {"ef": 10}},
"RHNSW_FLAT": {"metric_type": "L2", "params": {"ef": 10}},
"RHNSW_SQ": {"metric_type": "L2", "params": {"ef": 10}},
"RHNSW_PQ": {"metric_type": "L2", "params": {"ef": 10}},
"IVF_HNSW": {"metric_type": "L2", "params": {"nprobe": 10, "ef": 10}},
"ANNOY": {"metric_type": "L2", "params": {"search_k": 10}},
"AUTOINDEX": {"metric_type": "L2", "params": {}},
}

Loading

0 comments on commit 00fb70b

Please sign in to comment.