File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- from __future__ import annotations
2
-
3
1
import asyncio
4
2
import itertools
5
3
import logging
32
30
Field ,
33
31
model_validator ,
34
32
)
35
- from qdrant_client .http .models import Record
36
33
from typing_extensions import override
37
34
38
35
from paperqa .types import Doc , Text
39
36
40
37
if TYPE_CHECKING :
38
+ from qdrant_client .http .models import Record
39
+
41
40
from paperqa .docs import Docs
41
+
42
42
try :
43
43
from qdrant_client import AsyncQdrantClient , models
44
44
@@ -447,12 +447,12 @@ async def similarity_search(
447
447
@classmethod
448
448
async def load_docs (
449
449
cls ,
450
- client : AsyncQdrantClient ,
450
+ client : " AsyncQdrantClient" ,
451
451
collection_name : str ,
452
452
vector_name : str | None = None ,
453
453
batch_size : int = 100 ,
454
454
max_concurrent_requests : int = 5 ,
455
- ) -> Docs :
455
+ ) -> " Docs" :
456
456
from paperqa .docs import Docs # Avoid circular imports
457
457
458
458
vectorstore = cls (
You can’t perform that action at this time.
0 commit comments