-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Google Vertex AI integration (#101)
* Add Google Vertex AI integration * Add Gemini * Add label
- Loading branch information
1 parent
d45eca2
commit 824f57c
Showing
21 changed files
with
1,354 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,53 @@ | ||
# Integrations | ||
integration:chroma: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/chroma/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/chroma/**/*" | ||
|
||
integration:cohere: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/cohere/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/cohere/**/*" | ||
|
||
integration:elasticsearch: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/elasticsearch/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/elasticsearch/**/*" | ||
|
||
integration:google-vertex: | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/google-vertex/**/*" | ||
|
||
integration:gradient: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/gradient/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/gradient/**/*" | ||
|
||
integration:instructor-embedders: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/instructor-embedders/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/instructor-embedders/**/*" | ||
|
||
integration:jina: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/jina/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/jina/**/*" | ||
|
||
integration:opensearch: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/opensearch/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/opensearch/**/*" | ||
|
||
integration:unstructured-fileconverter: | ||
- changed-files: | ||
- any-glob-to-any-file: 'integrations/unstructured/fileconverter/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: "integrations/unstructured/fileconverter/**/*" | ||
|
||
# Topics | ||
topic:CI: | ||
- changed-files: | ||
- any-glob-to-any-file: ['.github/*', '.github/**/*'] | ||
- changed-files: | ||
- any-glob-to-any-file: [".github/*", ".github/**/*"] | ||
topic:DX: | ||
- changed-files: | ||
- any-glob-to-any-file: ['CONTRIBUTING.md', '.pre-commit-config.yaml', '.gitignore', 'requirements.txt'] | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
[ | ||
"CONTRIBUTING.md", | ||
".pre-commit-config.yaml", | ||
".gitignore", | ||
"requirements.txt", | ||
] | ||
topic:security: | ||
- changed-files: | ||
- any-glob-to-any-file: ['SECURITY.md'] | ||
- changed-files: | ||
- any-glob-to-any-file: ["SECURITY.md"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 / google-vertex | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
pull_request: | ||
paths: | ||
- "integrations/google-vertex/**" | ||
- ".github/workflows/google-vertex.yml" | ||
|
||
defaults: | ||
run: | ||
working-directory: integrations/google-vertex | ||
|
||
concurrency: | ||
group: google-vertex-${{ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.