Skip to content

Commit

Permalink
Updated Neo4jVector docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthomas93 committed Nov 5, 2024
1 parent de53c1f commit 1560da1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/neo4j/langchain_neo4j/vectorstores/neo4j_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,10 @@ def from_embeddings(
embeddings = OpenAIEmbeddings()
text_embeddings = embeddings.embed_documents(texts)
text_embedding_pairs = list(zip(texts, text_embeddings))
vectorstore = Neo4jVector.from_embeddings(text_embedding_pairs, embeddings)
vectorstore = Neo4jVector.from_embeddings(
text_embedding_pairs, embeddings
)
"""
texts = [t[0] for t in text_embeddings]
embeddings = [t[1] for t in text_embeddings]
Expand Down

0 comments on commit 1560da1

Please sign in to comment.