Skip to main content

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=http://localhost:8000/v1
OPENAI_API_KEY=0

# models
DEFAULT_EMBED_MODEL=text-embedding-ada-002
DEFAULT_CHAT_MODEL=gpt-3.5-turbo
DEFAULT_RERANKER=bge-reranker-v2-m3 # empty if not needed
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://localhost:6379
ELASTICSEARCH_URI=http://localhost:9001

# graph storage
GRAPH_STORAGE=neo4j
NEO4J_URI=bolt://localhost:7687

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

Run python launch.py --config config.yaml --action build

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycardinal-0.5.1-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycardinal-0.5.1.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for pycardinal-0.5.1.tar.gz
Algorithm Hash digest
SHA256 00240069319e3576aeb477c617def90cb1734f6b0ad1530f47262baa85e02c2f
MD5 f9ff6a0c5f56e7e7f0d4a02d1a303af2
BLAKE2b-256 cc335de71aa5bee194b5aea73e21302b26742ef933e08bf9fadfe9c92e2adc56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycardinal-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 43.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for pycardinal-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89d2d68af70aa4905eabd50ab8f73cec83fecad7816587ae7a7575039c6b4351
MD5 158740dd1f8b3dd00808ffceb088f38a
BLAKE2b-256 41fea8f619b102325c067d51db13ca2c8ee424cb00f403b524a46f8a2d2aeb76

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

1 file

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page