Skip to content

Commit

Permalink
fix: linter issues based on superlinter rules!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Jan 2, 2024
1 parent 058b528 commit 0b19e7b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion discord_query.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from utils.query_engine.discord_query_engine import prepare_discord_engine_auto_filter
from llama_index import QueryBundle
from tc_hivemind_backend.embeddings.cohere import CohereEmbedding
from utils.query_engine.discord_query_engine import prepare_discord_engine_auto_filter


def query_discord(
Expand Down
16 changes: 8 additions & 8 deletions subquery.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from utils.query_engine import prepare_discord_engine_auto_filter
from llama_index.core import BaseQueryEngine
from guidance.models import OpenAI as GuidanceOpenAI
from llama_index import QueryBundle
from llama_index.tools import QueryEngineTool, ToolMetadata
from llama_index.core import BaseQueryEngine
from llama_index.query_engine import SubQuestionQueryEngine
from llama_index.question_gen.guidance_generator import GuidanceQuestionGenerator
from llama_index.tools import QueryEngineTool, ToolMetadata
from tc_hivemind_backend.embeddings.cohere import CohereEmbedding
from utils.query_engine import prepare_discord_engine_auto_filter


def query_multiple_source(
Expand Down Expand Up @@ -51,11 +51,11 @@ def query_multiple_source(
tools: list[ToolMetadata] = []

discord_query_engine: BaseQueryEngine
discourse_query_engine: BaseQueryEngine
gdrive_query_engine: BaseQueryEngine
notion_query_engine: BaseQueryEngine
telegram_query_engine: BaseQueryEngine
github_query_engine: BaseQueryEngine
# discourse_query_engine: BaseQueryEngine
# gdrive_query_engine: BaseQueryEngine
# notion_query_engine: BaseQueryEngine
# telegram_query_engine: BaseQueryEngine
# github_query_engine: BaseQueryEngine

# query engine perparation
# tools_metadata and query_engine_tools
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_prepare_discord_query_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import unittest
import os
from unittest.mock import patch, Mock
from utils.query_engine.discord_query_engine import prepare_discord_engine
from llama_index.core import BaseQueryEngine
from llama_index.vector_stores import ExactMatchFilter, FilterCondition, MetadataFilters
Expand Down

0 comments on commit 0b19e7b

Please sign in to comment.