Skip to content

vector_store.create_collection() fails: AttributeError: 'NoneType' object has no attribute 'get_or_create' #27

Open
@amotl

Description

@amotl

Problem

    def create_collection(self) -> None:
        if self.pre_delete_collection:
            self.delete_collection()
        with self._make_sync_session() as session:
>           self.CollectionStore.get_or_create(
                session, self.collection_name, cmetadata=self.collection_metadata
            )
E           AttributeError: 'NoneType' object has no attribute 'get_or_create'

.venv/lib/python3.12/site-packages/langchain_postgres/vectorstores.py:542: AttributeError

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions