allow to config max segmentation tokens length for RAG document using environment variable (#4375)
This commit is contained in:
parent
b5204111da
commit
c255a20d7c
5 changed files with 21 additions and 4 deletions
|
|
@ -79,6 +79,7 @@ DEFAULTS = {
|
|||
'KEYWORD_DATA_SOURCE_TYPE': 'database',
|
||||
'INNER_API': 'False',
|
||||
'ENTERPRISE_ENABLED': 'False',
|
||||
'INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH': 1000,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -379,3 +380,8 @@ class Config:
|
|||
|
||||
self.KEYWORD_DATA_SOURCE_TYPE = get_env('KEYWORD_DATA_SOURCE_TYPE')
|
||||
self.ENTERPRISE_ENABLED = get_bool_env('ENTERPRISE_ENABLED')
|
||||
|
||||
# ------------------------
|
||||
# Indexing Configurations.
|
||||
# ------------------------
|
||||
self.INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH = get_env('INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue