-
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.
Merge branch 'main' into feature/ollama_streaming_support
- Loading branch information
Showing
32 changed files
with
1,277 additions
and
225 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Core / Sync docs with Readme | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout this repo | ||
uses: actions/checkout@v4 | ||
with: | ||
# This will tell tj-actions/changed-files to compare the current pushed commit with the latest in main | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U haystack-pydoc-tools hatch | ||
# We look into the changeset in order to understand | ||
# which integrations were modified by the last commit. | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: integrations/** | ||
# Output unique changed directories instead of filenames | ||
dir_names: true | ||
# We only care about the name of the integration, i.e. integrations/FOO | ||
dir_names_max_depth: 2 | ||
|
||
- name: Generate docs | ||
if: steps.changed-files.outputs.all_changed_files != '' | ||
env: | ||
# This is necessary to fetch the documentation categories | ||
# from Readme.io as we need them to associate the slug | ||
# in config files with their id. | ||
README_API_KEY: ${{ secrets.README_API_KEY }} | ||
ALL_CHANGED_DIRS: ${{ steps.changed-files.outputs.all_changed_files }} | ||
run: | | ||
for d in $ALL_CHANGED_DIRS; do | ||
cd $d | ||
hatch run docs | ||
cd - | ||
done | ||
mkdir tmp | ||
find . -name "_readme_*.md" -exec cp "{}" tmp \; | ||
ls tmp | ||
- name: Sync preview docs with 2.0 | ||
if: steps.changed-files.outputs.all_changed_files != '' | ||
uses: readmeio/[email protected] | ||
env: | ||
README_API_KEY: ${{ secrets.README_API_KEY }} | ||
with: | ||
rdme: docs ./tmp --key="$README_API_KEY" --version=2.0 |
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
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
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
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
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
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
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
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
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,31 @@ | ||
loaders: | ||
- type: haystack_pydoc_tools.loaders.CustomPythonLoader | ||
search_path: [../src] | ||
modules: [ | ||
"haystack_integrations.components.generators.amazon_bedrock.generator", | ||
"haystack_integrations.components.generators.amazon_bedrock.adapters", | ||
"haystack_integrations.components.generators.amazon_bedrock.errors", | ||
"haystack_integrations.components.generators.amazon_bedrock.handlers", | ||
] | ||
ignore_when_discovered: ["__init__"] | ||
processors: | ||
- type: filter | ||
expression: | ||
documented_only: true | ||
do_not_filter_modules: false | ||
skip_empty_modules: true | ||
- type: smart | ||
- type: crossref | ||
renderer: | ||
type: haystack_pydoc_tools.renderers.ReadmePreviewRenderer | ||
excerpt: Amazon Bedrock integration for Haystack | ||
category_slug: haystack-integrations | ||
title: Amazon Bedrock | ||
slug: integrations-amazon-bedrock | ||
order: 10 | ||
markdown: | ||
descriptive_class_title: false | ||
descriptive_module_title: true | ||
add_method_class_prefix: true | ||
add_member_class_prefix: false | ||
filename: _readme_amazon_bedrock.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
3 changes: 2 additions & 1 deletion
3
...amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/__init__.py
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,6 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2023-present deepset GmbH <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from .chat.chat_generator import AmazonBedrockChatGenerator | ||
from .generator import AmazonBedrockGenerator | ||
|
||
__all__ = ["AmazonBedrockGenerator"] | ||
__all__ = ["AmazonBedrockGenerator", "AmazonBedrockChatGenerator"] |
3 changes: 3 additions & 0 deletions
3
...n_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/chat/__init__.py
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,3 @@ | ||
# SPDX-FileCopyrightText: 2023-present deepset GmbH <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 |
Oops, something went wrong.