Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying committed Oct 16, 2024
1 parent bf922b5 commit b0f5759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/rag/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from petercat_utils.db.client.supabase import get_client

from petercat_utils.data_class import (
GitDocConfig,
RAGGitDocConfig,
RAGGitIssueConfig,
TaskType,
)
Expand All @@ -28,7 +28,7 @@


@router.post("/rag/add_knowledge_by_doc", dependencies=[Depends(verify_rate_limit)])
def add_knowledge_by_doc(config: GitDocConfig):
def add_knowledge_by_doc(config: RAGGitDocConfig):
try:
result = retrieval.add_knowledge_by_doc(config)
if result:
Expand Down Expand Up @@ -68,7 +68,7 @@ def search_knowledge(query: str, repo_name: str, filter: dict = {}):


@router.post("/rag/add_git_doc_task", dependencies=[Depends(verify_rate_limit)])
def add_git_doc_task(config: GitDocConfig):
def add_git_doc_task(config: RAGGitDocConfig):
try:
data = git_doc_task.add_rag_git_doc_task(config)
return data
Expand Down

0 comments on commit b0f5759

Please sign in to comment.