memoryscope.core.worker.frontend.retrieve_memory_worker
- class memoryscope.core.worker.frontend.retrieve_memory_worker.RetrieveMemoryWorker(embedding_model: str = '', generation_model: str = '', rank_model: str = '', **kwargs)[源代码]
-
Retrieves memories based on specified criteria such as status, type, and timestamp. Processes these memories concurrently, sorts them by similarity, and logs the activity, facilitating efficient memory retrieval operations within a given scope.
- retrieve_from_observation(**kwargs)
The wrapper function that manages the timing of the original function.
- 参数:
*args -- Variable length argument list for the decorated function.
**kwargs -- Arbitrary keyword arguments for the decorated function.
- 返回:
The result of the decorated function.
- 返回类型:
Any
- retrieve_from_insight(**kwargs)
The wrapper function that manages the timing of the original function.
- 参数:
*args -- Variable length argument list for the decorated function.
**kwargs -- Arbitrary keyword arguments for the decorated function.
- 返回:
The result of the decorated function.
- 返回类型:
Any
- retrieve_expired_memory(**kwargs)
The wrapper function that manages the timing of the original function.
- 参数:
*args -- Variable length argument list for the decorated function.
**kwargs -- Arbitrary keyword arguments for the decorated function.
- 返回:
The result of the decorated function.
- 返回类型:
Any