Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 5 additions & 39 deletions .github/workflows/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,36 +49,15 @@ jobs:
name: test-image
path: image.tar

check-secrets:
runs-on: ubuntu-latest
outputs:
mssql-available: ${{ steps.check-mssql.outputs.defined }}
steps:
- id: check-mssql
env:
REGISTRY: ${{ secrets.MSSQL_VECTOR_REGISTRY }}
run: |
if [[ -n "$REGISTRY" ]]; then
echo "defined=true" >> "$GITHUB_OUTPUT"
else
echo "defined=false" >> "$GITHUB_OUTPUT"
fi

test:
needs: [lint, build, check-secrets]
needs: [lint, build]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
db: [pgvector, redis, elastic, qdrant, mssql]

steps:
- name: Early skip MSSQL if secrets unavailable
if: matrix.db == 'mssql' && needs.check-secrets.outputs.mssql-available != 'true'
run: |
echo "Skipping MSSQL test: secrets missing."
exit 78

- uses: actions/checkout@v4

- name: Download image artifact
Expand All @@ -90,27 +69,14 @@ jobs:
- name: Load Docker image
run: docker load -i image.tar

- name: Log in to registry for SQL-vector preview
if: matrix.db == 'mssql'
uses: docker/login-action@v3
with:
registry: ${{ secrets.MSSQL_VECTOR_REGISTRY }}
username: ${{ secrets.MSSQL_VECTOR_USERNAME }}
password: ${{ secrets.MSSQL_VECTOR_PASSWORD }}

- name: Pull preview SQL Server-vector image
if: matrix.db == 'mssql'
run: |
docker pull ${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4

- name: Start SQL Server-vector
- name: Start MSSQL
if: matrix.db == 'mssql'
run: |
docker run -d --name mssql-vector-test \
-e ACCEPT_EULA=Y \
-e SA_PASSWORD=StrongPassword! \
-e "ACCEPT_EULA=Y" \
-e "SA_PASSWORD=StrongPassword!" \
-p 1433:1433 \
${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4
mcr.microsoft.com/mssql/rhel/server:2025-latest

- name: Start PGVector
if: matrix.db == 'pgvector'
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ It supports Git repositories, web URLs, and file types like Markdown, PDFs, and
- [Elasticsearch](#elasticsearch)
- [Redis (RediSearch)](#redis-redisearch)
- [Qdrant](#qdrant)
- [SQL Server (MSSQL)](#sql-server-mssql)
- [🙌 Acknowledgments](#-acknowledgments)

---
Expand Down Expand Up @@ -242,6 +243,24 @@ DB_TYPE=QDRANT ./embed_documents.py

---

### SQL Server (MSSQL)


```bash
podman run --rm -d \
--name mssql \
-e ACCEPT_EULA=Y \
-e SA_PASSWORD=StrongPassword! \
-p 1433:1433 \
mcr.microsoft.com/mssql/rhel/server:2025-latest
````

```bash
DB_TYPE=MSSQL ./embed_documents.py
```

---

## 🙌 Acknowledgments

Built with:
Expand Down