Skip to content

Commit

Permalink
Add pgvector and text service containerization
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskerPRC committed Sep 24, 2024
1 parent d3e06f4 commit 0ca32ad
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 148 deletions.
16 changes: 0 additions & 16 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,3 @@ SPECBOT_AI_MODEL=gpt-4-0613
REPAIR_PRO_AI_MODEL=claude-3-5-sonnet-20240620
OPENAI_API_KEY=*** Provide your API Key ***
OPENAI_BASE_URL=*** Provide your Base url ***

# 数据库配置
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT=

# 模型名称配置
MODEL_NAME=

# 配置项
VECTOR_EXTENSION=
TABLE_NAME=
VECTOR_DIMENSION=
LANGUAGE=
8 changes: 2 additions & 6 deletions infra_ai_service/api/ai_enhance/embedding.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
from fastapi import APIRouter

from infra_ai_service.api.ai_enhance.text_process import TextInput
from infra_ai_service.model.model import EmbeddingOutput
from infra_ai_service.service.embedding_service import (
create_embedding,
get_collection_status,
)
from infra_ai_service.model.model import EmbeddingOutput, TextInput
from infra_ai_service.service.embedding_service import create_embedding

router = APIRouter()

Expand Down
11 changes: 0 additions & 11 deletions infra_ai_service/api/ai_enhance/text_process.py

This file was deleted.

1 change: 0 additions & 1 deletion infra_ai_service/api/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
api_router.include_router(
spec_repair_process, prefix="/spec-repair", tags=["repair"]
)
api_router.include_router(text_process_router, prefix="/text", tags=["text"])
api_router.include_router(
embedding_router, prefix="/embedding", tags=["embedding"]
)
Expand Down
28 changes: 0 additions & 28 deletions infra_ai_service/service/text_service.py

This file was deleted.

40 changes: 0 additions & 40 deletions tests/test_all.py

This file was deleted.

46 changes: 0 additions & 46 deletions tests/test_api.py

This file was deleted.

0 comments on commit 0ca32ad

Please sign in to comment.