feat: include light rag build in Docker (#475) #none
* feat: update docker build for lightrag * feat: update docker build * feat: update docker build
This commit is contained in:
committed by
GitHub
parent
aeace96c48
commit
42a5cbd21e
@@ -289,29 +289,32 @@ SETTINGS_REASONING = {
|
||||
USE_NANO_GRAPHRAG = config("USE_NANO_GRAPHRAG", default=False, cast=bool)
|
||||
USE_LIGHTRAG = config("USE_LIGHTRAG", default=False, cast=bool)
|
||||
|
||||
GRAPHRAG_INDEX_TYPES = ["ktem.index.file.graph.GraphRAGIndex"]
|
||||
|
||||
if USE_NANO_GRAPHRAG:
|
||||
GRAPHRAG_INDEX_TYPE = "ktem.index.file.graph.NanoGraphRAGIndex"
|
||||
GRAPHRAG_INDEX_TYPES.append("ktem.index.file.graph.NanoGraphRAGIndex")
|
||||
elif USE_LIGHTRAG:
|
||||
GRAPHRAG_INDEX_TYPE = "ktem.index.file.graph.LightRAGIndex"
|
||||
else:
|
||||
GRAPHRAG_INDEX_TYPE = "ktem.index.file.graph.GraphRAGIndex"
|
||||
GRAPHRAG_INDEX_TYPES.append("ktem.index.file.graph.LightRAGIndex")
|
||||
|
||||
KH_INDEX_TYPES = [
|
||||
"ktem.index.file.FileIndex",
|
||||
GRAPHRAG_INDEX_TYPE,
|
||||
*GRAPHRAG_INDEX_TYPES,
|
||||
]
|
||||
|
||||
GRAPHRAG_INDEX = {
|
||||
"name": GRAPHRAG_INDEX_TYPE.split(".")[-1].replace("Index", ""), # get last name
|
||||
"config": {
|
||||
"supported_file_types": (
|
||||
".png, .jpeg, .jpg, .tiff, .tif, .pdf, .xls, .xlsx, .doc, .docx, "
|
||||
".pptx, .csv, .html, .mhtml, .txt, .md, .zip"
|
||||
),
|
||||
"private": False,
|
||||
},
|
||||
"index_type": GRAPHRAG_INDEX_TYPE,
|
||||
}
|
||||
GRAPHRAG_INDICES = [
|
||||
{
|
||||
"name": graph_type.split(".")[-1].replace("Index", ""), # get last name
|
||||
"config": {
|
||||
"supported_file_types": (
|
||||
".png, .jpeg, .jpg, .tiff, .tif, .pdf, .xls, .xlsx, .doc, .docx, "
|
||||
".pptx, .csv, .html, .mhtml, .txt, .md, .zip"
|
||||
),
|
||||
"private": False,
|
||||
},
|
||||
"index_type": graph_type,
|
||||
}
|
||||
for graph_type in GRAPHRAG_INDEX_TYPES
|
||||
]
|
||||
|
||||
KH_INDICES = [
|
||||
{
|
||||
@@ -325,5 +328,5 @@ KH_INDICES = [
|
||||
},
|
||||
"index_type": "ktem.index.file.FileIndex",
|
||||
},
|
||||
GRAPHRAG_INDEX,
|
||||
*GRAPHRAG_INDICES,
|
||||
]
|
||||
|
Reference in New Issue
Block a user