Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-maan committed Mar 10, 2024
1 parent a315181 commit 2ce099c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ def _searching_fn(self):
def _get_results(self):
query_ = re.sub(r'\`(\-[\w\*\?]+)\`', '', self._query)
query_ = re.sub(r"\`", "", query_)
print(query_)
qvec = vectorize_text(query_)

"""
Expand All @@ -287,7 +286,6 @@ def _get_results(self):
while len(results) < n and m <= 2*self.MAX_RES_LIMIT:
results_ = vector_search(qvec, self._indexes, m)
p = 0 if int(m/2) < 50 else int(m/2)
print(p, self._filters)
results += self._filters.apply(results_[p:])
m *= 2
return results
Expand Down

0 comments on commit 2ce099c

Please sign in to comment.