Skip to content

Commit

Permalink
Merge pull request #3 from Alonoparag/async-vectorstore
Browse files Browse the repository at this point in the history
Async vectorstore
  • Loading branch information
Alonoparag authored May 4, 2024
2 parents 144b277 + 2fbb124 commit 7c1bfa9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions libs/aws/langchain_aws/vectorstores/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@
Embeddings, Document
""" # noqa: E501
from langchain_aws.vectorstores.documentdb import (
DocumentDBVectorSearch, # noqa: F401
)
from langchain_aws.vectorstores.documentdb import DocumentDBVectorSearch # noqa: F401
4 changes: 2 additions & 2 deletions libs/aws/langchain_aws/vectorstores/documentdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class DocumentDBVectorSearch(VectorStore):
Example:
. code-block:: python
from langchain_community.vectorstores import DocumentDBVectorSearch
from langchain_community.embeddings.openai import OpenAIEmbeddings
from langchain_aws.vectorstores import DocumentDBVectorSearch
from langchain_aws.embeddings.openai import OpenAIEmbeddings
from pymongo import MongoClient
mongo_client = MongoClient("<YOUR-CONNECTION-STRING>")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def embedding_openai() -> Any:
"""
This is how to run the integration tests:
cd libs/community
cd libs/aws
make test TEST_FILE=tests/integration_tests/vectorstores/test_documentdb.py
NOTE: You will first need to follow the contributor setup steps:
Expand Down

0 comments on commit 7c1bfa9

Please sign in to comment.