Adds motorhead memory (#685)
This commit is contained in:
commit
6d6cc4609d
2 changed files with 10 additions and 0 deletions
|
|
@ -153,6 +153,8 @@ memories:
|
||||||
documentation: "https://python.langchain.com/docs/modules/memory/how_to/vectorstore_retriever_memory"
|
documentation: "https://python.langchain.com/docs/modules/memory/how_to/vectorstore_retriever_memory"
|
||||||
MongoDBChatMessageHistory:
|
MongoDBChatMessageHistory:
|
||||||
documentation: "https://python.langchain.com/docs/modules/memory/integrations/mongodb_chat_message_history"
|
documentation: "https://python.langchain.com/docs/modules/memory/integrations/mongodb_chat_message_history"
|
||||||
|
MotorheadMemory:
|
||||||
|
documentation: "https://python.langchain.com/docs/integrations/memory/motorhead_memory"
|
||||||
prompts:
|
prompts:
|
||||||
ChatMessagePromptTemplate:
|
ChatMessagePromptTemplate:
|
||||||
documentation: "https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/msg_prompt_templates"
|
documentation: "https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/msg_prompt_templates"
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,14 @@ class MemoryFrontendNode(FrontendNode):
|
||||||
field.show = False
|
field.show = False
|
||||||
field.required = False
|
field.required = False
|
||||||
|
|
||||||
|
if name == "MotorheadMemory":
|
||||||
|
if field.name == "chat_memory":
|
||||||
|
field.show = False
|
||||||
|
field.required = False
|
||||||
|
elif field.name == "client_id":
|
||||||
|
field.show = True
|
||||||
|
field.advanced = False
|
||||||
|
|
||||||
|
|
||||||
class PostgresChatMessageHistoryFrontendNode(MemoryFrontendNode):
|
class PostgresChatMessageHistoryFrontendNode(MemoryFrontendNode):
|
||||||
name: str = "PostgresChatMessageHistory"
|
name: str = "PostgresChatMessageHistory"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue