Skip to content

Commit

Permalink
Merge branch 'main' into feat/unstructured_meta_field
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-science authored Feb 4, 2024
2 parents dd40d0a + f7678e1 commit 0199e3c
Show file tree
Hide file tree
Showing 164 changed files with 5,473 additions and 552 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ Briefly explain how the change is breaking and why is needed.

## Checklist

- [ ] The change is documented with docstrings and was merged in the `main` branch
- [ ] Integration tile on https://github.com/deepset-ai/haystack-integrations was updated
```[tasklist]
### Tasks
- [ ] The changes are merged in the `main` branch (Code + Docstrings)
- [ ] New package version declares the breaking change
- [ ] The package has been released on PyPI
- [ ] Docs at https://docs.haystack.deepset.ai/ were updated
- [ ] Integration tile on https://github.com/deepset-ai/haystack-integrations was updated
- [ ] Notebooks on https://github.com/deepset-ai/haystack-cookbook were updated (if needed)
- [ ] New package version declares the breaking change and package has been released on PyPI
- [ ] Tutorials on https://github.com/deepset-ai/haystack-tutorials were updated (if needed)
- [ ] Articles on https://github.com/deepset-ai/haystack-home/tree/main/content were updated (if needed)
```
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/new-integration-proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Also, if there's any new terminology involved, define it here.
## Checklist

If the request is accepted, ensure the following checklist is complete before closing this issue.

```[tasklist]
### Tasks
- [ ] The code is documented with docstrings and was merged in the `main` branch
- [ ] Docs are published at https://docs.haystack.deepset.ai/
- [ ] There is a Github workflow running the tests for the integration nightly and at every PR
Expand All @@ -31,3 +32,4 @@ If the request is accepted, ensure the following checklist is complete before cl
- [ ] The integration has been listed in the [Inventory section](https://github.com/deepset-ai/haystack-core-integrations#inventory) of this repo README
- [ ] There is an example available to demonstrate the feature
- [ ] The feature was announced through social media
```
19 changes: 17 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ integration:amazon-bedrock:
- any-glob-to-any-file: "integrations/amazon_bedrock/**/*"
- any-glob-to-any-file: ".github/workflows/amazon_bedrock.yml"

integration:amazon-sagemaker:
- changed-files:
- any-glob-to-any-file: "integrations/amazon_sagemaker/**/*"
- any-glob-to-any-file: ".github/workflows/amazon_sagemaker.yml"

integration:astra:
- changed-files:
- any-glob-to-any-file: "integrations/astra/**/*"
Expand Down Expand Up @@ -64,6 +69,11 @@ integration:opensearch:
- any-glob-to-any-file: "integrations/opensearch/**/*"
- any-glob-to-any-file: ".github/workflows/opensearch.yml"

integration:pgvector:
- changed-files:
- any-glob-to-any-file: "integrations/pgvector/**/*"
- any-glob-to-any-file: ".github/workflows/pgvector.yml"

integration:pinecone:
- changed-files:
- any-glob-to-any-file: "integrations/pinecone/**/*"
Expand All @@ -76,8 +86,13 @@ integration:qdrant:

integration:unstructured-fileconverter:
- changed-files:
- any-glob-to-any-file: "integrations/unstructured/fileconverter/**/*"
- any-glob-to-any-file: ".github/workflows/unstructured_fileconverter.yml"
- any-glob-to-any-file: "integrations/unstructured/**/*"
- any-glob-to-any-file: ".github/workflows/unstructured.yml"

integration:uptrain:
- changed-files:
- any-glob-to-any-file: "integrations/uptrain/**/*"
- any-glob-to-any-file: ".github/workflows/uptrain.yml"

integration:weaviate:
- changed-files:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/amazon_sagemaker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow comes from https://github.com/ofek/hatch-mypyc
# https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml
name: Test / amazon-sagemaker

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "integrations/amazon_sagemaker/**"
- ".github/workflows/amazon_sagemaker.yml"

defaults:
run:
working-directory: integrations/amazon_sagemaker

concurrency:
group: amazon-sagemaker-${{ github.head_ref }}
cancel-in-progress: true

env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.10"]

steps:
- name: Support longpaths
if: matrix.os == 'windows-latest'
working-directory: .
run: git config --system core.longpaths true

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: Lint
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run lint:all

- name: Run tests
run: hatch run cov
4 changes: 4 additions & 0 deletions .github/workflows/astra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run lint:all

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/chroma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ jobs:
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run lint:all

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
run: hatch run cov
run: hatch run cov
4 changes: 4 additions & 0 deletions .github/workflows/cohere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ jobs:
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run lint:all

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
run: hatch run cov
11 changes: 8 additions & 3 deletions .github/workflows/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- "integrations/elasticsearch/**"
- ".github/workflows/elasticsearch.yml"

defaults:
run:
working-directory: integrations/elasticsearch

concurrency:
group: elasticsearch-${{ github.head_ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -40,14 +44,15 @@ jobs:
run: pip install --upgrade hatch

- name: Lint
working-directory: integrations/elasticsearch
if: matrix.python-version == '3.9'
run: hatch run lint:all

- name: Run ElasticSearch container
working-directory: integrations/elasticsearch
run: docker-compose up -d

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
working-directory: integrations/elasticsearch
run: hatch run cov
5 changes: 5 additions & 0 deletions .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
- name: Pull the LLM in the Ollama service
run: docker exec ollama ollama pull ${{ env.LLM_FOR_TESTS }}

- name: Generate docs
working-directory: integrations/ollama
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
working-directory: integrations/ollama
run: hatch run cov
10 changes: 8 additions & 2 deletions .github/workflows/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

defaults:
run:
working-directory: integrations/opensearch

jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
Expand All @@ -40,14 +44,16 @@ jobs:
run: pip install --upgrade hatch

- name: Lint
working-directory: integrations/opensearch
if: matrix.python-version == '3.9'
run: hatch run lint:all

- name: Run opensearch container
working-directory: integrations/opensearch
run: docker-compose up -d

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
working-directory: integrations/opensearch
run: hatch run cov
64 changes: 64 additions & 0 deletions .github/workflows/pgvector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This workflow comes from https://github.com/ofek/hatch-mypyc
# https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml
name: Test / pgvector

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "integrations/pgvector/**"
- ".github/workflows/pgvector.yml"

concurrency:
group: pgvector-${{ github.head_ref }}
cancel-in-progress: true

env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

defaults:
run:
working-directory: integrations/pgvector

jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9","3.10","3.11"]
services:
pgvector:
image: ankane/pgvector:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: Lint
if: matrix.python-version == '3.9'
run: hatch run lint:all

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
run: hatch run cov
56 changes: 56 additions & 0 deletions .github/workflows/uptrain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow comes from https://github.com/ofek/hatch-mypyc
# https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml
name: Test / uptrain

on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "integrations/uptrain/**"
- ".github/workflows/uptrain.yml"

defaults:
run:
working-directory: integrations/uptrain

concurrency:
group: uptrain-${{ github.head_ref }}
cancel-in-progress: true

env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.10"]

steps:
- name: Support longpaths
if: matrix.os == 'windows-latest'
working-directory: .
run: git config --system core.longpaths true

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: Lint
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run lint:all

- name: Run tests
run: hatch run cov
11 changes: 4 additions & 7 deletions .github/workflows/weaviate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Support longpaths
if: matrix.os == 'windows-latest'
working-directory: .
run: git config --system core.longpaths true

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -49,8 +44,10 @@ jobs:
run: pip install --upgrade hatch

- name: Lint
if: runner.os == 'Linux'
run: hatch run lint:all

- name: Run Weaviate container
run: docker-compose up -d

- name: Run tests
run: hatch run cov
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ dmypy.json

# IDEs
.vscode

# Docs generation artifacts
_readme_*.md
Loading

0 comments on commit 0199e3c

Please sign in to comment.