SearchByScope 按作用域搜索
(ctx context.Context, namespace string, scope MemoryScope)
| 315 | |
| 316 | // SearchByScope 按作用域搜索 |
| 317 | func (s *PostgreSQLStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) { |
| 318 | return s.List(ctx, namespace, WithScope(scope)) |
| 319 | } |
| 320 | |
| 321 | // GetTopK 获取 TopK Memory |
| 322 | func (s *PostgreSQLStore) GetTopK(ctx context.Context, namespace string, k int, orderBy OrderBy) ([]*LogicMemory, error) { |