Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caspianmoon/memoripy
/ functions
Functions
73 in github.com/caspianmoon/memoripy
⨍
Functions
73
◇
Types & classes
23
↓ 25 callers
Method
get
(self, key, default)
memoripy/dynamo_storage.py:97
↓ 7 callers
Method
add_interaction
(self, prompt: str, output: str, embedding: np.ndarray, concepts: list[str])
memoripy/memory_manager.py:56
↓ 7 callers
Method
extract_concepts
(self, text: str)
memoripy/memory_manager.py:80
↓ 7 callers
Method
get_embedding
(self, text: str)
memoripy/memory_manager.py:72
↓ 7 callers
Method
invoke
(self, messages: list)
memoripy/implemented_models.py:73
↓ 7 callers
Method
load_history
(self)
memoripy/memory_manager.py:50
↓ 6 callers
Method
generate_response
(self, prompt: str, last_interactions: list, retrievals: list, context_window=3)
memoripy/memory_manager.py:100
↓ 6 callers
Method
retrieve_relevant_interactions
(self, query: str, similarity_threshold=40, exclude_last_n=0)
memoripy/memory_manager.py:95
↓ 2 callers
Method
new_from_attr
(cls, attr: LongTermTermMemoryAttr)
memoripy/dynamo_storage.py:107
↓ 2 callers
Method
standardize_embedding
Standardize embedding to the target dimension by padding with zeros or truncating.
memoripy/memory_manager.py:36
↓ 1 callers
Method
__init__
(self, api_key, model_name="gpt-3.5-turbo")
memoripy/implemented_models.py:58
↓ 1 callers
Function
_get_host
()
memoripy/dynamo_storage.py:18
↓ 1 callers
Function
_get_read_capacity
()
memoripy/dynamo_storage.py:26
↓ 1 callers
Function
_get_region
()
memoripy/dynamo_storage.py:22
↓ 1 callers
Function
_get_write_capacity
()
memoripy/dynamo_storage.py:30
↓ 1 callers
Method
classify_memory
(self)
memoripy/memory_store.py:70
↓ 1 callers
Method
cluster_interactions
(self)
memoripy/memory_store.py:183
↓ 1 callers
Method
initialize_embedding_dimension
(self)
memoripy/implemented_models.py:45
↓ 1 callers
Method
initialize_embedding_dimension
Determine the dimension of the embeddings.
memoripy/model.py:14
↓ 1 callers
Method
initialize_memory
(self)
memoripy/memory_manager.py:84
↓ 1 callers
Method
invoke
Generate a response from the chat model given a list of messages.
memoripy/model.py:23
↓ 1 callers
Function
main
()
memoripy/main.py:6
↓ 1 callers
Function
main
()
examples/openai_example.py:6
↓ 1 callers
Function
main
()
examples/openrouter.py:6
↓ 1 callers
Function
main
()
examples/azure_example.py:4
↓ 1 callers
Function
main
()
examples/chatcompletions.py:6
↓ 1 callers
Function
main
()
examples/dynamo/dynamo_example.py:6
↓ 1 callers
Method
retrieve
(self, query_embedding, query_concepts, similarity_threshold=40, exclude_last_n=0)
memoripy/memory_store.py:77
↓ 1 callers
Method
retrieve_from_semantic_memory
(self, query_embedding_norm)
memoripy/memory_store.py:200
↓ 1 callers
Method
save_memory_to_history
(self)
memoripy/memory_manager.py:53
↓ 1 callers
Method
spreading_activation
(self, query_concepts)
memoripy/memory_store.py:158
↓ 1 callers
Method
update_graph
(self, concepts)
memoripy/memory_store.py:57
Method
__getitem__
(self, item)
memoripy/dynamo_storage.py:58
Method
__getitem__
(self, item)
memoripy/dynamo_storage.py:100
Method
__init__
(self, dimension=1536)
memoripy/memory_store.py:13
Method
__init__
(self)
memoripy/in_memory_storage.py:6
Method
__init__
(self, chat_model: ChatModel, embedding_model: EmbeddingModel, storage=None)
memoripy/memory_manager.py:21
Method
__init__
(self, file_path="interaction_history.json")
memoripy/json_storage.py:9
Method
__init__
(self, api_key, model_name="text-embedding-3-small")
memoripy/implemented_models.py:13
Method
__init__
(self, model_name="mxbai-embed-large")
memoripy/implemented_models.py:34
Method
__init__
(self, model_name="llama3.1:8b")
memoripy/implemented_models.py:86
Method
__init__
(self, api_key, api_version, azure_endpoint, model_name="text-embedding-3-small")
memoripy/implemented_models.py:112
Method
__init__
(self, api_key, api_version, azure_endpoint, model_name="gpt-3.5-turbo")
memoripy/implemented_models.py:135
Method
__init__
(self, api_endpoint: str, api_key: str, model_name: str)
memoripy/implemented_models.py:165
Method
__init__
(self, api_key: str, model_name: str)
memoripy/implemented_models.py:193
Method
__init__
Create an instance of DynamoStorage Args: set_id: A unique identifier for the memory set - This should be lev
memoripy/dynamo_storage.py:133
Method
__setitem__
(self, key, value)
memoripy/dynamo_storage.py:61
Method
__setitem__
(self, key, value)
memoripy/dynamo_storage.py:103
Method
add_interaction
(self, interaction)
memoripy/memory_store.py:26
Method
extract_concepts
(self, text: str)
memoripy/implemented_models.py:77
Method
extract_concepts
(self, text: str)
memoripy/implemented_models.py:104
Method
extract_concepts
(self, text: str)
memoripy/implemented_models.py:157
Method
extract_concepts
(self, text: str)
memoripy/implemented_models.py:185
Method
extract_concepts
Extract key concepts from the provided text.
memoripy/model.py:30
Method
get
(self, key, default)
memoripy/dynamo_storage.py:55
Method
get_embedding
(self, text: str)
memoripy/implemented_models.py:23
Method
get_embedding
(self, text: str)
memoripy/implemented_models.py:38
Method
get_embedding
(self, text: str)
memoripy/implemented_models.py:125
Method
get_embedding
Generate an embedding for the given text.
memoripy/model.py:7
Method
initialize_embedding_dimension
(self)
memoripy/implemented_models.py:29
Method
initialize_embedding_dimension
(self)
memoripy/implemented_models.py:131
Method
invoke
(self, messages: list)
memoripy/implemented_models.py:100
Method
invoke
(self, messages: list)
memoripy/implemented_models.py:153
Method
invoke
(self, messages: list)
memoripy/implemented_models.py:181
Method
load_history
(self)
memoripy/in_memory_storage.py:12
Method
load_history
(self)
memoripy/storage.py:4
Method
load_history
(self)
memoripy/json_storage.py:12
Method
load_history
(self)
memoripy/dynamo_storage.py:153
Method
new_from_attr
(cls, attr: ShortTermMemoryAttr)
memoripy/dynamo_storage.py:65
Method
save_memory_to_history
(self, memory_store)
memoripy/in_memory_storage.py:16
Method
save_memory_to_history
(self, memory_store)
memoripy/storage.py:7
Method
save_memory_to_history
(self, memory_store)
memoripy/json_storage.py:21
Method
save_memory_to_history
(self, memory_store: MemoryStore)
memoripy/dynamo_storage.py:166