Skip to content

Commit

Permalink
chore: expose class from package level for retrieval pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
paopa committed Dec 10, 2024
1 parent bf38415 commit b611452
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions wren-ai-service/src/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from src.config import Settings
from src.core.pipeline import PipelineComponent
from src.core.provider import EmbedderProvider, LLMProvider
from src.pipelines import generation, indexing
from src.pipelines.retrieval import historical_question, preprocess_sql_data, retrieval
from src.pipelines import generation, indexing, retrieval
from src.web.v1.services.ask import AskService
from src.web.v1.services.ask_details import AskDetailsService
from src.web.v1.services.question_recommendation import QuestionRecommendation
Expand Down Expand Up @@ -88,7 +87,7 @@ def create_service_container(
table_column_retrieval_size=settings.table_column_retrieval_size,
allow_using_db_schemas_without_pruning=settings.allow_using_db_schemas_without_pruning,
),
"historical_question": historical_question.HistoricalQuestion(
"historical_question": retrieval.HistoricalQuestion(
**pipe_components["historical_question_retrieval"],
),
"sql_generation": generation.SQLGeneration(
Expand All @@ -108,7 +107,7 @@ def create_service_container(
),
sql_answer_service=SqlAnswerService(
pipelines={
"preprocess_sql_data": preprocess_sql_data.PreprocessSqlData(
"preprocess_sql_data": retrieval.PreprocessSqlData(
**pipe_components["preprocess_sql_data"],
),
"sql_answer": generation.SQLAnswer(
Expand Down
5 changes: 5 additions & 0 deletions wren-ai-service/src/pipelines/retrieval/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .historical_question import HistoricalQuestion
from .preprocess_sql_data import PreprocessSqlData
from .retrieval import Retrieval

__all__ = ["HistoricalQuestion", "PreprocessSqlData", "Retrieval"]

0 comments on commit b611452

Please sign in to comment.