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

update: analyticdb+postgresql vectore #74

Closed
wants to merge 6 commits into from

Conversation

sincerity-being
Copy link
Contributor

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

add analyticdb api

Describe how to verify it

use springboot test

Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Oct 28, 2024

CLA assistant check
All committers have signed the CLA.

@chickenlj
Copy link
Collaborator

Please run mvn spring-javaformat:validate -pl spring-ai-alibaba-core to reformat code.


private RedisClientService redisClientService ;

public static AnalyticdbVector getInstance(String collectionName, AnalyticdbConfig config) throws Exception {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possible to declare AnalyticdbVector as a spring bean?

}catch(Exception e){
logger.debug("create Analyticdb client error", e);
}
initialize();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some initialization can be moved to afterPropertiesSet method.

* @author HeYQ
* @version 1.0
* @ date 2024-10-23 20:29
* @ describe
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use @since instead. Delete @ describe if there's no actual description

}
}

public void create(List<Document> texts, List<List<Double>> embeddings) throws Exception {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This method is unnecessary, we should follow the interface pattern defined in VectoreStore by spring-ai.

@sincerity-being
Copy link
Contributor Author

pull once again

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