Skip to content

Commit

Permalink
fix: linter issues!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed May 20, 2024
1 parent 04581b9 commit 62e3a22
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/unit/test_base_pg_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ def test_setup_vector_store_index(self):

expected_dbname = f"community_{community_id}"
self.assertIn(expected_dbname, base_engine.vector_store.connection_string)
self.assertEqual(base_engine.vector_store.table_name, platform_table_name)
self.assertEqual(base_engine.vector_store.table_name, platform_table_name)
4 changes: 3 additions & 1 deletion tests/unit/test_gdrive_query_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from unittest import TestCase

from llama_index.core.indices.vector_store.retrievers.retriever import VectorIndexRetriever
from llama_index.core.indices.vector_store.retrievers.retriever import (
VectorIndexRetriever,
)
from utils.query_engine import GDriveQueryEngine


Expand Down
4 changes: 3 additions & 1 deletion tests/unit/test_github_query_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from unittest import TestCase

from llama_index.core.indices.vector_store.retrievers.retriever import VectorIndexRetriever
from llama_index.core.indices.vector_store.retrievers.retriever import (
VectorIndexRetriever,
)
from utils.query_engine import GitHubQueryEngine


Expand Down
4 changes: 3 additions & 1 deletion tests/unit/test_mediawiki_query_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from unittest import TestCase

from llama_index.core.indices.vector_store.retrievers.retriever import VectorIndexRetriever
from llama_index.core.indices.vector_store.retrievers.retriever import (
VectorIndexRetriever,
)
from utils.query_engine import MediaWikiQueryEngine


Expand Down
4 changes: 3 additions & 1 deletion tests/unit/test_notion_query_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from unittest import TestCase

from llama_index.core.indices.vector_store.retrievers.retriever import VectorIndexRetriever
from llama_index.core.indices.vector_store.retrievers.retriever import (
VectorIndexRetriever,
)
from utils.query_engine import NotionQueryEngine


Expand Down
2 changes: 1 addition & 1 deletion utils/query_engine/base_pg_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ def _setup_vector_store_index(
embed_model=embed_model,
)
index = pg_vector.load_index()
return index
return index

0 comments on commit 62e3a22

Please sign in to comment.