Skip to content

Commit 6148b10

Browse files
NanoClemc.decoopman
andauthored
fix : correct type checking against db column for embedding_column variable (#243)
See #241 for reference. --------- Co-authored-by: c.decoopman <[email protected]>
1 parent f6c3a5c commit 6148b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain_postgres/v2/async_vectorstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async def create(
210210
hybrid_search_config.tsv_column = ""
211211
if embedding_column not in columns:
212212
raise ValueError(f"Embedding column, {embedding_column}, does not exist.")
213-
if columns[embedding_column] != "USER-DEFINED":
213+
if columns[embedding_column] not in ["USER-DEFINED", "vector"]:
214214
raise ValueError(
215215
f"Embedding column, {embedding_column}, is not type Vector."
216216
)

0 commit comments

Comments
 (0)