shibing624 / agentica

Agentica: Build Multi-Agent Workflow with 3 lines code. 三行代码打造个人助手智能体。
Apache License 2.0
83 stars 8 forks source link

数据库示例问题 #6

Closed Upcreat closed 1 month ago

Upcreat commented 3 months ago

您好,能够为初学者提供一个数据库连接的参数示例供参考。感谢!

shibing624 commented 3 months ago

有的,用docker直接搭好环境和数据库了。

usage:
docker run -d \
  -e POSTGRES_DB=ai \
  -e POSTGRES_USER=ai \
  -e POSTGRES_PASSWORD=ai \
  -e PGDATA=/var/lib/postgresql/data/pgdata \
  -v pgvolume:/var/lib/postgresql/data \
  -p 5532:5432 \
  --name pgvector \
  phidata/pgvector:16

cd examples
python custom_rag_demo.py
Upcreat commented 3 months ago

ok,谢谢您!