[docs]: standardize vectorstores (#24797)

This commit is contained in:
Isaac Francisco
2024-07-30 10:38:04 -07:00
committed by GitHub
parent ac649800df
commit 511242280b
3 changed files with 394 additions and 26 deletions

View File

@@ -155,8 +155,8 @@ def create_doc(
str,
typer.Option(
help=(
"The type of component. Currently only 'ChatModel', 'DocumentLoader' "
"supported."
"The type of component. Currently only 'ChatModel', "
"'DocumentLoader', 'VectorStore' supported."
),
),
] = "ChatModel",
@@ -209,6 +209,10 @@ def create_doc(
Path(__file__).parents[1]
/ "integration_template/docs/document_loaders.ipynb"
)
elif component_type == "VectorStore":
docs_template = (
Path(__file__).parents[1] / "integration_template/docs/vectorstores.ipynb"
)
shutil.copy(docs_template, destination_path)
# replacements in file