-
Notifications
You must be signed in to change notification settings - Fork 682
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
PGVector, remove by ID, same impl as #1020 but on top of last dev. #1113
Conversation
@langchain4j , @nottyjay, this is the same impl as #1020 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@humcqc thanks a lot!
...-pgvector/src/main/java/dev/langchain4j/store/embedding/pgvector/PgVectorEmbeddingStore.java
Outdated
Show resolved
Hide resolved
langchain4j-core/src/main/java/dev/langchain4j/store/embedding/EmbeddingStore.java
Outdated
Show resolved
Hide resolved
langchain4j-core/src/main/java/dev/langchain4j/store/embedding/EmbeddingStore.java
Outdated
Show resolved
Hide resolved
langchain4j-core/src/main/java/dev/langchain4j/store/embedding/EmbeddingStore.java
Show resolved
Hide resolved
langchain4j-core/src/main/java/dev/langchain4j/store/embedding/EmbeddingStore.java
Show resolved
Hide resolved
langchain4j-core/src/main/java/dev/langchain4j/store/embedding/EmbeddingStore.java
Show resolved
Hide resolved
LGTM, but I'll let @jmartisk comment further since he has interacted with the |
langchain4j-core/src/main/java/dev/langchain4j/store/embedding/EmbeddingStore.java
Show resolved
Hide resolved
...-pgvector/src/main/java/dev/langchain4j/store/embedding/pgvector/PgVectorEmbeddingStore.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@humcqc thanks a lot!
I will merge it now and do some changes in a separate commit, as I can't push changes to your fork.
humm, I had the review fixes in my local repo waiting for the answer on my last comment:: @langchain4j , @jmartisk WDYT about: |
@humcqc my bad, pardon! I have changed it so that null/empty ids/filter are not valid inputs. |
No pb! if the current version is ok for you it's ok for me.
:) My bad so, didn't notice the pending stuff, I was a little bit frustrated to not have answers :) |
@humcqc yeah, I made this mistake many times 😆 You need to go to files changed -> review changes -> submit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) a little bit late :)
*/ | ||
@Override | ||
public List<String> removeAll(List<String> ids) { | ||
return ids.stream().filter(this::remove).collect(Collectors.toList()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be enhance with batch processing or in a single request if we just use a boolean in return.
same impl as #1020 but on top of last dev.