-
Notifications
You must be signed in to change notification settings - Fork 1
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
28 neighbors hnsw index building floats #51
base: main
Are you sure you want to change the base?
Conversation
f82828b
to
49006aa
Compare
# Conflicts: # src/main/kotlin/ru/itmo/stand/service/impl/neighbours/indexing/VectorIndexBuilder.kt
# Conflicts: # build.gradle.kts
src/main/kotlin/ru/itmo/stand/service/bert/CustomEmbeddingBatchTranslator.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/ru/itmo/stand/service/bert/CustomEmbeddingBatchTranslator.kt
Outdated
Show resolved
Hide resolved
indices[i], | ||
) | ||
if (normalize) { | ||
array = array.normalize(2.0, 0) |
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.
что такое 2 и 0?
можно описать переменными, чтобы из кода была понятно
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.
Хотел бы я сам знать, это в самой либе был)
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.
ctx.setAttachment("encoding", encoding) | ||
ctx.setAttachment("index", input?.middleTokenIndex) | ||
ctx.setAttachment("pooling", input?.pooling) | ||
return encoding.toNDList(ctx.ndManager, false) |
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.
что такое false?
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.
тоже без понятия, взято из оригинала)
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.
src/main/kotlin/ru/itmo/stand/service/bert/CustomEmbeddingTranslator.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/ru/itmo/stand/service/bert/CustomEmbeddingTranslatorFactory.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/ru/itmo/stand/service/impl/neighbours/indexing/DocumentEmbeddingCreator.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/ru/itmo/stand/service/impl/neighbours/indexing/WindowedTokenCreator.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # src/main/kotlin/ru/itmo/stand/service/impl/neighbours/indexing/InvertedIndexBuilder.kt # src/main/kotlin/ru/itmo/stand/service/impl/neighbours/indexing/VectorIndexBuilder.kt # src/main/kotlin/ru/itmo/stand/service/impl/neighbours/search/NeighboursSearcher.kt
No description provided.