Skip to content

Commit

Permalink
quickfix - embedding return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturOle committed Nov 18, 2024
1 parent 0930690 commit 2b10d1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ContextSearch"
version = "0.7.0"
version = "0.7.1"
description = "User friendly system for semantic search."
authors = [
"ArturOle"
Expand Down
2 changes: 1 addition & 1 deletion src/context_search/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def retrieve_data(self, query, n):
similarity score.
"""
embedded_query = self.preprocessor.embedder.embed(query)
return self.communicator.search_n_records(embedded_query, n)
return self.communicator.search_n_records(embedded_query[0], n)

def insert(self, directories: list) -> None:
"""Inserts data from the given directories to the database.
Expand Down

0 comments on commit 2b10d1d

Please sign in to comment.