fix run path

This commit is contained in:
csunny
2023-05-18 17:28:06 +08:00
parent b5139ea643
commit 9ddd089381
4 changed files with 24 additions and 7 deletions

View File

@@ -13,6 +13,11 @@ import requests
from urllib.parse import urljoin
from langchain import PromptTemplate
import os
import sys
ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(ROOT_PATH)
from pilot.configs.model_config import KNOWLEDGE_UPLOAD_ROOT_PATH, LLM_MODEL_CONFIG
from pilot.server.vectordb_qa import KnownLedgeBaseQA
@@ -30,6 +35,8 @@ from pilot.prompts.generator import PromptGenerator
from pilot.commands.exception_not_commands import NotCommands
from pilot.conversation import (
default_conversation,
conv_templates,