mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
notebook fmt (#12498)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
from sql_ollama.chain import chain
|
||||
|
||||
__all__ = ["chain"]
|
||||
__all__ = ["chain"]
|
||||
|
@@ -83,12 +83,16 @@ prompt_response = ChatPromptTemplate.from_messages(
|
||||
]
|
||||
)
|
||||
|
||||
# Supply the input types to the prompt
|
||||
|
||||
# Supply the input types to the prompt
|
||||
class InputType(BaseModel):
|
||||
question: str
|
||||
|
||||
|
||||
chain = (
|
||||
RunnablePassthrough.assign(query=sql_response_memory).with_types(input_type=InputType)
|
||||
RunnablePassthrough.assign(query=sql_response_memory).with_types(
|
||||
input_type=InputType
|
||||
)
|
||||
| RunnablePassthrough.assign(
|
||||
schema=get_schema,
|
||||
response=lambda x: db.run(x["query"]),
|
||||
|
Reference in New Issue
Block a user