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

Improve extensibility of SimpleVectoreStore #1662

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants