-
Notifications
You must be signed in to change notification settings - Fork 138
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
update interface and version for fastembed #340
Conversation
generall
commented
Oct 16, 2023
- Allow iterators in fastembed
- Update to v0.1.1
- Allow parallel inference
vector_name = self.get_vector_field_name() | ||
for idx, meta, (doc, vector) in zip(ids, metadata, encoded_docs): | ||
ids_accumulator.append(idx) | ||
payload = {"document": doc, **meta} |
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.
if you get picky, here we can actually overwrite "document" if meta
has such a field
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.
yes, I also don't like this, but we can't change it anymore
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.
somehow missed it in last release
hnsw_config=hnsw_config, | ||
) | ||
} | ||
|
||
def add( |
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.
return type is not updated in the docstring
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.
check
collection_name=collection_name, | ||
records=records, | ||
wait=True, | ||
parallel=parallel or 1, |
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.
don't we want to propagate batch_size
here?
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.
check
* update interface and version for fastembed * fix types * fix types * regen async * use python 3.11 to check compatibility * fix docstring * regen async * propagate batch size