vectorstores: add pgvector by Abirdcfly · Pull Request #377 · tmc/langchaingo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I may be getting it, but it seems difficult to do this if we wants to keep the table name as a parameter create table ? or create table $1 will both report an error, and I have to use the Sprint function and do Sanitize() when the user passes in the table name.

Or, we can fix the table name to be a constant and unchangeable.

Everywhere else, $1 is used to replace the parameter.