Skip to content
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

Merged
merged 40 commits into from
Sep 6, 2024
Merged

Conversation

S1LV3RJ1NX
Copy link
Contributor

No description provided.

SayanDeveloper and others added 30 commits July 3, 2024 23:49
Added internet search functionality
Merge pull request #274 from truefoundry/ps_unstructured
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
Copy link
Member

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

Copy link
Member

@chiragjn chiragjn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to unblock

@S1LV3RJ1NX S1LV3RJ1NX merged commit 783634c into main Sep 6, 2024
1 check passed
@S1LV3RJ1NX S1LV3RJ1NX deleted the carbondataloader branch September 6, 2024 11:01
response = self._request(
"POST", "https://api.carbon.ai/user_files_v2", json=payload
)
page = _UserFilesV2Response.parse_obj(response)
Copy link
Member

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()}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.model_dump()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants