move output parsing (#1605)

This commit is contained in:
Harrison Chase
2023-03-11 16:41:03 -08:00
committed by GitHub
parent cb04ba0136
commit c9b5a30b37
14 changed files with 130 additions and 76 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# flake8: noqa
from langchain.prompts.base import CommaSeparatedListOutputParser
from langchain.output_parsers.list import CommaSeparatedListOutputParser
from langchain.prompts.prompt import PromptTemplate
_DEFAULT_TEMPLATE = """Given an input question, first create a syntactically correct {dialect} query to run, then look at the results of the query and return the answer. Unless the user specifies in his question a specific number of examples he wishes to obtain, always limit your query to at most {top_k} results. You can order the results by a relevant column to return the most interesting examples in the database.