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

[BugFix] Fix logic in prepdocs to always update search index #1066

Merged
merged 4 commits into from
Dec 14, 2023
Merged

[BugFix] Fix logic in prepdocs to always update search index #1066

merged 4 commits into from
Dec 14, 2023

Conversation

pamelafox
Copy link
Collaborator

Purpose

Fixes #1063
I think this line of code was accidentally indented.

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Delete an md5 file, run scripts/prepdocs.sh, see logs from update_content call:

Splitting 'role_library.pdf' into sections
Uploading blob for whole file -> role_library.pdf
Batch Completed. Batch size 16 Token count 3246
Batch Completed. Batch size 16 Token count 3167
Batch Completed. Batch size 16 Token count 3201
Batch Completed. Batch size 10 Token count 1949

@pamelafox pamelafox changed the title [BugFix] Fix logic in prepdocs to always index search index [BugFix] Fix logic in prepdocs to always update search index Dec 14, 2023
@@ -180,13 +180,8 @@ def __init__(
self.credential = credential
self.organization = organization

async def create_embedding_arguments(self) -> dict[str, Any]:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was another change in Shakirs PR that looks like a bad merge, so I reverted it to what was in main.

@pamelafox pamelafox merged commit c02908c into Azure-Samples:main Dec 14, 2023
10 checks passed
@pamelafox pamelafox deleted the fixprepdocs branch December 14, 2023 17:59
@mattgotteiner
Copy link
Collaborator

Thanks for fixing this!

HughRunyan pushed a commit to RMI/RMI_chatbot that referenced this pull request Mar 26, 2024
…amples#1066)

* Fix indetation to update index

* Bring back create_client
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.

Index was not created after recent updates about vision support
3 participants