-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
bd8ab70
to
9f7477e
Compare
9f7477e
to
6c6a5eb
Compare
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.
Also, let's add the capacity to use integration
tests
211f288
to
9727a47
Compare
return | ||
|
||
@requests(on='/search') | ||
def query(self, docs: DocumentArray, parameters: Dict = None, *args, **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.
I am not sure if it matches the signature
but maybe add Optional
to parameters type hint?
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.
Done
normalize: bool = False, | ||
nprobe: int = 1, | ||
dump_path: Optional[str] = None, | ||
traverse_path: str = 'r', |
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.
we have to agree if this is default_traversal_path
or what, but we should be consistent. Also this should be a Union[str, List[str]]
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.
That's why we should actually have another class, Indexer
to do this consistently.
I'll name it default_
for this
return 0 | ||
|
||
@requests(on='/fill_embedding') | ||
def fill_embedding(self, query_da: DocumentArray, **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.
this should be called docs
as per any function of any executor that has an endpoint
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.
Good point
9727a47
to
9e57bc8
Compare
@JoanFM recheck |
normalize: bool = False, | ||
nprobe: int = 1, | ||
dump_path: Optional[str] = None, | ||
default_traversal_path: str = 'r', |
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.
it can be a List also
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.
ah yes, missed it
9e57bc8
to
aec6337
Compare
What do you mean? There are integration tests and they are always run in the CI |
Part of jina-ai/serve#2560