Skip to content

Commit

Permalink
leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Dec 19, 2023
1 parent 1bac8f9 commit 2fb3e09
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ def _search_documents(self, **kwargs) -> List[Document]:
if top_k is None and "knn" in kwargs and "k" in kwargs["knn"]:
top_k = kwargs["knn"]["k"]

print(top_k)

documents: List[Document] = []
from_ = 0
# Handle pagination
Expand All @@ -120,8 +118,6 @@ def _search_documents(self, **kwargs) -> List[Document]:
**kwargs,
)

print(res)

documents.extend(self._deserialize_document(hit) for hit in res["hits"]["hits"])
from_ = len(documents)

Expand Down Expand Up @@ -267,7 +263,7 @@ def _bm25_retrieval(
"query": query,
"fuzziness": fuzziness,
"type": "most_fields",
"operator": "AND",
"operator": "OR",
}
}
]
Expand Down

0 comments on commit 2fb3e09

Please sign in to comment.