update to flows

This commit is contained in:
Edwin Jose 2025-09-19 21:17:31 -04:00
parent 6a1a87dfe1
commit 083f3d5d3d
6 changed files with 894 additions and 815 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -70,22 +70,22 @@ async def run_ingestion(
if settings:
logger.debug("Applying ingestion settings", settings=settings)
# Split Text component tweaks (SplitText-QIKhg)
# Split Text component tweaks (SplitText-PC36h)
if (
settings.get("chunkSize")
or settings.get("chunkOverlap")
or settings.get("separator")
):
if "SplitText-QIKhg" not in tweaks:
tweaks["SplitText-QIKhg"] = {}
if "SplitText-PC36h" not in tweaks:
tweaks["SplitText-PC36h"] = {}
if settings.get("chunkSize"):
tweaks["SplitText-QIKhg"]["chunk_size"] = settings["chunkSize"]
tweaks["SplitText-PC36h"]["chunk_size"] = settings["chunkSize"]
if settings.get("chunkOverlap"):
tweaks["SplitText-QIKhg"]["chunk_overlap"] = settings[
tweaks["SplitText-PC36h"]["chunk_overlap"] = settings[
"chunkOverlap"
]
if settings.get("separator"):
tweaks["SplitText-QIKhg"]["separator"] = settings["separator"]
tweaks["SplitText-PC36h"]["separator"] = settings["separator"]
# OpenAI Embeddings component tweaks (OpenAIEmbeddings-joRJ6)
if settings.get("embeddingModel"):

View file

@ -60,8 +60,8 @@ async def get_settings(request, session_manager):
.get("template", {})
)
# Split Text component (SplitText-QIKhg)
if node.get("id") == "SplitText-QIKhg":
# Split Text component (SplitText-PC36h)
if node.get("id") == "SplitText-PC36h":
if node_template.get("chunk_size", {}).get(
"value"
):

View file

@ -207,22 +207,22 @@ class LangflowFileService:
if settings:
logger.debug("[LF] Applying ingestion settings", extra={"settings": settings})
# Split Text component tweaks (SplitText-QIKhg)
# Split Text component tweaks (SplitText-PC36h)
if (
settings.get("chunkSize")
or settings.get("chunkOverlap")
or settings.get("separator")
):
if "SplitText-QIKhg" not in final_tweaks:
final_tweaks["SplitText-QIKhg"] = {}
if "SplitText-PC36h" not in final_tweaks:
final_tweaks["SplitText-PC36h"] = {}
if settings.get("chunkSize"):
final_tweaks["SplitText-QIKhg"]["chunk_size"] = settings["chunkSize"]
final_tweaks["SplitText-PC36h"]["chunk_size"] = settings["chunkSize"]
if settings.get("chunkOverlap"):
final_tweaks["SplitText-QIKhg"]["chunk_overlap"] = settings[
final_tweaks["SplitText-PC36h"]["chunk_overlap"] = settings[
"chunkOverlap"
]
if settings.get("separator"):
final_tweaks["SplitText-QIKhg"]["separator"] = settings["separator"]
final_tweaks["SplitText-PC36h"]["separator"] = settings["separator"]
# OpenAI Embeddings component tweaks (OpenAIEmbeddings-joRJ6)
if settings.get("embeddingModel"):