Buckets:

download
raw
534 Bytes
# SPDX-License-Identifier: Apache-2.0
from typing import List, Dict, Any, Protocol
class MemoryInterface(Protocol):
"""
Protocol for JCapy Memory Banks (Local or Remote).
"""
def memorize(self, paths: List[str], clear_first: bool = False) -> Dict[str, int]:
"""Ingest content from paths."""
...
def recall(self, query: str, n_results: int = 5) -> List[Dict[str, Any]]:
"""Retrieve relevant content."""
...
def clear(self) -> bool:
"""Clear all memory."""
...

Xet Storage Details

Size:
534 Bytes
·
Xet hash:
d04e304d8ae83f67e1462c4c5044c568d6333a1403d4a6ee8e28005fbd71aeaf

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.