Skip to content

Commit

Permalink
feat: update imports based on code restructuring!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Dec 28, 2023
1 parent 0d6e038 commit f4c9980
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bot/retrievers/forum_summary_retriever.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from llama_index.embeddings import BaseEmbedding
from retrievers.summary_retriever_base import BaseSummarySearch
from bot.retrievers.summary_retriever_base import BaseSummarySearch
from tc_hivemind_backend.embeddings.cohere import CohereEmbedding


Expand Down
6 changes: 3 additions & 3 deletions discord_query.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from llama_index import QueryBundle
from llama_index.vector_stores import ExactMatchFilter, FilterCondition, MetadataFilters
from retrievers.forum_summary_retriever import ForumBasedSummaryRetriever
from retrievers.process_dates import process_dates
from retrievers.utils.load_hyperparams import load_hyperparams
from bot.retrievers.forum_summary_retriever import ForumBasedSummaryRetriever
from bot.retrievers.process_dates import process_dates
from bot.retrievers.utils.load_hyperparams import load_hyperparams
from tc_hivemind_backend.embeddings.cohere import CohereEmbedding
from tc_hivemind_backend.pg_vector_access import PGVectorAccess

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_discord_summary_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from dateutil import parser
from llama_index import Document, MockEmbedding, ServiceContext, VectorStoreIndex
from retrievers.forum_summary_retriever import ForumBasedSummaryRetriever
from bot.retrievers.forum_summary_retriever import ForumBasedSummaryRetriever


class TestDiscordSummaryRetriever(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_process_dates_forum_retriever_search.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from retrievers.process_dates import process_dates
from bot.retrievers.process_dates import process_dates


class TestProcessDates(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_summary_retriever_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from llama_index import Document, MockEmbedding, ServiceContext, VectorStoreIndex
from llama_index.schema import NodeWithScore
from retrievers.summary_retriever_base import BaseSummarySearch
from bot.retrievers.summary_retriever_base import BaseSummarySearch


class TestSummaryRetrieverBase(TestCase):
Expand Down

0 comments on commit f4c9980

Please sign in to comment.