You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.rst
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,16 @@ This minor version includes:
8
8
9
9
- The introduction of the ``WeaviateAsyncClient`` class to support I/O requests to Weaviate using the ``async/await`` syntax with `asyncio <https://docs.python.org/3/library/asyncio.html>`
10
10
- All methods that perform CRUD and search actions are now ``async def`` functions
11
-
- To instantiate a client quickly, using the ``weaviate.use_async_with_x`` methods in an async context manager pattern, e.g.:
11
+
- To instantiate a client quickly, use the ``weaviate.use_async_with_x`` methods in an async context manager pattern, e.g.:
12
12
.. code-block:: python
13
13
asyncwith weaviate.use_async_with_local() as client:
14
14
# Your code
15
+
- Note, you cannot do ``await weaviate.use_async_with_x`` if not using the context manager pattern. You have to create the client first and then connect manually:
16
+
.. code-block:: python
17
+
client = weaviate.use_async_with_local()
18
+
await client.connect()
19
+
# Your code
20
+
await client.close()
15
21
- A refactoring of the underlying implementation of the ``WeaviateClient`` to use the ``WeaviateAsyncClient`` under-the-hood scheduling the necessary coroutines to run in a side-car event-loop thread
16
22
- Support for new core Weaviate features in both the sync and async clients:
17
23
- Multi-vector search in the ``.near_x`` and ``.hybrid`` methods within the ``.generate`` and ``.query`` collection namespaces
0 commit comments