Skip to content

InvalidRequestError: Unknown PG numeric type when using postgres pgvector extension #580

Discussion options

You must be logged in to vote

Yeah I fixed it by changing:

embedding: List[float] = Field(default=None, sa_column=Vector(1536))

to:

embedding: List[float] = Field(default=None, sa_column=Column(Vector(1536)))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@saeedesmaili
Comment options

Answer selected by saeedesmaili
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
3 participants