Skip to content

Conversation

@fabapp2
Copy link
Contributor

@fabapp2 fabapp2 commented Sep 3, 2024

When VectorStoreChatMemoryAdvisor is used the SELECT from the pgvector store failed with a SQL error.
This PR fixes the SQL by removing the ' as reported.

I tried to provide a useful test that verifies the correct behaviour when VectorStoreChatMemoryAdvisor is used.
It verifies that chat messages are enriched with similar messages from the vector store. This query was failing.

@fabapp2 fabapp2 self-assigned this Sep 3, 2024
@fabapp2 fabapp2 linked an issue Sep 3, 2024 that may be closed by this pull request
@fabapp2 fabapp2 added the bug Something isn't working label Sep 3, 2024
@fabapp2 fabapp2 requested a review from tzolov September 3, 2024 21:59
@fabapp2 fabapp2 force-pushed the fk/issue800 branch 2 times, most recently from e208bc5 to 57b36d8 Compare September 3, 2024 22:05
@tzolov
Copy link
Contributor

tzolov commented Sep 5, 2024

Thanks you @fabapp2 . Especially for the additional test !
I have some concerns that some of the Vector stores out there might not be able to handle camel case name without quotes. But we will see. Maybe it would be safer to rename the conversationId to conversationid but only if we see issues later.

@tzolov tzolov added this to the 1.0.0-M3 milestone Sep 5, 2024
@tzolov tzolov added the advisors label Sep 5, 2024
@tzolov tzolov merged commit 2c1f36c into spring-projects:main Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

advisors bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VectorStoreChatMemoryAdvisor is not working correctly with PGvector

2 participants