add_texts() — langchain Function Reference
Architecture documentation for the add_texts() function in qdrant.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c81b5f54_4d7b_ff69_0cd1_397bf595fdc2["add_texts()"] 671b47a0_cdd3_a89d_e90f_0631a4bd67d3["QdrantVectorStore"] c81b5f54_4d7b_ff69_0cd1_397bf595fdc2 -->|defined in| 671b47a0_cdd3_a89d_e90f_0631a4bd67d3 88421693_b7b6_8b4b_b6ab_bf2897b37dfe["from_texts()"] 88421693_b7b6_8b4b_b6ab_bf2897b37dfe -->|calls| c81b5f54_4d7b_ff69_0cd1_397bf595fdc2 e5f5df10_5f00_b3ee_ed57_3bff5ff2fd2d["_generate_batches()"] c81b5f54_4d7b_ff69_0cd1_397bf595fdc2 -->|calls| e5f5df10_5f00_b3ee_ed57_3bff5ff2fd2d style c81b5f54_4d7b_ff69_0cd1_397bf595fdc2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/qdrant/langchain_qdrant/qdrant.py lines 495–518
def add_texts( # type: ignore[override]
self,
texts: Iterable[str],
metadatas: list[dict] | None = None,
ids: Sequence[str | int] | None = None,
batch_size: int = 64,
**kwargs: Any,
) -> list[str | int]:
"""Add texts with embeddings to the `VectorStore`.
Returns:
List of ids from adding the texts into the `VectorStore`.
"""
added_ids = []
for batch_ids, points in self._generate_batches(
texts, metadatas, ids, batch_size
):
self.client.upsert(
collection_name=self.collection_name, points=points, **kwargs
)
added_ids.extend(batch_ids)
return added_ids
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does add_texts() do?
add_texts() is a function in the langchain codebase, defined in libs/partners/qdrant/langchain_qdrant/qdrant.py.
Where is add_texts() defined?
add_texts() is defined in libs/partners/qdrant/langchain_qdrant/qdrant.py at line 495.
What does add_texts() call?
add_texts() calls 1 function(s): _generate_batches.
What calls add_texts()?
add_texts() is called by 1 function(s): from_texts.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free