Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

fix: Data ingestion fails due to OpenSearch "documents" index not found exception

Mike Pawlowskia2eefe31ae69
diff --git a/flows/components/opensearch_multimodal.py b/flows/components/opensearch_multimodal.py
index dad23c56b..5d8d96f87 100644
--- a/flows/components/opensearch_multimodal.py
+++ b/flows/components/opensearch_multimodal.py
@@ -462,7 +462,7 @@ class OpenSearchVectorStoreComponentMultimodalMultiEmbedding(LCVectorStoreCompon
engine: str = "jvector",
space_type: str = "l2",
ef_search: int = 512,
- ef_construction: int = 512,
+ ef_construction: int = 100,
m: int = 16,
vector_field: str = "vector_field",
) -> dict[str, Any]:
diff --git a/src/config/settings.py b/src/config/settings.py
index 51a89b807..f9118bc46 100644
--- a/src/config/settings.py
+++ b/src/config/settings.py
@@ -92,7 +92,7 @@ WEBHOOK_BASE_URL = os.getenv(
# OpenSearch configuration
VECTOR_DIM = 1536
-KNN_EF_CONSTRUCTION = 512
+KNN_EF_CONSTRUCTION = 100
KNN_M = 16
EMBED_MODEL = "text-embedding-3-small"