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

Get and delete embeddings space #20

Merged
merged 11 commits into from
Sep 1, 2023
Merged

Conversation

juanjoman
Copy link
Member

@juanjoman juanjoman commented Aug 31, 2023

Merge this first -> #16

Fetch Pinecone API -> https://docs.pinecone.io/reference/fetch

Delete Pinecone API -> https://docs.pinecone.io/reference/delete_post

@juanjoman juanjoman changed the base branch from main to embeddings_space_component August 31, 2023 10:08
@juanjoman
Copy link
Member Author

juanjoman commented Aug 31, 2023

Missing: Pinecone store unit tests - working on it unless there's another priority

Base automatically changed from embeddings_space_component to main August 31, 2023 13:26
Copy link
Member

@mnlx mnlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with mockito, but the rest looks good!

Lombok makes things so much simpler! Nice job all around 👍

Copy link
Member

@javiertoledo javiertoledo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loved it. Great code and excellent tests! 🚀

Just left a couple of notes and questions.

docs-site/docs/03_components/01_core_abstractions.md Outdated Show resolved Hide resolved
docs-site/docs/03_components/01_core_abstractions.md Outdated Show resolved Hide resolved

@RequiredArgsConstructor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😲

Comment on lines +20 to +27
@Mock
private EmbeddingsGenerationModel embeddingsGenerationModel;
@Mock
private EmbeddingsStore embeddingsStore;
@InjectMocks
private EmbeddingsSpaceComponent embeddingsSpaceComponent;
@Captor
private ArgumentCaptor<String> sampleTextCaptor;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful tests, loved them! So much to learn from them... I'll try to mimic your style in the core abstraction tests once this PR is merged 🚀

Comment on lines +9 to +15
@Data
public class DeleteVectorSchema {
private final List<UUID> ids;
private boolean deleteAll;
private String namespace;
private Map<String, String> filterMetadata;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this @Dataannotation serves the same purpose as Java records. What would you consider more idiomatic? I think it could be worth deciding on one or the other and using a unique and consistent style in the whole project 😜

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooh I just checked and they are almost the same. In this case @DaTa includes @requiredargsconstructor, which creates a constructor only for final properties. For now we just need the list of ids, so we can keep it like it is or create a record that only contains this list for now, what do you think is the best approach? @javiertoledo

@juanjoman juanjoman merged commit 80e99c3 into main Sep 1, 2023
1 of 2 checks passed
@juanjoman juanjoman deleted the get_delete_embeddings_space branch September 1, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants