Create a .env
file in the api_demo
directory:
api_demo
├── utils
└── .env
# imitater or openai
OPENAI_BASE_URL=https://localhost:8000/v1
OPENAI_API_KEY=0
# models
DEFAULT_EMBED_MODEL=text-embedding-ada-002
DEFAULT_CHAT_MODEL=gpt-3.5-turbo
HF_TOKENIZER_PATH=01-ai/Yi-6B-Chat
# text splitter
DEFAULT_CHUNK_SIZE=300
DEFAULT_CHUNK_OVERLAP=100
# storages
STORAGE=redis
SEARCH_TARGET=content
REDIS_URI=redis:https://localhost:6379
ELASTICSEARCH_URI=https://localhost:9001
# vectorstore
VECTORSTORE=chroma
CHROMA_PATH=./chroma
MILVUS_URI=https://localhost:19530
MILVUS_TOKEN=0
Run python launch.py --config config.yaml --action build