Skip to content

Commit ea93b61

Browse files
committed
new version
1 parent 8c79a72 commit ea93b61

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/raglight/vectorstore/chroma.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def __init__(
4646
search_type: str = "semantic",
4747
alpha: float = 0.5,
4848
) -> None:
49-
super().__init__(persist_directory, embeddings_model, custom_processors, search_type, alpha)
49+
super().__init__(
50+
persist_directory, embeddings_model, custom_processors, search_type, alpha
51+
)
5052

5153
self.persist_directory = persist_directory
5254
self.host = host

src/raglight/vectorstore/qdrant.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ def __init__(
3939
"Install it with: pip install raglight[qdrant]"
4040
)
4141

42-
super().__init__(persist_directory, embeddings_model, custom_processors, search_type, alpha)
42+
super().__init__(
43+
persist_directory, embeddings_model, custom_processors, search_type, alpha
44+
)
4345

4446
self.collection_name = collection_name
4547
self._classes_collection_name = f"{collection_name}_classes"

src/raglight/vectorstore/vector_store.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def _bm25_search(self, question: str, k: int) -> List[Document]:
6464
docs.append(Document(page_content=self._bm25.corpus[idx]))
6565
return docs
6666

67-
def _rrf(self, ranked_lists: List[List[Document]], k_rrf: int = 60) -> List[Document]:
67+
def _rrf(
68+
self, ranked_lists: List[List[Document]], k_rrf: int = 60
69+
) -> List[Document]:
6870
scores: Dict[str, float] = {}
6971
doc_map: Dict[str, Document] = {}
7072
for ranked in ranked_lists:

0 commit comments

Comments
 (0)