Collection Serve API¶
build_field_index()
¶
Build the index of a field.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
build_index()
¶
Build the index of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
collection_shape()
¶
Get the shape of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
get_collection_config()
¶
Get the configuration of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
get_collection_path()
¶
Get the path of a database.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
get_collection_status_report()
¶
Get the status report of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
get_commit_msg()
¶
Get the commit message of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
head()
¶
Get the first n items of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
index_mode()
¶
Get the index mode of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
is_collection_exists()
¶
Check if a collection exists.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
is_id_exists()
¶
Check if an ID exists in the database.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
list_field_index()
¶
List all field indexes of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
list_fields()
¶
List all fields of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
max_id()
¶
Get the maximum ID in the collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
query()
¶
Query the database.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
query_vectors()
¶
Query the database.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
read_by_only_id()
¶
Read the item by only id.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
remove_all_field_indices()
¶
Remove all field indices of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
remove_field_index()
¶
Remove the index of a field.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
remove_index()
¶
Remove the index of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
search()
¶
Search the database for the vectors most similar to the given vector.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
show_collections()
¶
Show all collections in the database.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
show_collections_details()
¶
Show all collections in the database with details.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
tail()
¶
Get the last n items of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
update_collection_description()
¶
Update the description of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
update_commit_msg()
¶
Save the commit message of a collection.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |
Source code in lynse/api/http_api/http_api/collection_ops.py
update_description()
¶
Update the description of the database.
Returns:
Name | Type | Description |
---|---|---|
dict |
The status of the operation. |