Skip to content

Commit

Permalink
retrieve correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturOle committed Nov 18, 2024
1 parent 34ecb39 commit 9c86dd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/ragger_example_retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os

from src.data_manager import DataManager
from context_search.data_manager import DataManager


cwd = os.getcwd()
Expand Down
2 changes: 1 addition & 1 deletion examples/ragger_example_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os

from src.data_manager import DataManager
from context_search.data_manager import DataManager


cwd = os.getcwd()
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 9c86dd2

Please sign in to comment.