Home / Function/ _split_long_ai_text() — langchain Function Reference

_split_long_ai_text() — langchain Function Reference

Architecture documentation for the _split_long_ai_text() function in vectorstore_token_buffer_memory.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0abde399_34b3_8788_e081_d83cf5e5ea35["_split_long_ai_text()"]
  e472f8c6_6d6c_f2aa_40a7_070d289aca52["ConversationVectorStoreTokenBufferMemory"]
  0abde399_34b3_8788_e081_d83cf5e5ea35 -->|defined in| e472f8c6_6d6c_f2aa_40a7_070d289aca52
  24d4fdf9_df1a_abe6_fe3d_74a73febd9ca["_pop_and_store_interaction()"]
  24d4fdf9_df1a_abe6_fe3d_74a73febd9ca -->|calls| 0abde399_34b3_8788_e081_d83cf5e5ea35
  style 0abde399_34b3_8788_e081_d83cf5e5ea35 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/memory/vectorstore_token_buffer_memory.py lines 181–183

    def _split_long_ai_text(self, text: str) -> list[str]:
        splitter = RecursiveCharacterTextSplitter(chunk_size=self.split_chunk_size)
        return [chunk.page_content for chunk in splitter.create_documents([text])]

Subdomains

Frequently Asked Questions

What does _split_long_ai_text() do?
_split_long_ai_text() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/memory/vectorstore_token_buffer_memory.py.
Where is _split_long_ai_text() defined?
_split_long_ai_text() is defined in libs/langchain/langchain_classic/memory/vectorstore_token_buffer_memory.py at line 181.
What calls _split_long_ai_text()?
_split_long_ai_text() is called by 1 function(s): _pop_and_store_interaction.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free