manual mapping (#14422)

This commit is contained in:
Harrison Chase
2023-12-08 16:29:33 -08:00
committed by GitHub
parent c24f277b7c
commit f5befe3b89
48 changed files with 1094 additions and 194 deletions

View File

@@ -1,6 +1,6 @@
from __future__ import annotations
from typing import Literal
from typing import List, Literal
from langchain_core.load.serializable import Serializable
from langchain_core.pydantic_v1 import Field
@@ -21,3 +21,8 @@ class Document(Serializable):
def is_lc_serializable(cls) -> bool:
"""Return whether this class is serializable."""
return True
@classmethod
def get_lc_namespace(cls) -> List[str]:
"""Get the namespace of the langchain object."""
return ["langchain", "schema", "document"]