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

added convenience methods to Embedding: #498

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

Conversation

langchain4j
Copy link
Owner

@langchain4j langchain4j commented Jan 10, 2024

  • magnitude()
  • cosineSimilarity(Embedding)
  • relevanceScore(Embedding)
  • from(List<Float>) -> from(List<? extends Number>)

- magnitude()
- cosineSimilarity(Embedding)
- relevanceScore(Embedding)
- from(List<Float>) -> from(List<Number>)
crutcher
crutcher previously approved these changes Jan 10, 2024
- magnitude()
- cosineSimilarity(Embedding)
- relevanceScore(Embedding)
- from(List<Float>) -> from(List<Number>)
@langchain4j langchain4j added the P3 Medium priority label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants