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

[Feature] Redis embedding store spring boot starter #2

Merged
merged 14 commits into from
Jul 2, 2024

Conversation

Martin7-1
Copy link
Contributor

Hi, I add langchian4j-redis-spring-boot-starter implementation. Test run correct in my local environment.

btw, I'll add spring boot starters to the other vector stores in a few days. Waiting for your code reviews!

Copy link
Owner

@langchain4j langchain4j left a comment

Choose a reason for hiding this comment

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

@Martin7-1 thank you a lot and so sorry for the late review, somehow I overlooked PRs in this repository :(

langchain4j-redis-spring-boot-starter/pom.xml Outdated Show resolved Hide resolved
"langchain4j.redis.metadataFieldsName=test-key"
)
.run(context -> {
EmbeddingStore<TextSegment> embeddingStore = context.getBean(RedisEmbeddingStore.class);
Copy link
Owner

Choose a reason for hiding this comment

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

I would also add a check that context.getBean(EmbeddingStore.class) returns RedisEmbeddingStore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The next line of code check it by assertThat(embeddingStore).isInstanceOf(RedisEmbeddingStore.class).

pom.xml Outdated Show resolved Hide resolved
@Martin7-1
Copy link
Contributor Author

@langchain4j Hi! I've been done it with adding default dimension by EmbeddingModel.dimension().

@Martin7-1 Martin7-1 changed the title Redis embedding store spring boot starter [Feature] Redis embedding store spring boot starter Jun 22, 2024
Copy link
Owner

@langchain4j langchain4j left a comment

Choose a reason for hiding this comment

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

@Martin7-1 thank you!

@langchain4j langchain4j merged commit ec2fc73 into langchain4j:main Jul 2, 2024
1 of 5 checks passed
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.

2 participants