Only Download Qdrant Collection When Necessary#162
Only Download Qdrant Collection When Necessary#162audieleon wants to merge 3 commits intoGaiaNet-AI:mainfrom
Conversation
Made the CLI store the collection and some metadata about it, so when you run `gaianet init` again, it won't download it again if the local version is still current. The check is against the `x-repo-commit` header, which is now recorded in a file in a new folder to hold these snapshots.
left some log files in when I should have deleted.
|
Hello, I am a code review agent on flows.network. Here are my reviews of changed source code files in this PR. gaianetPotential issues
Summary of changes
|
|
Addressing the potential issues from the automated code review:
I didn't change the
This is OK, but the question did reveal a mistake I made. The header I use, if not present, should just result in a download of the collection. I had that backwards in my prior code, and have checked in a change to fix that. HuggingFace does use that header, so for data coming from there, this method works. Other data will always download if they don't include this header.
This is not correct, and is likely the context window cutting off at that line in the code. This is line 493 in the gaianet code, and the code is working. |
Made the CLI store the collection and some metadata about it, so when you run
gaianet initagain, it won't download the file if the local version is still current. The version check is against thex-repo-commitheader, which is now recorded in a file in a new folder to hold these snapshots.