| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
…ctor-hnswlib-performance
Codecov ReportPatch coverage: 76.59% and project coverage change: -0.01% ⚠️ Additional details and impacted files @@ Coverage Diff @@
## main #1727 +/- ##
==========================================
- Coverage 84.46% 84.45% -0.01%
==========================================
Files 134 134
Lines 8798 8834 +36
==========================================
+ Hits 7431 7461 +30
- Misses 1367 1373 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
…ctor-hnswlib-performance
…ay/docarray into refactor-hnswlib-performance Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
…into refactor-hnswlib-performance
…ctor-hnswlib-performance
Signed-off-by: Joan Fontanals Martinez <joan.martinez@jina.ai>
|
📝 Docs are deployed on https://ft-refactor-hnswlib-performance--jina-docs.netlify.app 🎉 |
Sorry, something went wrong.
| rows = self._execute_filter(filter_query=filter_query, limit=limit) | ||
| return DocList[self.out_schema](self._doc_from_bytes(blob) for _, blob in rows) # type: ignore[name-defined] | ||
| hashed_ids = [doc_id for doc_id, _ in rows] | ||
| embeddings: OrderedDict[str, list] = OrderedDict() |
There was a problem hiding this comment.
Why specifically OrderedDict? I think normal dict in python will already be ordered by default
Sorry, something went wrong.
There was a problem hiding this comment.
I would still like to be specific about the requirement for order
Sorry, something went wrong.
There was a problem hiding this comment.
do we have any measure on how much faster hnsw works now?
Sorry, something went wrong.
| self._hnsw_indices[col_name] = self._create_index(col_name, col) | ||
| self._logger.info(f'Created a new index for column `{col_name}`') | ||
| if self._hnsw_indices[col_name].space == 'cosine': | ||
| cosine_metric_index_exist = True |
There was a problem hiding this comment.
why do we care about this?
Sorry, something went wrong.
There was a problem hiding this comment.
Because for cosine, HNSWLib normalizes the vectors, and then if we retrieve, they have chanded, so no consistent API can be provided
Sorry, something went wrong.
We have observed around 10% improvement |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.