Skip to main content

No project description provided

Project description

Cardinal

Usage

Create a .env file in the root directory:

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

# models
EMBED_MODEL=text-embedding-ada-002
CHAT_MODEL=gpt-3.5-turbo-1106
TOKENIZER_PATH=hiyouga/Qwen-14B-Chat-LLaMAfied

# text splitter
CHUNK_SIZE=200
CHUNK_OVERLAP=30

# storages
CHROMA_PATH=./chroma
REDIS_URI=redis://192.168.0.1:6379
MILVUS_URI=http://192.168.0.1:19530
MILVUS_TOKEN=0
ADMIN_USER_ID=123456789

# RAGs
DEFAULT_SYSTEM_PROMPT=You are a helpful assistant.
EMBED_INSTRUCTION=为这个句子生成表示以用于检索相关文章:
PLAIN_TEMPLATE=你是ChatGPT,由OpenAI开发的大语言模型,针对问题作出详细和有帮助的解答。\n\n问题:{question}
KBQA_TEMPLATE=你是ChatGPT,由OpenAI开发的大语言模型,根据已知信息,针对问题作出详细和有帮助的解答。\n\n已知信息:{context}\n\n问题:{question}
KBQA_THRESHOLD=1.0

# tests
SERVER_URL=http://192.168.0.1:8000

Build Database

python src/launcher.py --action build

Launch Server

python src/launcher.py --action launch

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.1.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

pycardinal-0.1.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file pycardinal-0.1.0.tar.gz.

File metadata

  • Download URL: pycardinal-0.1.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pycardinal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2172aec71a577c455ad05f0c6e41f2d48880e99055620225deda7c0ce2da2f7e
MD5 414062f6ba72446a69b1613dd05355de
BLAKE2b-256 8ecd1b1940a1d6dd80c254e0a020549b8b6e1b684d62397632731a353ac9f3f8

See more details on using hashes here.

File details

Details for the file pycardinal-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pycardinal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pycardinal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69a63712ff51c30e8f78cb4fcc94988ad0df1640937390f90c396c6b75dbea58
MD5 baf63e655f412ca6def6ee3b70cc6675
BLAKE2b-256 b13f110f06d0146ca68608944d1b4633bef36750e159752e844ce8f85a2ce218

See more details on using hashes here.

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