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

Weaviate: Fix to be compatible with python 3.8 #1349

Merged
merged 10 commits into from
Jun 6, 2023

Conversation

hsm207
Copy link
Contributor

@hsm207 hsm207 commented Jun 5, 2023

Motivation and Context

Description

use run_in_executor instead of to_thread to run the weaviate client ops in async because to_thread is not available in 3.8

Contribution Checklist

Signed-off-by: hsm207 <hsm207@users.noreply.github.com>
Signed-off-by: hsm207 <hsm207@users.noreply.github.com>
@github-actions github-actions bot added the python Pull requests for the Python Semantic Kernel label Jun 5, 2023
@hsm207 hsm207 changed the title Weaviate: Fix to be compatible with weaviate 3.8 Weaviate: Fix to be compatible with python 3.8 Jun 5, 2023
Hypothesis: server doesn't like it when you send too many requests per
second

Signed-off-by: hsm207 <hsm207@users.noreply.github.com>
Copy link
Contributor

@awharrison-28 awharrison-28 left a comment

Choose a reason for hiding this comment

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

Small nit: can you create a sub folder so that the path for weaviate looks like:

semantic_kernel/connectors/memory/weaviate/weaviate_memory_store.py

Signed-off-by: hsm207 <hsm207@users.noreply.github.com>
Signed-off-by: hsm207 <hsm207@users.noreply.github.com>
Signed-off-by: hsm207 <hsm207@users.noreply.github.com>
@hsm207
Copy link
Contributor Author

hsm207 commented Jun 6, 2023

Small nit: can you create a sub folder so that the path for weaviate looks like:

semantic_kernel/connectors/memory/weaviate/weaviate_memory_store.py

done!

@dluc dluc merged commit 8947e68 into microsoft:main Jun 6, 2023
26 checks passed
@hsm207 hsm207 deleted the tests-weaviate-integration branch June 6, 2023 23:08
salmon131 pushed a commit to salmon131/semantic-kernel that referenced this pull request Jun 7, 2023
use run_in_executor instead of to_thread to run the weaviate client ops
in async because to_thread is not available in python 3.8
@dluc dluc mentioned this pull request Jun 12, 2023
dluc added a commit that referenced this pull request Jun 12, 2023
* [e4781e5] Add sample notebook to demo weaviate memory store (#1359)
* [dae1c16] Python: Added examples of using ChatCompletion models for
skill building in Jupyter Notebooks (#1242)
* [f4e92eb] fix: Add Azure OpenAI support for
python/08-native-function-inline (#1365)
* [de74668] Fixing typos (#1377)
* [67aa732] Python: Fix weaviate integration tests (#1422)
* [f60d7ba] Fix functions_view.py (#1213)
* [b2e1548] Python: Multiple results per prompt (incl. streaming)
(#1316)
* [4c4670a] Using dotenv instead of parsing keys ourselves (#1295)
* [05d9e72] Python: Sync pyproject.toml with requirements.txt (#1150)
* [6cbea85] Python: Add additional_metadata field to MemoryRecord and
address TODOs in ChromaMemoryStore (#1323)
* [8947e68] Weaviate: Fix to be compatible with python 3.8 (#1349)
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
use run_in_executor instead of to_thread to run the weaviate client ops
in async because to_thread is not available in python 3.8
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
* [e4781e5] Add sample notebook to demo weaviate memory store (microsoft#1359)
* [dae1c16] Python: Added examples of using ChatCompletion models for
skill building in Jupyter Notebooks (microsoft#1242)
* [f4e92eb] fix: Add Azure OpenAI support for
python/08-native-function-inline (microsoft#1365)
* [de74668] Fixing typos (microsoft#1377)
* [67aa732] Python: Fix weaviate integration tests (microsoft#1422)
* [f60d7ba] Fix functions_view.py (microsoft#1213)
* [b2e1548] Python: Multiple results per prompt (incl. streaming)
(microsoft#1316)
* [4c4670a] Using dotenv instead of parsing keys ourselves (microsoft#1295)
* [05d9e72] Python: Sync pyproject.toml with requirements.txt (microsoft#1150)
* [6cbea85] Python: Add additional_metadata field to MemoryRecord and
address TODOs in ChromaMemoryStore (microsoft#1323)
* [8947e68] Weaviate: Fix to be compatible with python 3.8 (microsoft#1349)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants