Skip to content

Commit

Permalink
better format
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Nov 17, 2023
1 parent 71ca2b0 commit 2c9a0d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion document_stores/elasticsearch/tests/test_document_store.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# SPDX-FileCopyrightText: 2023-present Silvano Cerza <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0

# ruff: noqa: S311

import random
from typing import List
from unittest.mock import patch
Expand Down Expand Up @@ -316,7 +319,7 @@ def test_embedding_retrieval_pagination(self, docstore: ElasticsearchDocumentSto
Test that handling of pagination works as expected, when the matching documents are > 10.
"""

docs = [Document(content=f"Document {i}", embedding=[random.random() for _ in range(4)]) for i in range(20)] # noqa: S311
docs = [Document(content=f"Document {i}", embedding=[random.random() for _ in range(4)]) for i in range(20)]

docstore.write_documents(docs)
results = docstore._embedding_retrieval(query_embedding=[0.1, 0.1, 0.1, 0.1], top_k=11, filters={})
Expand Down

0 comments on commit 2c9a0d1

Please sign in to comment.