You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WithEmbeddingTableName sanitizes the input and its value becomes "\"custom_name\"", which is set on Store.embeddingTableName.
This then raises an error when the init method is called and it tries to create an index:
sql=fmt.Sprintf(`CREATE INDEX IF NOT EXISTS %s_collection_id ON %s (collection_id)`, s.embeddingTableName, s.embeddingTableName)
The generated error is:
ERROR: syntax error at or near "_collection_id" (SQLSTATE 42601)
I believe we could do away with the sanitization part in WithEmbeddingTableName
The text was updated successfully, but these errors were encountered:
rajaiswal
changed the title
pgvector EmbeddingTableName setter sanitization conflicts with index creation
pgvector WithEmbeddingTableName sanitization conflicts with index creation
Feb 5, 2024
rajaiswal
changed the title
pgvector WithEmbeddingTableName sanitization conflicts with index creation
pgvector WithEmbeddingTableName sanitization conflicts with index creation
Feb 5, 2024
When I initialize pgvector like this:
The
WithEmbeddingTableName
sanitizes the input and its value becomes"\"custom_name\""
, which is set onStore.embeddingTableName
.This then raises an error when the
init
method is called and it tries to create an index:The generated error is:
I believe we could do away with the sanitization part in
WithEmbeddingTableName
The text was updated successfully, but these errors were encountered: