Skip to content

Commit

Permalink
Add langchain comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HHousen committed Aug 1, 2023
1 parent ea1c504 commit e1773cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vocode/streaming/vector_db/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ async def add_texts(
Returns:
List of ids from adding the texts into the vectorstore.
"""
# Adapted from: langchain/vectorstores/pinecone.py. Made langchain implementation async.
if namespace is None:
namespace = ""
# Embed and create the documents
Expand Down Expand Up @@ -89,6 +90,7 @@ async def similarity_search_with_score(
Returns:
List of Documents most similar to the query and score for each
"""
# Adapted from: langchain/vectorstores/pinecone.py. Made langchain implementation async.
if namespace is None:
namespace = ""
query_obj = self._embedding_function(query)
Expand Down

0 comments on commit e1773cb

Please sign in to comment.