MemoStore

MemoStore(**kwargs)

Provides memory storage and retrieval for a teachable agent, using a vector database.
Each DB entry (called a memo) is a pair of strings: an input text and an output text.
The input text might be a question, or a task to perform.
The output text might be an answer to the question, or advice on how to perform the task.
Vector embeddings are currently supplied by Chroma’s default Sentence Transformers.

Parameters:
NameDescription
**kwargs

Instance Methods

add_input_output_pair

add_input_output_pair(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs

get_nearest_memo

get_nearest_memo(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs

get_related_memos(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs

list_memos

list_memos(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs

prepopulate

prepopulate(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs

reset_db

reset_db(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs