Files
DB-GPT/pilot/scene/chat_knowledge/v1/out_parser.py
aries_ckt fa73a4fae6 feat: new knowledge chat scene
1.add new knowledge chat scene
2.format file format
2023-06-27 16:50:16 +08:00

20 lines
521 B
Python

import json
import re
from abc import ABC, abstractmethod
from typing import Dict, NamedTuple
import pandas as pd
from pilot.utils import build_logger
from pilot.out_parser.base import BaseOutputParser, T
from pilot.configs.model_config import LOGDIR
logger = build_logger("webserver", LOGDIR + "DbChatOutputParser.log")
class NormalChatOutputParser(BaseOutputParser):
def parse_prompt_response(self, model_out_text) -> T:
return model_out_text
def get_format_instructions(self) -> str:
pass