Skip to content

Comments

Тесты по векторному поиску#201

Merged
Kirill67tyar merged 4 commits intomainfrom
feature/tests-extended-async-api
Aug 2, 2025
Merged

Тесты по векторному поиску#201
Kirill67tyar merged 4 commits intomainfrom
feature/tests-extended-async-api

Conversation

@Kirill67tyar
Copy link
Collaborator

2 теста по векторному поиску

@Kirill67tyar Kirill67tyar requested review from Potatoes3212 and taaylor and removed request for taaylor August 1, 2025 21:01
Comment on lines 40 to 50
for i, embd in enumerate(embeddings_near_vectors):
embd[i] = 1.0
for before_index in range(i):
embd[before_index] = 0.9
uuids_and_near_vectors = list(zip(film_uuids_for_near_embedding, embeddings_near_vectors))
embeddings_far_vectors = [
[round(random.random(), 3) * random.choice([-1, 1]) for _ in range(384)]
for _ in range(len(film_uuids_for_far_embedding))
]
uuids_and_far_vectors = list(zip(film_uuids_for_far_embedding, embeddings_far_vectors))
return uuids_and_near_vectors + uuids_and_far_vectors
Copy link
Collaborator

Choose a reason for hiding this comment

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

Понял, что тут происходит. Но было сложно)
Можешь плиз чуть комментариев добавить, чтобы потом каждый раз заново не разбираться?

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

@Potatoes3212 Potatoes3212 left a comment

Choose a reason for hiding this comment

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

Интересная логика теста, действительно хоро проверяет.

Copy link
Owner

@taaylor taaylor left a comment

Choose a reason for hiding this comment

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

Все кайф! Спасибо

@Kirill67tyar Kirill67tyar merged commit fb1668e into main Aug 2, 2025
5 checks passed
@Kirill67tyar Kirill67tyar deleted the feature/tests-extended-async-api branch August 2, 2025 18:02
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.

3 participants