Skip to content
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

Open
wants to merge 36 commits into
base: main
Choose a base branch
from

Conversation

asmetliness
Copy link
Collaborator

No description provided.

@viacheslav-dobrynin viacheslav-dobrynin force-pushed the 28-neighbors-hnsw-index-building-process-in-memory branch 8 times, most recently from f82828b to 49006aa Compare April 7, 2023 19:18
Base automatically changed from 28-neighbors-hnsw-index-building-process-in-memory to main April 7, 2023 19:38
abramovich added 3 commits April 22, 2023 11:34
# Conflicts:
#	src/main/kotlin/ru/itmo/stand/service/impl/neighbours/indexing/VectorIndexBuilder.kt
indices[i],
)
if (normalize) {
array = array.normalize(2.0, 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

что такое 2 и 0?
можно описать переменными, чтобы из кода была понятно

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хотел бы я сам знать, это в самой либе был)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

судя по всему 2 - это p для Lp нормы, то есть в нашем случае L2 нормализация используется, а 0 - dim)

ctx.setAttachment("encoding", encoding)
ctx.setAttachment("index", input?.middleTokenIndex)
ctx.setAttachment("pooling", input?.pooling)
return encoding.toNDList(ctx.ndManager, false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

что такое false?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тоже без понятия, взято из оригинала)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

кажется, это withTokenType

abramovich and others added 3 commits April 30, 2023 17:56
@viacheslav-dobrynin
Copy link
Collaborator

image

в серчере какие-то проблемы

asmetliness and others added 8 commits April 30, 2023 20:44
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants