forked from trpc-group/trpc-agent-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env
More file actions
30 lines (25 loc) · 987 Bytes
/
Copy path.env
File metadata and controls
30 lines (25 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Set TRPC_AGENT_API_KEY、TRPC_AGENT_BASE_URL、TRPC_AGENT_MODEL_NAME
TRPC_AGENT_API_KEY=your-api-key
TRPC_AGENT_BASE_URL=your-base-url
TRPC_AGENT_MODEL_NAME=your-model-name
# 向量数据库类型:pgvector / elasticsearch / tencentvdb
VECTORSTORE_TYPE=pgvector
# 知识库文档路径(默认使用 test.txt,未设置时自动使用项目下的 test.txt)
# KNOWLEDGE_FILE=test.txt
# ---- PGVector 配置 ----
# 请根据实际情况填写
# PGVECTOR_CONNECTION=postgresql+psycopg://langchain:langchain@X.X.X.X:5432/langchain
# PGVECTOR_COLLECTION_NAME=my_docs
# ---- Elasticsearch 配置 ----
# 请根据实际情况填写
# ES_URL=https://X.X.X.X:X
# ES_INDEX_NAME=langchain_index
# ES_API_KEY=
# ---- 腾讯云向量数据库 配置 ----
# 请根据实际情况填写
# TENCENT_VDB_URL=http://10.0.X.X
# TENCENT_VDB_KEY=
# TENCENT_VDB_USERNAME=root
# TENCENT_VDB_DATABASE=LangChainDatabase
# TENCENT_VDB_COLLECTION=LangChainCollection
# TENCENT_VDB_EMBEDDING=bge-base-zh