-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add fastembed image models #613
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for poetic-froyo-8baba7 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
qdrant_client/fastembed_common.py
Outdated
@@ -10,5 +10,6 @@ class QueryResponse(BaseModel, extra="forbid"): # type: ignore | |||
embedding: Optional[List[float]] | |||
sparse_embedding: Optional[SparseVector] = Field(default=None) | |||
metadata: Dict[str, Any] | |||
document: str | |||
document: Optional[str] = None | |||
path: Optional[str] = None |
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.
image_path?
qdrant_client/qdrant_fastembed.py
Outdated
else {} | ||
) | ||
|
||
SUPPORTED_EMBEDDING_MODELS = { |
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 think we can remove this
qdrant_client/qdrant_fastembed.py
Outdated
@@ -37,13 +52,14 @@ | |||
class QdrantFastembedMixin(QdrantBase): | |||
DEFAULT_EMBEDDING_MODEL = "BAAI/bge-small-en" | |||
|
|||
embedding_models: Dict[str, "TextEmbedding"] = {} | |||
embedding_models: Dict[str, Union["ImageEmbedding", "TextEmbedding"]] = {} |
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.
let's separate into different fields
qdrant_client/qdrant_fastembed.py
Outdated
**kwargs: Any, | ||
) -> "TextEmbedding": | ||
) -> Union["ImageEmbedding", "TextEmbedding"]: |
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 use different methods
qdrant_client/qdrant_fastembed.py
Outdated
metadata: Optional[Iterable[Dict[str, Any]]] = None, | ||
ids: Optional[Iterable[models.ExtendedPointId]] = None, | ||
batch_size: int = 32, | ||
parallel: Optional[int] = None, | ||
images: Optional[Iterable[Union[str, Path]]] = None, |
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.
let's move next to docs
Let's postpone this integration jet, I might have some different idea to consider |
No description provided.