Automate Gemini File Search re-upload on deploy #36
Labels
No labels
Priority 1
Priority 2
Priority 3
Priority 4
Priority 5
Priority 6
Priority 7
new-review
new-set priority
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
grams/updv#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When text or article files change and are deployed via the webhook (
deploy.php→git pull), the updated files should be automatically re-uploaded to the Gemini File Search store so the Bible assistant stays current.Current State
~/upload-updv.shuploads all 67 text files + articles to the file search storeProposed Approach
In
deploy.php, aftergit pull:git diff --name-only HEAD~1 HEADto detect changed filestext/orarticles/, upload to the file search store via curlConsiderations
article-prefix when uploadingReferences
fileSearchStores/updv-bible-9xhykq72mcw0POST https://generativelanguage.googleapis.com/upload/v1beta/fileSearchStores/{store}:uploadToFileSearchStore~/upload-updv.sh