Change RunnableMap to RunnableParallel for consistency (#14142)

- **Description:** Change instances of RunnableMap to RunnableParallel,
as that should be the one used going forward. This makes it consistent
across the codebase.
This commit is contained in:
Alex Kira
2023-12-01 13:36:40 -08:00
committed by GitHub
parent 96f6b90349
commit 0caef3cde7
13 changed files with 37 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ from langchain.schema.runnable import (
ConfigurableField,
RunnableBranch,
RunnableLambda,
RunnableMap,
RunnableParallel,
RunnablePassthrough,
)
from langchain.schema.runnable.utils import ConfigurableFieldSingleOption
@@ -133,7 +133,7 @@ class ChatHistory(BaseModel):
question: str
_inputs = RunnableMap(
_inputs = RunnableParallel(
{
"question": lambda x: x["question"],
"chat_history": lambda x: _format_chat_history(x["chat_history"]),