_join_docs() — langchain Function Reference
Architecture documentation for the _join_docs() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 20289806_e8d6_9514_562e_2bd46282553b["_join_docs()"] c86e37d5_f962_cc1e_9821_b665e1359ae8["TextSplitter"] 20289806_e8d6_9514_562e_2bd46282553b -->|defined in| c86e37d5_f962_cc1e_9821_b665e1359ae8 38fe665f_16f3_7590_557b_a39c4678e7f6["_merge_splits()"] 38fe665f_16f3_7590_557b_a39c4678e7f6 -->|calls| 20289806_e8d6_9514_562e_2bd46282553b style 20289806_e8d6_9514_562e_2bd46282553b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/text-splitters/langchain_text_splitters/base.py lines 146–150
def _join_docs(self, docs: list[str], separator: str) -> str | None:
text = separator.join(docs)
if self._strip_whitespace:
text = text.strip()
return text or None
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _join_docs() do?
_join_docs() is a function in the langchain codebase, defined in libs/text-splitters/langchain_text_splitters/base.py.
Where is _join_docs() defined?
_join_docs() is defined in libs/text-splitters/langchain_text_splitters/base.py at line 146.
What calls _join_docs()?
_join_docs() is called by 1 function(s): _merge_splits.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free