fix:knowledge_init path

1.knowledge_init path
2.url embedding chunk
This commit is contained in:
aries_ckt
2023-07-03 16:09:18 +08:00
parent b831ee5863
commit 6b17a16bd0
2 changed files with 7 additions and 3 deletions

View File

@@ -3,12 +3,12 @@
import argparse
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from pilot.embedding_engine.knowledge_type import KnowledgeType
from pilot.openapi.knowledge.knowledge_service import KnowledgeService
from pilot.openapi.knowledge.request.knowledge_request import KnowledgeSpaceRequest
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from pilot.configs.config import Config
from pilot.configs.model_config import (