Skip to content

Commit

Permalink
1.去掉无用的颜色
Browse files Browse the repository at this point in the history
2.删掉API文档
  • Loading branch information
lpxiangyan9 committed Apr 26, 2024
1 parent 3b43154 commit 60408bb
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 49 deletions.
4 changes: 1 addition & 3 deletions airda/agent/assistants/assistant_manager.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from airda.agent.assistants.assistant_keys import AssistantKeys
from airda.agent.assistants.chat_assistant.chat_assistant import ChatAssistant
from airda.agent.assistants.sql_assistant.sql_assistant import SqlAssistant
from airda.framework.agent.module.assistant_manager.assistant.assistant import (
Assistant,
)
from airda.framework.agent.module.assistant_manager.assistant.assistant import Assistant
from airda.framework.agent.module.assistant_manager.assistant_manager import (
AssistantManager,
)
Expand Down
4 changes: 1 addition & 3 deletions airda/agent/assistants/chat_assistant/chat_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

from airda.agent.action.searcher import Searcher
from airda.framework.action.action import Action
from airda.framework.agent.module.assistant_manager.assistant.assistant import (
Assistant,
)
from airda.framework.agent.module.assistant_manager.assistant.assistant import Assistant


class ChatAssistant(Assistant, ABC):
Expand Down
4 changes: 1 addition & 3 deletions airda/agent/assistants/sql_assistant/sql_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
from airda.agent.exception.action_type_error import ActionTypeError
from airda.agent.llm.data_agent_llm_keys import DataAgentLLMKeys
from airda.framework.action.action import Action
from airda.framework.agent.module.assistant_manager.assistant.assistant import (
Assistant,
)
from airda.framework.agent.module.assistant_manager.assistant.assistant import Assistant
from airda.framework.agent.module.assistant_manager.assistant.assistant_params import (
AssistantParams,
)
Expand Down
4 changes: 1 addition & 3 deletions airda/agent/planner/data_agent_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
)
from airda.agent.planner.data_agent_planner_params import DataAgentPlannerParams
from airda.framework.agent.context import Context
from airda.framework.agent.module.assistant_manager.assistant.assistant import (
Assistant,
)
from airda.framework.agent.module.assistant_manager.assistant.assistant import Assistant
from airda.framework.agent.module.planner.pipeline.pipeline import Pipeline


Expand Down
4 changes: 1 addition & 3 deletions airda/agent/planner/data_agent_planner_params.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from pydantic import BaseModel

from airda.framework.agent.module.planner.pipeline.pipeline_params import (
PipelineParams,
)
from airda.framework.agent.module.planner.pipeline.pipeline_params import PipelineParams
from airda.framework.agent.module.planner.planner_params import PlannerParams


Expand Down
4 changes: 1 addition & 3 deletions airda/agent/rag/data_agent_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

from airda.agent import log
from airda.agent.process_pool.DataAgentProcessPool import DataAgentProcessPool
from airda.agent.rag.embedding.data_agent_embedding_model import (
DataAgentEmbeddingModel,
)
from airda.agent.rag.embedding.data_agent_embedding_model import DataAgentEmbeddingModel
from airda.agent.rag.schema_linking.data_agent_schema_linking import (
DataAgentSchemaLinking,
)
Expand Down
4 changes: 1 addition & 3 deletions airda/agent/rag/embedding/data_agent_embedding_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from sklearn.preprocessing import normalize

from airda.agent.env import DataAgentEnv
from airda.framework.agent.module.rag.embedding.embedding_model import (
EmbeddingModel,
)
from airda.framework.agent.module.rag.embedding.embedding_model import EmbeddingModel


class DataAgentEmbeddingModel(EmbeddingModel):
Expand Down
8 changes: 2 additions & 6 deletions airda/agent/rag/schema_linking/data_agent_schema_linking.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import numpy as np

from airda.agent import log
from airda.framework.agent.module.rag.embedding.embedding_model import (
EmbeddingModel,
)
from airda.framework.agent.module.rag.schema_linking.schema_linking import (
SchemaLinking,
)
from airda.framework.agent.module.rag.embedding.embedding_model import EmbeddingModel
from airda.framework.agent.module.rag.schema_linking.schema_linking import SchemaLinking

logger = log.getLogger()

Expand Down
4 changes: 1 addition & 3 deletions airda/agent/storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

from airda.agent.env import DataAgentEnv
from airda.agent.storage import StorageKey
from airda.agent.storage.repositories.datasource_repository import (
DatasourceRepository,
)
from airda.agent.storage.repositories.datasource_repository import DatasourceRepository
from airda.agent.storage.repositories.instruction_repository import (
InstructionRepository,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from abc import abstractmethod

from airda.framework.agent.context import Context
from airda.framework.agent.module.assistant_manager.assistant.assistant import (
Assistant,
)
from airda.framework.agent.module.assistant_manager.assistant.assistant import Assistant
from airda.framework.agent.module.loader import Loader
from airda.framework.module.keys import Keys

Expand Down
4 changes: 1 addition & 3 deletions airda/framework/agent/module/planner/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from typing import AsyncGenerator, Generic, List, TypeVar

from airda.framework.agent.context import Context
from airda.framework.agent.module.assistant_manager.assistant.assistant import (
Assistant,
)
from airda.framework.agent.module.assistant_manager.assistant.assistant import Assistant

from .pipeline_params import PipelineParams
from .pipline_result import PipelineResult
Expand Down
8 changes: 2 additions & 6 deletions airda/framework/agent/module/rag/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
from airda.framework.agent.context import Context
from airda.framework.agent.module.loader import Loader
from airda.framework.agent.module.rag import RagKey
from airda.framework.agent.module.rag.embedding.embedding_model import (
EmbeddingModel,
)
from airda.framework.agent.module.rag.schema_linking.schema_linking import (
SchemaLinking,
)
from airda.framework.agent.module.rag.embedding.embedding_model import EmbeddingModel
from airda.framework.agent.module.rag.schema_linking.schema_linking import SchemaLinking


class Rag(Loader, ABC):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from abc import abstractmethod

from airda.framework import log
from airda.framework.agent.module.rag.embedding.embedding_model import (
EmbeddingModel,
)
from airda.framework.agent.module.rag.embedding.embedding_model import EmbeddingModel
from airda.framework.module.immediate import Immediate

logger = log.getLogger()
Expand Down
4 changes: 1 addition & 3 deletions airda/server/agent_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def create_app(self):
def run_server(self):
import uvicorn

uvicorn.run(
self.app, host=self.host, port=self.port, log_level="info"
)
uvicorn.run(self.app, host=self.host, port=self.port, log_level="info")

@overrides
def add_routes(self):
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ airda = "airda.cli.startup:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 60408bb

Please sign in to comment.