Skip to content

the-seeds/cardinal

Repository files navigation

Cardinal

GitHub Code License PyPI

Usage

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

About

Build LLM Application with Local Documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published