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

Introduce Vector abstraction #3194

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

Introduce Vector abstraction #3194

wants to merge 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Nov 4, 2024

A vector is a fixed-length array of non-null numeric values. Vectors are represent a point in a multidimensional space that is commonly used in machine learning and statistics.

Vector properties do not map cleanly to an existing class in the standard JDK Collections hierarchy. Vectors when used with embeddings (machine learning) represent an opaque point in the vector space that does not expose meaningful properties nor guarantees computational values to the outside world.

Recommended usage is in domain types:

class Article {
    
    Vector embedding;
}

Article article = new Article();
article.setEmbedding(Vector.of(embedding.getOutput()));

repositors.save(article);

Closes #3193

@mp911de mp911de added the type: enhancement A general enhancement label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce Vector abstraction
1 participant