aiagent.DocuStore

class DocuStore(user_name, storage_list, config)

Maintains details about documents maintained in user stores. It does not hold the contents of the documents. It keeps details about date added, who added it, how big the document is, how many chunks it is broken down into, etc.

__init__(user_name, storage_list, config)

Methods

__init__(user_name, storage_list, config)

add_document(store_name, doc_chunks, metadatas)

Defines a new document in the docu store, but does not manage document contents.

add_document_object(store_name, document)

delete_document(store_name, doc_id)

Will complete remove the document from the user store as well as from the agent store and semantic network store.

document_exists(store_name, document_name)

get_document(store_name, doc_id[, ...])

Gets a single document's details from the given user store and can include the contents of the document in text format as stored in chunks in the store.

get_documents(store_name, **kwargs)

provides a list of basic details about the documents stored in the storage named in store_name

get_user_storage()

provides a list of user storage with details such as number of documents

update_document_metadata(store_name, metadatas)