chore: add yaml files to the ADK Vertex AI Search datastore

PiperOrigin-RevId: 808895175
This commit is contained in:
Xuan Yang
2025-09-18 23:27:34 -07:00
committed by Copybara-Service
parent 006a406f5b
commit 4d39563ea4
2 changed files with 19 additions and 2 deletions
@@ -115,6 +115,10 @@ def convert_gcs_to_https(gcs_uri: str) -> Optional[str]:
if relative_path.endswith(".html"):
relative_path = relative_path.removesuffix(".html") + ".md"
# Replace .txt with .yaml
if relative_path.endswith(".txt"):
relative_path = relative_path.removesuffix(".txt") + ".yaml"
# Convert the links for adk-docs
if prefix == "adk-docs" and relative_path.startswith("docs/"):
path_after_docs = relative_path[len("docs/") :]