1from __future__ import annotations
2
3▶import functools
4import os
5import uuid
· · ·
41 """
42
43▶ @functools.wraps(method)
44 async def wrapper(self: Any, *args: Any, **kwargs: Any) -> Any:
45 try:
· · ·
67 client = QdrantClient()
68 collection_name = "MyCollection"
69▶ qdrant = Qdrant(client, collection_name, embedding_function)
70 ```
71 """
· · ·
85 vector_name: str | None = VECTOR_NAME,
86 async_client: Any | None = None,
87▶ embedding_function: Callable | None = None, # deprecated
88 ) -> None:
89 """Initialize with necessary components."""
· · ·
102 raise ValueError(msg)
103
104▶ if embeddings is None and embedding_function is None:
105 msg = "`embeddings` value can't be None. Pass `embeddings` instance."
106 raise ValueError(msg)
+ 64 more matches in this file