Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion backend/application/knowledge/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ func getVectorStore(ctx context.Context) (searchstore.Manager, error) {
defer cancel()

milvusAddr := os.Getenv("MILVUS_ADDR")
mc, err := milvusclient.New(cctx, &milvusclient.ClientConfig{Address: milvusAddr})
milvusUsername := os.Getenv("MILVUS_USERNAME")
milvusPassword := os.Getenv("MILVUS_PASSWORD")

mc, err := milvusclient.New(cctx, &milvusclient.ClientConfig{Address: milvusAddr, Username: milvusUsername, Password: milvusPassword})
if err != nil {
return nil, fmt.Errorf("init milvus client failed, err=%w", err)
}
Expand Down
6 changes: 4 additions & 2 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export REDIS_ADDR="localhost:6379"

# This Upload component used in Agent / workflow File/Image With LLM , support the component of imagex / storage
# default: storage, use the settings of storage component
# if imagex, you must finish the configuration of <VolcEngine ImageX>
# if imagex, you must finish the configuration of <VolcEngine ImageX>
export FILE_UPLOAD_COMPONENT_TYPE="storage"

# VolcEngine ImageX
Expand All @@ -34,7 +34,7 @@ export VE_IMAGEX_DOMAIN=""
export VE_IMAGEX_TEMPLATE=""
export VE_IMAGEX_UPLOAD_HOST="https://imagex.volcengineapi.com"

# Storage component
# Storage component
export STORAGE_TYPE="minio" # minio / tos / s3
export STORAGE_BUCKET="opencoze"
# MiniIO
Expand Down Expand Up @@ -79,6 +79,8 @@ export RMQ_SECRET_KEY=""
export VECTOR_STORE_TYPE="milvus"
# milvus vector store
export MILVUS_ADDR="localhost:19530"
export MILVUS_USERNAME=""
export MILVUS_PASSWORD=""
# vikingdb vector store for Volcengine
export VIKING_DB_HOST=""
export VIKING_DB_REGION=""
Expand Down
Loading