increase sleep between adding documents and querying

This commit is contained in:
Chester Curme 2024-12-17 15:34:53 -05:00
parent a9816f7545
commit ea0da596f6

View File

@ -69,6 +69,6 @@ def test_vector_store(
) -> None: ) -> None:
vectorstore = PineconeVectorStore(index_name=INDEX_NAME, embedding=embd_client) vectorstore = PineconeVectorStore(index_name=INDEX_NAME, embedding=embd_client)
vectorstore.add_documents([Document("Hello, world!"), Document("This is a test.")]) vectorstore.add_documents([Document("Hello, world!"), Document("This is a test.")])
time.sleep(5) time.sleep(20)
resp = vectorstore.similarity_search(query="hello") resp = vectorstore.similarity_search(query="hello")
assert len(resp) == 2 assert len(resp) == 2