Skip to content

Conversation

@jxblum
Copy link
Contributor

@jxblum jxblum commented Nov 4, 2024

Additionally:

  • Throw IllegalArgumentException instead of NullPointerException from constructor for null EmbeddingModel.
  • Delegate Documentation embedding generation to embed(:Document) method called by doAdd(:Document).
  • Break doSimilaritySearch(:SearchRequest) method into discrete, overridable operations.
  • Implement load(:File) in terms of load(:Resource) using a FileSystemResource.
  • Hide implementation details of EmbeddedMath dotProduct(..) and norm(..) methods.
  • Use more meaningful and descriptive variable names.
  • Simplify Exception handling in save(:File).
  • Add whitespace to improve readability.
  • Fix compiler warnings.
jxblum added a commit to jxblum/spring-ai that referenced this pull request Nov 4, 2024
Additionally: * Throw IllegalArgumentException instead of NullPointerException from constructor for null EmbeddingModel. * Delegate Documentation embedding generation to embed(:Document) method called by doAdd(:Document). * Break doSimilaritySearch(:SearchRequest) method into discrete, overridable operations. * Implement load(:File) in terms of load(:Resource) using a FileSystemResource. * Hide implementation details of EmbeddedMath dotProduct(..) and norm(..) methods. * Use more meaningful and descriptive variable names. * Add whitespace to improve readability. * Fix compiler warnings. Closes spring-projects#1662
Additionally: * Throw IllegalArgumentException instead of NullPointerException from constructor for null EmbeddingModel. * Delegate Documentation embedding generation to embed(:Document) method called by doAdd(:Document). * Break doSimilaritySearch(:SearchRequest) method into discrete, overridable operations. * Implement load(:File) in terms of load(:Resource) using a FileSystemResource. * Hide implementation details of EmbeddedMath dotProduct(..) and norm(..) methods. * Use more meaningful and descriptive variable names. * Simplify Exception handling in save(:File). * Add whitespace to improve readability. * Fix compiler warnings. Closes spring-projects#1662
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants