Skip to content

Base

Vectorstore

Base class for vectorstores.

Allows for easy logging and context management.

Attributes:

Name Type Description
_in_context bool

Whether the vectorstore is currently in a context.

Example

Basic Usage of Vectorstore

from raggy.vectorstores.base import Vectorstore

class MyVectorstore(Vectorstore):
    pass

with MyVectorstore() as vectorstore:
    ...