Skip to main content

A mem0-compatible memory SDK powered by Alibaba Cloud SLS

Project description

SLS Memory SDK

阿里云 SLS Memory 客户端 SDK。

安装

pip install sls-memory

快速开始

from sls_memory import Config, SLSMemoryClient

# 初始化客户端
config = Config(
    access_key_id="your_access_key_id",
    access_key_secret="your_access_key_secret",
    endpoint="cn-hangzhou.log.aliyuncs.com"
)
client = SLSMemoryClient(
    config, 
    project="my-project", 
    memory_store="my-store"
)

# 添加记忆
client.add("我喜欢打网球", user_id="user123")

# 搜索记忆
results = client.search("网球", user_id="user123")
print(results)

主要功能

  • ✅ 兼容 mem0 SDK 接口
  • ✅ 支持同步和异步客户端
  • ✅ 支持记忆的增删改查
  • ✅ 支持语义搜索和过滤
  • ✅ 支持 Memory Store 管理

文档

详细使用文档请查看 usage.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sls_memory-0.1.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sls_memory-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file sls_memory-0.1.1.tar.gz.

File metadata

  • Download URL: sls_memory-0.1.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sls_memory-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c1a149d4f604e071173fca1a5f20fba170d445312c99111e63efcc8a5163d610
MD5 b9e2af2f187846ea9ab5eb4302adfd98
BLAKE2b-256 dc8b5d4cfb43a6d4d1a75957ffd5a20d43fe57662e5aaec2c6019afcaf41a48c

See more details on using hashes here.

File details

Details for the file sls_memory-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sls_memory-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sls_memory-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20d44bc8feeadb6ad2e977f247c425f641e6a1fab8830f74ada117ce463513ab
MD5 5bf7598ccc805c179092d806d960cbee
BLAKE2b-256 cdddc1a8476aecd50cdc3fcc5b1061c8175095c0e150cd105e74b9ff7e84df33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page