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
* This class contains the pure `async/await` logic for all database operations using `asyncpg`.
20
20
* It's designed for **direct use within asynchronous applications**. Users working in an `asyncio` environment can `await` its methods for maximum efficiency and direct control within the event loop.
21
21
* It represents the fundamental, non-blocking way of interacting with the database.
* This class provides both asynchronous & synchronous APIs.
25
-
* When one of its methods is called, it internally invokes the corresponding `async` method from `AsyncPGVectorstore`.
25
+
* When one of its methods is called, it internally invokes the corresponding `async` method from `AsyncPGVectorStore`.
26
26
* It **manages the execution of this underlying asynchronous logic**, handling the necessary `asyncio` event loop interactions (e.g., starting/running the coroutine) behind the scenes.
27
27
* This allows users of synchronous codebases to leverage the performance benefits of the asynchronous core without needing to rewrite their application structure.
28
28
@@ -31,8 +31,8 @@ To cater to different application architectures while maintaining performance, w
31
31
This two-class structure provides significant advantages:
32
32
33
33
-**Interface Flexibility:** Developers can **choose the interface that best fits their needs**:
34
-
* Use `PGVectorstore` for easy integration into existing synchronous applications.
35
-
* Use `AsyncPGVectorstore` for optimal performance and integration within `asyncio`-based applications.
36
-
-**Ease of Use:**`PGVectorstore` offers a familiar synchronous programming model, hiding the complexity of managing async execution from the end-user.
34
+
* Use `PGVectorStore` for easy integration into existing synchronous applications.
35
+
* Use `AsyncPGVectorStore` for optimal performance and integration within `asyncio`-based applications.
36
+
-**Ease of Use:**`PGVectorStore` offers a familiar synchronous programming model, hiding the complexity of managing async execution from the end-user.
37
37
-**Robustness:** The clear separation helps prevent common errors associated with mixing synchronous and asynchronous code incorrectly, such as blocking the event loop from synchronous calls within an async context.
38
-
-**Efficiency for Async Users:**`AsyncPGVectorstore` provides a direct path for async applications, avoiding any potential overhead from the sync-to-async bridging layer present in `PGVectorstore`.
38
+
-**Efficiency for Async Users:**`AsyncPGVectorStore` provides a direct path for async applications, avoiding any potential overhead from the sync-to-async bridging layer present in `PGVectorStore`.
0 commit comments