Skip to content

Commit 06e4a3d

Browse files
PROVIDER_ID / COLLECTION_NAME mapping from vector_store_binding
Signed-off-by: Lukasz Cmielowski <lcmielow@redhat.com> Assisted-by: Cursor
1 parent 34ca001 commit 06e4a3d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • components/training/autorag/rag_templates_optimization

components/training/autorag/rag_templates_optimization/component.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ def create_placeholder_mapping(
431431
mapping["EMBEDDING_PARAMS"] = em.get("embedding_params", {"embedding_dimension": 768})
432432
mapping["DISTANCE_METRIC"] = em.get("distance_metric", "")
433433

434-
vs = settings.get("vector_store", {})
435-
mapping["PROVIDER_ID"] = vs.get("datasource_type", "")
436-
mapping["COLLECTION_NAME"] = vs.get("collection_name", "")
434+
vs_binding = settings.get("vector_store_binding") or {}
435+
mapping["PROVIDER_ID"] = vs_binding.get("provider_id", "")
436+
mapping["COLLECTION_NAME"] = vs_binding.get("vector_store_id", "")
437437

438438
ret = settings.get("retrieval", {})
439439
mapping["RETRIEVAL_METHOD"] = ret.get("method", "")

0 commit comments

Comments
 (0)