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

Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore #619

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

humcqc
Copy link
Contributor

@humcqc humcqc commented May 23, 2024

Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore

Allow metadata filtering and remove features

@jmartisk @sebastienblanc @geoand @langchain4j this PR replaces #410

@humcqc humcqc requested a review from a team as a code owner May 23, 2024 20:26
.map(dl -> context.getInjectedReference(AgroalDataSource.class, dl))
.orElse(context.getInjectedReference(AgroalDataSource.class, new Default.Literal()));

dataSource.flush(AgroalDataSource.FlushMode.GRACEFUL);
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 first build failed, i think it's link to the fact we are using FlushMode.GRACEFUL, perhaps FlushMode.ALL will be better. WDYT ?

@geoand
Copy link
Collaborator

geoand commented May 24, 2024

Thanks for this!

I would like to do the update to 0.31 in #622, so once that is in, please rebase this PR onto it.

@geoand
Copy link
Collaborator

geoand commented May 24, 2024

#622 has been merged

@geoand geoand changed the title add PG Vector metadata filtering on top of new PGVector store from langchain4j 0.31.0 Add PG Vector metadata filtering on top of new PGVector store May 24, 2024
@geoand
Copy link
Collaborator

geoand commented May 24, 2024

Please rebase the PR onto the latest main so we can have a clean history.

Thanks

@humcqc humcqc changed the title Add PG Vector metadata filtering on top of new PGVector store Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore ( allow metadata filtering ) May 24, 2024
@humcqc humcqc changed the title Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore ( allow metadata filtering ) Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore ( allow metadata filtering + remove features) May 24, 2024
@humcqc humcqc changed the title Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore ( allow metadata filtering + remove features) Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore ( allow metadata filtering and remove features) May 24, 2024
@geoand geoand requested a review from jmartisk May 24, 2024 08:29
@geoand geoand changed the title Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore ( allow metadata filtering and remove features) Replace quarkus PGVectorEmbeddingStore with new Langchain4J PGVectorEmbeddingStore May 24, 2024
@jmartisk
Copy link
Collaborator

Sorry for the delay, traveling all week, but I'll give it a shot as soon as I can

Copy link
Collaborator

@jmartisk jmartisk left a comment

Choose a reason for hiding this comment

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

Ok, tried it and it works.
Super awesome, thanks!

@jmartisk jmartisk merged commit feee852 into quarkiverse:main Jun 3, 2024
12 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.

None yet

3 participants