Skip to content

Commit

Permalink
chore: Replaced literal
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Mar 20, 2024
1 parent 622d422 commit cd41dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_router/index/qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def query(self, vector: np.ndarray, top_k: int = 5) -> Tuple[np.ndarray, List[st
self.index_name, query_vector=vector, limit=top_k, with_payload=True
)
scores = [result.score for result in results]
route_names = [result.payload["sr_route"] for result in results]
route_names = [result.payload[SR_ROUTE_PAYLOAD_KEY] for result in results]
return np.array(scores), route_names

def delete_index(self):
Expand Down

0 comments on commit cd41dd8

Please sign in to comment.