LLM Metadata generation script #79

Merged
tischrei merged 6 commits from script into main 2026-03-04 10:27:40 +00:00
Showing only changes of commit fff87e5cc6 - Show all commits

View File

@ -19,7 +19,6 @@ import logging
import pathlib
import requests
import subprocess
import sys
from git import exc
from git import Repo
@ -77,9 +76,9 @@ def extract_keywords(result):
keywords = [kw.strip() for kw in keywords_text.split(",")]
keywords = [kw for kw in keywords if kw and len(kw) > 0]
keywords = keywords[:5]
return ", ".join(keywords)
@ -319,9 +318,9 @@ def process_service(args, service):
new_branch.checkout()
rst_files = list(repo_dir.rglob("doc/**/*.rst")) + \
list(repo_dir.rglob("umn/**/*.rst")) + \
list(repo_dir.rglob("api-ref/**/*.rst"))
rst_files = (list(repo_dir.rglob("doc/**/*.rst"))
+ list(repo_dir.rglob("umn/**/*.rst"))
+ list(repo_dir.rglob("api-ref/**/*.rst")))
processed_count = 0
updated_count = 0
@ -457,4 +456,4 @@ def main():
if __name__ == "__main__":
main()
main()