SearchByScope 按作用域搜索
(ctx context.Context, namespace string, scope MemoryScope)
| 151 | |
| 152 | // SearchByScope 按作用域搜索 |
| 153 | func (s *InMemoryStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) { |
| 154 | return s.List(ctx, namespace, WithScope(scope)) |
| 155 | } |
| 156 | |
| 157 | // GetTopK 获取 TopK Memory |
| 158 | func (s *InMemoryStore) GetTopK(ctx context.Context, namespace string, k int, orderBy OrderBy) ([]*LogicMemory, error) { |