Skip to content

Commit

Permalink
dict -> Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
fkodom committed Dec 1, 2023
1 parent 865e2d8 commit b388618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions document_rag/vector_db/qdrant.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import os
from typing import Any, List, Sequence, Tuple, cast
from typing import Any, Dict, List, Sequence, Tuple, cast

from qdrant_client import QdrantClient
from typing_extensions import Self
Expand Down Expand Up @@ -32,7 +32,7 @@ def add_documents(self, documents: Sequence[Tuple[str, TextMetadata]]) -> None:
self.client.add(
collection_name=COLLECTION_NAME,
documents=_documents,
metadata=cast(List[dict[str, Any]], metadata), # For mypy
metadata=cast(List[Dict[str, Any]], metadata), # For mypy
)

def search(self, query: str, limit: int = 10) -> List[SearchResult]:
Expand Down

0 comments on commit b388618

Please sign in to comment.