langchain.vectorstores.pgembedding.CollectionStore¶
- class langchain.vectorstores.pgembedding.CollectionStore(**kwargs)[source]¶
Bases:
BaseModelA simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
Methods
__init__(**kwargs)A simple constructor that allows initialization from kwargs.
get_by_name(session, name)get_or_create(session, name[, cmetadata])Get or create a collection.
Attributes
- classmethod get_by_name(session: Session, name: str) Optional[CollectionStore][source]¶
- classmethod get_or_create(session: Session, name: str, cmetadata: Optional[dict] = None) Tuple[CollectionStore, bool][source]¶
Get or create a collection. Returns [Collection, bool] where the bool is True if the collection was created.
- cmetadata¶
- embeddings¶
- metadata: MetaData = MetaData()¶
- name¶
- registry: RegistryType = <sqlalchemy.orm.decl_api.registry object>¶
- uuid¶