[go: nahoru, domu]

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

(improvement)(headless) Remove the addCollection method from EmbeddingService. #1259

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
*/
public interface EmbeddingService {

void addCollection(String collectionName);

void addQuery(String collectionName, List<TextSegment> queries);

void deleteQuery(String collectionName, List<TextSegment> queries);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ public class EmbeddingServiceImpl implements EmbeddingService {
@Autowired
private EmbeddingModel embeddingModel;

public synchronized void addCollection(String collectionName) {
embeddingStoreFactory.create(collectionName);
}

@Override
public void addQuery(String collectionName, List<TextSegment> queries) {
EmbeddingStore embeddingStore = embeddingStoreFactory.create(collectionName);
Expand Down
Loading