test_document.py — langchain Source File
Architecture documentation for test_document.py, a python file in the langchain codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3c65b25f_35ac_b9aa_b384_d28d64753664["test_document.py"] c554676d_b731_47b2_a98f_c1c2d537c0aa["langchain_core.documents"] 3c65b25f_35ac_b9aa_b384_d28d64753664 --> c554676d_b731_47b2_a98f_c1c2d537c0aa style 3c65b25f_35ac_b9aa_b384_d28d64753664 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from langchain_core.documents import Document
def test_init() -> None:
for doc in [
Document(page_content="foo"),
Document(page_content="foo", metadata={"a": 1}),
Document(page_content="foo", id=None),
Document(page_content="foo", id="1"),
Document(page_content="foo", id=1),
]:
assert isinstance(doc, Document)
Domain
Subdomains
Functions
Dependencies
- langchain_core.documents
Source
Frequently Asked Questions
What does test_document.py do?
test_document.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What functions are defined in test_document.py?
test_document.py defines 1 function(s): test_init.
What does test_document.py depend on?
test_document.py imports 1 module(s): langchain_core.documents.
Where is test_document.py in the architecture?
test_document.py is located at libs/core/tests/unit_tests/documents/test_document.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/core/tests/unit_tests/documents).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free