Skip to content

Commit

Permalink
more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail Ashraq authored and Ismail Ashraq committed Jul 16, 2024
1 parent b6e2b19 commit 3fa78fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion semantic_router/index/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def query(
scores, idx = top_scores(sim, top_k)
route_names = [self.routes[i] for i in idx]
return scores, route_names

async def aquery(
self,
vector: np.ndarray,
Expand Down
4 changes: 2 additions & 2 deletions semantic_router/index/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def query(
filter_query = None
results = self.index.query(
vector=[query_vector_list],
sparse_vector=kwargs.get('sparse_vector', None),
sparse_vector=kwargs.get("sparse_vector", None),
top_k=top_k,
filter=filter_query,
include_metadata=True,
Expand All @@ -501,7 +501,7 @@ async def aquery(
filter_query = None
results = await self._async_query(
vector=query_vector_list,
sparse_vector=kwargs.get('sparse_vector', None),
sparse_vector=kwargs.get("sparse_vector", None),
namespace=self.namespace or "",
filter=filter_query,
top_k=top_k,
Expand Down

0 comments on commit 3fa78fc

Please sign in to comment.