Skip to content

Commit cedf614

Browse files
pymilvus-botjeis4wpiXuanYang-cn
authored
[Backport 2.6] Propose fix some typos and ignore emacs backup files (#3131) (#3145)
Backport of #3131 to `2.6`. Signed-off-by: John E <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: John Eismeier <[email protected]> Co-authored-by: XuanYang-cn <[email protected]>
1 parent 80dd3a1 commit cedf614

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
.vscode
66

7+
*~
8+
79
# Python files
810
*.pyc
911
dist

docs/source/api/connections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Constructor
1515
+-----------------------------------------+---------------------------------------------------------------------------------+
1616
| Constructor | Description |
1717
+=========================================+=================================================================================+
18-
| `Connections() <#pymilvus.Connection>`_ | A singleton class used to manage connections and correspoinding configurations. |
18+
| `Connections() <#pymilvus.Connection>`_ | A singleton class used to manage connections and corresponding configurations. |
1919
+-----------------------------------------+---------------------------------------------------------------------------------+
2020

2121

docs/source/api/partition.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Partition
55
A partition is a group of entities in one collection with the same label. Entities inserted without a label
66
will be tagged a default label by milvus.
77

8-
Partition is managable, which means managing a group of entities with the same label in one collection.
8+
Partition is manageable, which means managing a group of entities with the same label in one collection.
99

1010
Constructor
1111
-----------
@@ -64,4 +64,3 @@ API Refereences
6464
.. autoclass:: pymilvus.Partition
6565
:member-order: bysource
6666
:members: description, name, is_empty, num_entities, drop, load, release, insert, search, query, delete
67-

docs/source/tutorial.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Search Entities by Vector Similarity
143143

144144
You can get entities by vector similarity. Assuming there's a ``embedding_A``, and you want to get top 2 entities that are most similar with it.
145145

146-
In the example below, you can perfrom search based on vector similarity.
146+
In the example below, you can perform search based on vector similarity.
147147

148148
.. note:
149149
Before searching, you need to load this collection into memory.
@@ -210,4 +210,3 @@ Finally, you can drop an entire collection.
210210
Once you drop a collection, all the data in this collection will be dropped too.
211211

212212
>>> utility.drop_collection(tutorial.name)
213-

examples/customize_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@
5555

5656
print(fmt.format("Start query by specifying filtering expression"))
5757
query_results = milvus_client.query(collection_name, filter= "f == 600 or title == 't2'")
58-
for ret in query_results:
58+
for ret in query_results:
5959
print(ret)
6060

6161
rng = np.random.default_rng(seed=19530)
6262
vectors_to_search = rng.random((1, dim))
6363

64-
print(fmt.format(f"Start search with retrieve serveral fields."))
64+
print(fmt.format(f"Start search with retrieve several fields."))
6565
result = milvus_client.search(collection_name, vectors_to_search, limit=3, output_fields=["pk", "a", "b"])
6666
for hits in result:
6767
for hit in hits:

examples/customize_schema_auto_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@
5555

5656
print(fmt.format("Start query by specifying filtering expression"))
5757
query_results = milvus_client.query(collection_name, filter= "f == 600 or title == 't2'")
58-
for ret in query_results:
58+
for ret in query_results:
5959
print(ret)
6060

6161
rng = np.random.default_rng(seed=19530)
6262
vectors_to_search = rng.random((1, dim))
6363

64-
print(fmt.format(f"Start search with retrieve serveral fields."))
64+
print(fmt.format(f"Start search with retrieve several fields."))
6565
result = milvus_client.search(collection_name, vectors_to_search, limit=3, output_fields=["pk", "a", "b"])
6666
for hits in result:
6767
for hit in hits:

examples/customize_schema_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
rng = np.random.default_rng(seed=19530)
5454
vectors_to_search = rng.random((1, dim))
5555

56-
print(fmt.format(f"Start search with retrieve serveral fields."))
56+
print(fmt.format(f"Start search with retrieve several fields."))
5757
result = milvus_client.search(collection_name, vectors_to_search, limit=3, output_fields=["id"])
5858
for hits in result:
5959
for hit in hits:

examples/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060

6161
print(fmt.format("Start query by specifying filtering expression"))
6262
query_results = milvus_client.query(collection_name, filter= "f == 600 or title == 't2'")
63-
for ret in query_results:
63+
for ret in query_results:
6464
print(ret)
6565

6666
vectors_to_search = rng.random((1, dim))
67-
print(fmt.format(f"Start search with retrieve serveral fields."))
67+
print(fmt.format(f"Start search with retrieve several fields."))
6868
result = milvus_client.search(collection_name, vectors_to_search, limit=3, output_fields=["title"])
6969
for hits in result:
7070
for hit in hits:

examples/partition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676

7777
print(fmt.format("Start query by specifying filtering expression"))
7878
query_results = milvus_client.query(collection_name, filter= "f == 500")
79-
for ret in query_results:
79+
for ret in query_results:
8080
print(ret)
8181

82-
print(fmt.format(f"Start search with retrieve serveral fields."))
82+
print(fmt.format(f"Start search with retrieve several fields."))
8383
result = milvus_client.search(collection_name, vectors_to_search, limit=3, output_fields=["pk", "a", "b"])
8484
for hits in result:
8585
for hit in hits:

examples/simple.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
print(fmt.format("Start query by specifying filtering expression"))
5151
query_results = milvus_client.query(collection_name, filter= "f == 600")
52-
for ret in query_results:
52+
for ret in query_results:
5353
print(ret)
5454

5555

@@ -64,7 +64,7 @@
6464
rng = np.random.default_rng(seed=19530)
6565
vectors_to_search = rng.random((1, dim))
6666

67-
print(fmt.format(f"Start search with retrieve serveral fields."))
67+
print(fmt.format(f"Start search with retrieve several fields."))
6868
result = milvus_client.search(collection_name, vectors_to_search, limit=3, output_fields=["pk", "a", "b"])
6969
for hits in result:
7070
for hit in hits:

0 commit comments

Comments
 (0)