fix: remove duplicate embedding input from PGVector component (#5680)

* fix: remove duplicate embedding input from PGVector component

* refactor: move required parameter to end of embedding input declaration

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
Raphael Valdetaro 2025-01-17 16:25:01 -03:00 committed by GitHub
commit 4bdc8ea83f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ class PGVectorStoreComponent(LCVectorStoreComponent):
SecretStrInput(name="pg_server_url", display_name="PostgreSQL Server Connection String", required=True),
StrInput(name="collection_name", display_name="Table", required=True),
*LCVectorStoreComponent.inputs,
HandleInput(name="embedding", display_name="Embedding", input_types=["Embeddings"]),
HandleInput(name="embedding", display_name="Embedding", input_types=["Embeddings"], required=True),
IntInput(
name="number_of_results",
display_name="Number of Results",
@ -25,7 +25,6 @@ class PGVectorStoreComponent(LCVectorStoreComponent):
value=4,
advanced=True,
),
HandleInput(name="embedding", display_name="Embedding", input_types=["Embeddings"]),
]
@check_cached_vector_store