-
Notifications
You must be signed in to change notification settings - Fork 1
Docker Compose (fastapi, milvus) logic #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
class ComposeEnv: | ||
|
||
def __init__(self): | ||
self.__resource = ComposeExecutor() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
def has_collection(name_collect: str = "hello_milvus"): | ||
has = utility.has_collection(name_collect) | ||
|
||
return f"Does collection hello_milvus exist in Milvus: {has}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add list() collections
rng.random((num_entities, dim)), # field embeddings, supports numpy.ndarray and list | ||
] | ||
vectors_to_search = entities[-1][-2:] | ||
search_params = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add this as kwargs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as json
Approved! Nice work |
Docker Compose (fastapi, milvus) logic
New logic for compose env