Skip to content

How to store text embeddings in custom table in PGVector? #17223

Closed Answered by dosubot bot
vinayak-shanawad asked this question in Q&A
Discussion options

You must be logged in to vote

🤖

Hey there, @vinayak-shanawad! Good to see you back with another intriguing question. Hope you're doing well!

Based on the current implementation of the LangChain framework, there is no built-in way to store text vector embeddings in custom tables with PGVector. The table names 'langchain_pg_collection' and 'langchain_pg_embedding' are hardcoded in the CollectionStore and EmbeddingStore classes respectively, as shown below:

class CollectionStore(BaseModel):
    """Collection store."""
    __tablename__ = "langchain_pg_collection"
    ...

class EmbeddingStore(BaseModel):
    """Embedding store."""
    __tablename__ = "langchain_pg_embedding"
    ...

These classes are used throughout the P…

Replies: 2 comments 1 reply

Comment options

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

Answer selected by vinayak-shanawad
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
Category
Q&A
Labels
None yet
3 participants