-
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
Primary documents #87
base: main
Are you sure you want to change the base?
Conversation
@@ -39,14 +41,27 @@ class InvertedIndex(private val standProperties: StandProperties) : LuceneReposi | |||
entities.forEach { save(it) } | |||
} | |||
|
|||
fun findByTokens(tokens: Collection<String>): Sequence<NeighboursDocument> { |
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.
@@ -68,6 +68,7 @@ class InvertedIndexBuilder( | |||
documentEmbeddingRepository.findByDocId(docId).embedding | |||
} | |||
NeighboursDocument( | |||
token = contextualizedEmbedding.tokenWithEmbeddingId.split(ContextualizedEmbedding.TOKEN_AND_EMBEDDING_ID_SEPARATOR).first(), |
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.
выглядит кривовато, что мы одно поле парсим и в тот же объект складываем результат.
как proof of concept норм
но думаю, если решим мержить, то можно что-нибудь придумать с этим
No description provided.