Skip to main content

No project description provided

Project description

Cardinal

GitHub Code License PyPI

Usage

Create a .env file in the root directory:

.
├── src
└── .env
# imitater or openai
OPENAI_BASE_URL=http://localhost:8010/v1
OPENAI_API_KEY=0

# models
EMBED_MODEL=text-embedding-ada-002
CHAT_MODEL=gpt-3.5-turbo
TOKENIZER_PATH=01-ai/Yi-6B-Chat

# text splitter
CHUNK_SIZE=200
CHUNK_OVERLAP=30

# storages
STORAGE=redis
SEARCH_TARGET=content
REDIS_URI=redis://localhost:6379
ELASTICSEARCH_URI=http://localhost:9001

# vectorstore
VECTORSTORE=chroma
CHROMA_PATH=./chroma
MILVUS_URI=http://localhost:19530
MILVUS_TOKEN=0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycardinal-0.2.1.tar.gz (21.4 kB view hashes)

Uploaded Source

Built Distribution

pycardinal-0.2.1-py3-none-any.whl (31.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page