-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add document link downloader to Document Library #236
Conversation
const [isDownloading, setIsDownloading] = useState<boolean>(false); | ||
const [getDownloadUrl] = useLazyDownloadRagDocumentQuery(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead of worrying about isDownloading
you can use isFetching
from the hook. I think it would look something like this…
const [isDownloading, setIsDownloading] = useState<boolean>(false);
const [getDownloadUrl, {isFetching: isDownloading}] = useLazyDownloadRagDocumentQuery();
Edit: I guess technically it would only say it is downloading while it is fetching the URL so maybe that isn't what you'd want. Not blocking on this, just throwing it out as an option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Updated.
Add document link downloader to Document Library. Create a new presigned url for downloading a single RAG document from S3.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.