Skip to content

Commit 11b748f

Browse files
pursuesyjy
andauthored
update requirements (#772)
* docker start * docker start * update config * 代码检测 * test_start_api * test_start_api * test_start_api * fix docker start * update start_api * update start_api * update start_api * 代码检测 * update start_api * update .env.example * back start_api * update * update Dockerfile * update requirements * back Dockerfile * upadte Dockerfile * add --------- Co-authored-by: yjy <[email protected]>
1 parent 2f10198 commit 11b748f

File tree

4 files changed

+290
-123
lines changed

4 files changed

+290
-123
lines changed

docker/.env.example

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ MOS_TOP_K=50
2020
## Chat LLM (main dialogue)
2121
MOS_CHAT_MODEL=gpt-4o-mini
2222
MOS_CHAT_TEMPERATURE=0.8
23-
MOS_MAX_TOKENS=8000
23+
MOS_MAX_TOKENS=2048
2424
MOS_TOP_P=0.9
2525
MOS_CHAT_MODEL_PROVIDER=openai # openai | huggingface | vllm
2626
MOS_MODEL_SCHEMA=memos.configs.llm.VLLMLLMConfig # vllm only: config class path; keep default unless you extend it
@@ -51,9 +51,18 @@ MOS_RERANKER_HEADERS_EXTRA= # extra headers, JSON string, e.g. {"A
5151
MOS_RERANKER_STRATEGY=single_turn
5252
MOS_RERANK_SOURCE= # optional rerank scope, e.g., history/stream/custom
5353

54+
55+
# External Services (for evaluation scripts)
56+
ZEP_API_KEY=your_zep_api_key_here
57+
MEM0_API_KEY=your_mem0_api_key_here
58+
MODEL=gpt-4o-mini
59+
EMBEDDING_MODEL=nomic-embed-text:latest
60+
5461
## Internet search & preference memory
5562
ENABLE_INTERNET=false
5663
BOCHA_API_KEY= # required if ENABLE_INTERNET=true
64+
XINYU_API_KEY=
65+
XINYU_SEARCH_ENGINE_ID=
5766
SEARCH_MODE=fast # fast | fine | mixture
5867
FAST_GRAPH=false
5968
BM25_CALL=false
@@ -121,6 +130,7 @@ POLAR_DB_USER=root
121130
POLAR_DB_PASSWORD=123456
122131
POLAR_DB_DB_NAME=shared_memos_db
123132
POLAR_DB_USE_MULTI_DB=false
133+
POLARDB_POOL_MAX_CONN=100
124134

125135
## Redis (scheduler queue) — fill only if you want scheduler queues in Redis; otherwise in-memory queue is used
126136
REDIS_HOST=localhost # global Redis endpoint (preferred over MEMSCHEDULER_*)
@@ -170,3 +180,11 @@ OSS_PUBLIC_BASE_URL=
170180
## SDK / external client
171181
MEMOS_API_KEY=
172182
MEMOS_BASE_URL=https://memos.memtensor.cn/api/openmem/v1
183+
184+
CHAT_MODEL_LIST='[{
185+
"backend": "deepseek",
186+
"api_base": "http://localhost:1234",
187+
"api_key": "your-api-key",
188+
"model_name_or_path": "deepseek-r1",
189+
"support_models": ["deepseek-r1"]
190+
}]'

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ ENV PYTHONPATH=/app/src
3232
EXPOSE 8000
3333

3434
# Start the docker
35-
CMD ["uvicorn", "memos.api.product_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
35+
CMD ["uvicorn", "memos.api.server_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

docker/requirements-full.txt

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
# Generated from poetry.lock - Main dependencies
2+
# This file contains all transitive dependencies for the production build.
3+
4+
annotated-types==0.7.0
5+
anyio==4.9.0
6+
async-timeout==5.0.1
7+
attrs==25.3.0
8+
authlib==1.6.0
9+
beautifulsoup4==4.13.4
10+
cachetools==6.2.1
11+
certifi==2025.7.14
12+
cffi==1.17.1
13+
charset-normalizer==3.4.2
14+
chonkie==1.1.1
15+
click==8.2.1
16+
cobble==0.1.4
17+
colorama==0.4.6
18+
coloredlogs==15.0.1
19+
concurrent-log-handler==0.9.28
20+
cryptography==45.0.5
21+
cyclopts==3.22.2
22+
datasketch==1.6.5
23+
defusedxml==0.7.1
24+
distro==1.9.0
25+
dnspython==2.7.0
26+
docstring-parser==0.16
27+
docutils==0.21.2
28+
email-validator==2.2.0
29+
et-xmlfile==2.0.0
30+
exceptiongroup==1.3.0
31+
fastapi==0.115.14
32+
fastapi-cli==0.0.8
33+
fastapi-cloud-cli==0.1.4
34+
fastmcp==2.10.5
35+
filelock==3.18.0
36+
flatbuffers==25.2.10
37+
fsspec==2025.7.0
38+
greenlet==3.2.3
39+
grpcio==1.73.1
40+
h11==0.16.0
41+
h2==4.2.0
42+
hf-xet==1.1.5
43+
hpack==4.1.0
44+
httpcore==1.0.9
45+
httptools==0.6.4
46+
httpx==0.28.1
47+
httpx-sse==0.4.1
48+
huggingface-hub==0.33.4
49+
humanfriendly==10.0
50+
hyperframe==6.1.0
51+
idna==3.10
52+
itsdangerous==2.2.0
53+
jieba==0.42
54+
jinja2==3.1.6
55+
jiter==0.10.0
56+
joblib==1.5.1
57+
jsonpatch==1.33
58+
jsonpointer==3.0.0
59+
jsonschema==4.24.1
60+
jsonschema-specifications==2025.4.1
61+
langchain-core==1.1.0
62+
langchain-text-splitters==1.0.0
63+
langsmith==0.4.7
64+
lxml==6.0.0
65+
magika==0.6.2
66+
mammoth==1.9.1
67+
markdown-it-py==3.0.0
68+
markdownify==1.1.0
69+
markitdown==0.1.2
70+
markupsafe==3.0.2
71+
mcp==1.12.0
72+
mdurl==0.1.2
73+
mpmath==1.3.0
74+
neo4j==5.28.1
75+
networkx==3.5
76+
nltk==3.9.1
77+
numpy==2.3.1
78+
nvidia-cublas-cu12==12.6.4.1
79+
nvidia-cuda-cupti-cu12==12.6.80
80+
nvidia-cuda-nvrtc-cu12==12.6.77
81+
nvidia-cuda-runtime-cu12==12.6.77
82+
nvidia-cudnn-cu12==9.5.1.17
83+
nvidia-cufft-cu12==11.3.0.4
84+
nvidia-cufile-cu12==1.11.1.6
85+
nvidia-curand-cu12==10.3.7.77
86+
nvidia-cusolver-cu12==11.7.1.2
87+
nvidia-cusparse-cu12==12.5.4.2
88+
nvidia-cusparselt-cu12==0.6.3
89+
nvidia-nccl-cu12==2.26.2
90+
nvidia-nvjitlink-cu12==12.6.85
91+
nvidia-nvtx-cu12==12.6.77
92+
ollama==0.4.9
93+
onnxruntime==1.22.1
94+
openai==1.97.0
95+
openapi-pydantic==0.5.1
96+
openpyxl==3.1.5
97+
orjson==3.11.0
98+
packaging==25.0
99+
pandas==2.3.1
100+
pdfminer-six==20250506
101+
pika==1.3.2
102+
pillow==11.3.0
103+
portalocker==2.10.1
104+
prometheus-client==0.23.1
105+
protobuf==6.31.1
106+
pycparser==2.22
107+
pydantic==2.11.7
108+
pydantic-core==2.33.2
109+
pydantic-extra-types==2.10.5
110+
pydantic-settings==2.10.1
111+
pygments==2.19.2
112+
pymilvus==2.6.2
113+
pymysql==1.1.2
114+
python-dateutil==2.9.0.post0
115+
python-dotenv==1.1.1
116+
python-multipart==0.0.20
117+
python-pptx==1.0.2
118+
pytz==2025.2
119+
pyyaml==6.0.2
120+
qdrant-client==1.14.3
121+
rake-nltk==1.0.6
122+
rank-bm25==0.2.2
123+
redis==6.2.0
124+
referencing==0.36.2
125+
regex==2024.11.6
126+
requests==2.32.4
127+
requests-toolbelt==1.0.0
128+
rich==14.0.0
129+
rich-rst==1.3.1
130+
rich-toolkit==0.14.8
131+
rignore==0.6.2
132+
rpds-py==0.26.0
133+
safetensors==0.5.3
134+
schedule==1.2.2
135+
scikit-learn==1.7.0
136+
scipy==1.16.0
137+
sentence-transformers==4.1.0
138+
sentry-sdk==2.33.0
139+
setuptools==80.9.0
140+
shellingham==1.5.4
141+
six==1.17.0
142+
sniffio==1.3.1
143+
soupsieve==2.7
144+
sqlalchemy==2.0.41
145+
sse-starlette==2.4.1
146+
starlette==0.46.2
147+
sympy==1.14.0
148+
tenacity==9.1.2
149+
threadpoolctl==3.6.0
150+
tokenizers==0.21.2
151+
torch
152+
tqdm==4.67.1
153+
transformers==4.53.2
154+
triton==3.5.0
155+
typer==0.16.0
156+
typing-extensions
157+
typing-inspection==0.4.1
158+
tzdata==2025.2
159+
ujson==5.10.0
160+
urllib3==2.5.0
161+
uvicorn==0.35.0
162+
uvloop==0.21.0
163+
volcengine-python-sdk==4.0.6
164+
watchfiles==1.1.0
165+
websockets==15.0.1
166+
xlrd==2.0.2
167+
xlsxwriter==3.2.5
168+
zstandard==0.23.0
169+
prometheus_client==0.23.1
170+
beartype==0.22.5
171+
diskcache==5.6.3
172+
iniconfig==2.3.0
173+
jaraco.classes==3.4.0
174+
jaraco.context==6.0.1
175+
jaraco.functools==4.3.0
176+
keyring==25.6.0
177+
more-itertools==10.8.0
178+
pathable==0.4.4
179+
pathvalidate==3.3.1
180+
platformdirs==4.5.0
181+
pluggy==1.6.0
182+
psycopg2-binary==2.9.9
183+
py-key-value-aio==0.2.8
184+
py-key-value-shared==0.2.8
185+
PyJWT==2.10.1
186+
pytest==9.0.2

0 commit comments

Comments
 (0)