Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 743 Bytes

index.rst

File metadata and controls

34 lines (24 loc) · 743 Bytes

Storage Adapters

Storage adapters provide an interface that allows ChatterBot to connect to different storage backends.

create-a-storage-adapter

The storage adapter that your bot uses can be specified by setting the storage_adapter parameter to the import path of the storage adapter you want to use.

chatbot = ChatBot(
    "My ChatterBot",
    storage_adapter="chatterbot.storage.SQLStorageAdapter"
)

SQL Storage Adapter

chatterbot.storage.SQLStorageAdapter

MongoDB Storage Adapter

chatterbot.storage.MongoDatabaseAdapter