diff --git a/.env.template b/.env.template index 69152e7fa..64d3b2f67 100644 --- a/.env.template +++ b/.env.template @@ -50,6 +50,9 @@ QUANTIZE_8bit=True #** EMBEDDING SETTINGS **# #*******************************************************************# EMBEDDING_MODEL=text2vec +#EMBEDDING_MODEL=m3e-large +#EMBEDDING_MODEL=bge-large-en +#EMBEDDING_MODEL=bge-large-zh KNOWLEDGE_CHUNK_SIZE=500 KNOWLEDGE_SEARCH_TOP_SIZE=5 ## EMBEDDING_TOKENIZER - Tokenizer to use for chunking large inputs diff --git a/.github/workflows/docker-image-publish.yml b/.github/workflows/docker-image-publish.yml new file mode 100644 index 000000000..c2d36bf0e --- /dev/null +++ b/.github/workflows/docker-image-publish.yml @@ -0,0 +1,35 @@ + +name: Push docker image + +on: + release: + types: [published] + workflow_dispatch: + +permissions: + contents: read + +jobs: + build-image: + runs-on: ubuntu-latest + # run unless event type is pull_request + if: github.event_name != 'pull_request' + steps: + - uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./docker/base/Dockerfile + platforms: linux/amd64 + push: true + tags: eosphorosai/dbgpt:${{ github.ref_name }},eosphorosai/dbgpt:latest \ No newline at end of file diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 304749dfb..9d5e52d7b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -35,27 +35,4 @@ jobs: uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - build-image: - runs-on: ubuntu-latest - needs: deploy - # run unless event type is pull_request - if: github.event_name != 'pull_request' - steps: - - uses: actions/checkout@v3 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - tags: eosphorosai/dbgpt:${{ github.ref_name }} + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index eaaf983a5..b04c3285a 100644 --- a/README.md +++ b/README.md @@ -7,32 +7,34 @@