Home / Function/ embed_documents() — langchain Function Reference

embed_documents() — langchain Function Reference

Architecture documentation for the embed_documents() function in embeddings.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a054a7f3_c61b_f844_c3fa_603487684a6a["embed_documents()"]
  05a5ceb6_bb67_31c9_56dc_02ecd3bcd54c["FireworksEmbeddings"]
  a054a7f3_c61b_f844_c3fa_603487684a6a -->|defined in| 05a5ceb6_bb67_31c9_56dc_02ecd3bcd54c
  a3b5d131_3f6a_fea9_c9d9_afa9affb5436["embed_query()"]
  a3b5d131_3f6a_fea9_c9d9_afa9affb5436 -->|calls| a054a7f3_c61b_f844_c3fa_603487684a6a
  style a054a7f3_c61b_f844_c3fa_603487684a6a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/fireworks/langchain_fireworks/embeddings.py lines 98–103

    def embed_documents(self, texts: list[str]) -> list[list[float]]:
        """Embed search docs."""
        return [
            i.embedding
            for i in self.client.embeddings.create(input=texts, model=self.model).data
        ]

Domain

Subdomains

Called By

Frequently Asked Questions

What does embed_documents() do?
embed_documents() is a function in the langchain codebase, defined in libs/partners/fireworks/langchain_fireworks/embeddings.py.
Where is embed_documents() defined?
embed_documents() is defined in libs/partners/fireworks/langchain_fireworks/embeddings.py at line 98.
What calls embed_documents()?
embed_documents() is called by 1 function(s): embed_query.

Analyze Your Own Codebase

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

Try Supermodel Free