cherry-pick 1248b3ab
This commit is contained in:
parent
5ac376ed63
commit
36078fc348
1 changed files with 6 additions and 6 deletions
|
|
@ -58,17 +58,17 @@ DEFAULT_MIN_RERANK_SCORE = 0.0
|
|||
DEFAULT_RERANK_BINDING = "null"
|
||||
|
||||
# Default source ids limit in meta data for entity and relation
|
||||
DEFAULT_MAX_SOURCE_IDS_PER_ENTITY = 3
|
||||
DEFAULT_MAX_SOURCE_IDS_PER_RELATION = 3
|
||||
SOURCE_IDS_LIMIT_METHOD_KEEP = "KEEP"
|
||||
SOURCE_IDS_LIMIT_METHOD_FIFO = "FIFO"
|
||||
DEFAULT_MAX_SOURCE_IDS_PER_ENTITY = 300
|
||||
DEFAULT_MAX_SOURCE_IDS_PER_RELATION = 300
|
||||
SOURCE_IDS_LIMIT_METHOD_KEEP = "KEEP" # Keep oldest
|
||||
SOURCE_IDS_LIMIT_METHOD_FIFO = "FIFO" # First In First Out (Keep newest)
|
||||
DEFAULT_SOURCE_IDS_LIMIT_METHOD = SOURCE_IDS_LIMIT_METHOD_KEEP
|
||||
VALID_SOURCE_IDS_LIMIT_METHODS = {
|
||||
SOURCE_IDS_LIMIT_METHOD_KEEP,
|
||||
SOURCE_IDS_LIMIT_METHOD_FIFO,
|
||||
}
|
||||
# Default file_path limit in meta data for entity and relation
|
||||
DEFAULT_MAX_FILE_PATHS = 2
|
||||
# Default file_path limit in meta data for entity and relation (Use same limit method as source_ids)
|
||||
DEFAULT_MAX_FILE_PATHS = 30
|
||||
|
||||
# Field length of file_path in Milvus Schema for entity and relation (Should not be changed)
|
||||
# file_path must store all file paths up to the DEFAULT_MAX_FILE_PATHS limit within the metadata.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue