fix: Remove Collections from all index names (#473)

Co-authored-by: Tadashi <tadashi@cinnamon.is>
This commit is contained in:
Pedro Lima
2024-12-04 02:40:46 +00:00
committed by GitHub
parent 32732c35de
commit 159f4da7c9
4 changed files with 6 additions and 7 deletions

View File

@@ -303,7 +303,8 @@ KH_INDEX_TYPES = [
GRAPHRAG_INDICES = [
{
"name": graph_type.split(".")[-1].replace("Index", ""), # get last name
"name": graph_type.split(".")[-1].replace("Index", "")
+ " Collection", # get last name
"config": {
"supported_file_types": (
".png, .jpeg, .jpg, .tiff, .tif, .pdf, .xls, .xlsx, .doc, .docx, "
@@ -318,7 +319,7 @@ GRAPHRAG_INDICES = [
KH_INDICES = [
{
"name": "File",
"name": "File Collection",
"config": {
"supported_file_types": (
".png, .jpeg, .jpg, .tiff, .tif, .pdf, .xls, .xlsx, .doc, .docx, "