Python SDK#
DB-GPT provides a third-party Python API package that you can integrate into your own code.
Installation from Pip#
You can simply pip install:
pip install -i https://pypi.org/simple/ db-gpt==0.3.0
Tip
Notice:make sure python>=3.10
Environment Setup#
By default, if you use the EmbeddingEngine api
you will prepare embedding models from huggingface
Tip
Notice make sure you have install git-lfs
git clone https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
git clone https://huggingface.co/GanymedeNil/text2vec-large-chinese
version: