-
Notifications
You must be signed in to change notification settings - Fork 194
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 tolga/function-schemas
- Loading branch information
Showing
69 changed files
with
3,579 additions
and
742 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,58 @@ | ||
name: Release Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-docs: | ||
permissions: | ||
contents: read | ||
id-token: write | ||
name: Build Docs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.11" | ||
env: | ||
POETRY_VERSION: "1.8.3" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Cache Poetry | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.poetry | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-poetry- | ||
- name: Install poetry | ||
run: | | ||
pipx install poetry==$POETRY_VERSION | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: poetry | ||
- name: Install dependencies | ||
run: | | ||
poetry install --all-extras | ||
- name: Build docs | ||
run: | | ||
poetry run sphinx-build -M html docs/source docs/build | ||
- name: Authenticate to Google Cloud | ||
id: auth | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} | ||
- name: Upload Docs | ||
run: | | ||
gcloud storage rsync docs/build/html gs://docs-bucket-production/semantic-router --recursive --delete-unmatched-destination-objects | ||
# - name: Upload Docs | ||
# id: upload-directory | ||
# uses: google-github-actions/upload-cloud-storage@v2 | ||
# with: | ||
# path: docs/build/html | ||
# destination: docs-bucket-production/semantic-router | ||
# parent: false |
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.AutoEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.base.BaseEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.bedrock.BedrockEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.bm25.BM25Encoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.clip.CLIPEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.cohere.CohereEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.fastembed.FastEmbedEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.google.GoogleEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
.../source/_autosummary/semantic_router.encoders.huggingface.HFEndpointEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
...source/_autosummary/semantic_router.encoders.huggingface.HuggingFaceEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.mistral.MistralEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.tfidf.TfidfEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.encoders.vit.VitEncoder.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.hybrid_layer.HybridRouteLayer.rst
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
2 changes: 1 addition & 1 deletion
2
docs/source/_autosummary/semantic_router.index.pinecone.PineconeRecord.rst
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
28 changes: 28 additions & 0 deletions
28
docs/source/_autosummary/semantic_router.index.postgres.MetricPgVecOperatorMap.rst
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,28 @@ | ||
semantic\_router.index.postgres.MetricPgVecOperatorMap | ||
====================================================== | ||
|
||
.. currentmodule:: semantic_router.index.postgres | ||
|
||
.. autoclass:: MetricPgVecOperatorMap | ||
:members: | ||
:show-inheritance: | ||
:inherited-members: | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~MetricPgVecOperatorMap.cosine | ||
~MetricPgVecOperatorMap.dotproduct | ||
~MetricPgVecOperatorMap.euclidean | ||
~MetricPgVecOperatorMap.manhattan | ||
|
||
|
65 changes: 65 additions & 0 deletions
65
docs/source/_autosummary/semantic_router.index.postgres.PostgresIndex.rst
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,65 @@ | ||
semantic\_router.index.postgres.PostgresIndex | ||
============================================= | ||
|
||
.. currentmodule:: semantic_router.index.postgres | ||
|
||
.. autoclass:: PostgresIndex | ||
:members: | ||
:show-inheritance: | ||
:inherited-members: | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~PostgresIndex.__init__ | ||
~PostgresIndex.add | ||
~PostgresIndex.aget_routes | ||
~PostgresIndex.aquery | ||
~PostgresIndex.construct | ||
~PostgresIndex.copy | ||
~PostgresIndex.delete | ||
~PostgresIndex.delete_all | ||
~PostgresIndex.delete_index | ||
~PostgresIndex.describe | ||
~PostgresIndex.dict | ||
~PostgresIndex.from_orm | ||
~PostgresIndex.get_routes | ||
~PostgresIndex.json | ||
~PostgresIndex.parse_file | ||
~PostgresIndex.parse_obj | ||
~PostgresIndex.parse_raw | ||
~PostgresIndex.query | ||
~PostgresIndex.schema | ||
~PostgresIndex.schema_json | ||
~PostgresIndex.setup_index | ||
~PostgresIndex.update_forward_refs | ||
~PostgresIndex.validate | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~PostgresIndex.connection_string | ||
~PostgresIndex.index_prefix | ||
~PostgresIndex.index_name | ||
~PostgresIndex.dimensions | ||
~PostgresIndex.metric | ||
~PostgresIndex.namespace | ||
~PostgresIndex.conn | ||
~PostgresIndex.type | ||
~PostgresIndex.index | ||
~PostgresIndex.routes | ||
~PostgresIndex.utterances | ||
~PostgresIndex.init_async_index | ||
~PostgresIndex.sync | ||
|
||
|
63 changes: 63 additions & 0 deletions
63
docs/source/_autosummary/semantic_router.index.postgres.PostgresIndexRecord.rst
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,63 @@ | ||
semantic\_router.index.postgres.PostgresIndexRecord | ||
=================================================== | ||
|
||
.. currentmodule:: semantic_router.index.postgres | ||
|
||
.. autoclass:: PostgresIndexRecord | ||
:members: | ||
:show-inheritance: | ||
:inherited-members: | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~PostgresIndexRecord.__init__ | ||
~PostgresIndexRecord.construct | ||
~PostgresIndexRecord.copy | ||
~PostgresIndexRecord.dict | ||
~PostgresIndexRecord.from_orm | ||
~PostgresIndexRecord.json | ||
~PostgresIndexRecord.model_construct | ||
~PostgresIndexRecord.model_copy | ||
~PostgresIndexRecord.model_dump | ||
~PostgresIndexRecord.model_dump_json | ||
~PostgresIndexRecord.model_json_schema | ||
~PostgresIndexRecord.model_parametrized_name | ||
~PostgresIndexRecord.model_post_init | ||
~PostgresIndexRecord.model_rebuild | ||
~PostgresIndexRecord.model_validate | ||
~PostgresIndexRecord.model_validate_json | ||
~PostgresIndexRecord.model_validate_strings | ||
~PostgresIndexRecord.parse_file | ||
~PostgresIndexRecord.parse_obj | ||
~PostgresIndexRecord.parse_raw | ||
~PostgresIndexRecord.schema | ||
~PostgresIndexRecord.schema_json | ||
~PostgresIndexRecord.to_dict | ||
~PostgresIndexRecord.update_forward_refs | ||
~PostgresIndexRecord.validate | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~PostgresIndexRecord.model_computed_fields | ||
~PostgresIndexRecord.model_config | ||
~PostgresIndexRecord.model_extra | ||
~PostgresIndexRecord.model_fields | ||
~PostgresIndexRecord.model_fields_set | ||
~PostgresIndexRecord.id | ||
~PostgresIndexRecord.route | ||
~PostgresIndexRecord.utterance | ||
~PostgresIndexRecord.vector | ||
|
||
|
Oops, something went wrong.