-
Notifications
You must be signed in to change notification settings - Fork 273
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
Carbon dataloader and Internet search feature #323
Conversation
…nita into carbondataloader
Merge branch main -> carbondl
if total == -1: | ||
total = page.count | ||
for file in page.results: | ||
# TODO (chiragjn): There can be an edge case here where file.file_metadata.is_folder = True |
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 never got around to this.
Actually now that we support pydantic v2, we should be able to use the official carbon python sdk
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.
Approving to unblock
response = self._request( | ||
"POST", "https://api.carbon.ai/user_files_v2", json=payload | ||
) | ||
page = _UserFilesV2Response.parse_obj(response) |
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.
This will break actually, this needs to be .model_validate
@@ -32,6 +32,7 @@ async def answer( | |||
""" | |||
Sample answer method to answer the question using the context from the collection | |||
""" | |||
logger.info(f"Request: {request.dict()}") |
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.
.model_dump()
No description provided.