Skip to content

Commit

Permalink
chore: 🚨 fixed lint errors
Browse files Browse the repository at this point in the history
refactor: 🚨 fixed line error in comments

chore: 🚨 lint errors
  • Loading branch information
vempaliakhil96 committed Jun 10, 2023
1 parent 251a401 commit 2d417f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions langchain/vectorstores/faiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def similarity_search_with_score_by_vector(
return docs[:k]

def similarity_search_with_score(
self, query: str, k: int = 4, **kwargs
self, query: str, k: int = 4, **kwargs: Any
) -> List[Tuple[Document, float]]:
"""Return docs most similar to query.
Expand Down Expand Up @@ -285,7 +285,8 @@ def max_marginal_relevance_search_by_vector(
Args:
embedding: Embedding to look up documents similar to.
k: Number of Documents to return. Defaults to 4.
fetch_k: Number of Documents to fetch after filtering to pass to MMR algorithm.
fetch_k: Number of Documents to fetch after filtering to
pass to MMR algorithm.
lambda_mult: Number between 0 and 1 that determines the degree
of diversity among the results with 0 corresponding
to maximum diversity and 1 to minimum diversity.
Expand Down

0 comments on commit 2d417f0

Please sign in to comment.