mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-05 08:06:15 +00:00
2.2 KiB
2.2 KiB
Installing MemoryScope
I. Install with docker [Recommended]
-
Clone the repository and edit settings
# clone project git clone https://github.com/modelscope/memoryscope cd memoryscope # edit configuration, e.g. add api keys vim memoryscope/core/config/demo_config_zh.yaml -
Build Docker image
sudo docker build --network=host -t memoryscope . -
Launch Docker container
sudo docker run -it --rm --net=host memoryscope
II. Install with docker compose [Recommended]
-
Clone the repository and edit settings
# clone project git clone https://github.com/modelscope/memoryscope cd memoryscope # edit configuration, e.g. add api keys vim memoryscope/core/config/demo_config_zh.yaml -
Edit
docker-compose.ymlto change environment variable.DASHSCOPE_API_KEY: "sk-0000000000" -
Run
docker-compose upto build and launch the memory-scope cli interface.
III. Install from PyPI [Linux]
pip install memoryscope
export DASHSCOPE_API_KEY="sk-0000000000"
memoryscope --config_path=memoryscope/core/config/demo_config_zh.yaml
IV. Install from source [Linux only]
-
Clone the repository and edit settings
# clone project git clone https://github.com/modelscope/memoryscope cd memoryscope # edit configuration, e.g. add api keys vim memoryscope/core/config/demo_config_zh.yaml -
Install
poetry install -
Run Elasticsearch service, refer to elasticsearch documents. The docker method is recommended:
sudo docker run -p 9200:9200 \ -e "discovery.type=single-node" \ -e "xpack.security.enabled=false" \ -e "xpack.license.self_generated.type=trial" \ docker.elastic.co/elasticsearch/elasticsearch:8.13.2 -
Launch memoryscope, also refer to cli documents
pip install -r requirements.txt export DASHSCOPE_API_KEY="sk-0000000000" python quick-start-demo.py --config_path=memoryscope/core/config/demo_config_zh.yaml