VectorStoreChatMemoryAdvisor constructors cleanup

- Deprecate all constructors except one with all fields
 - Update the build method to include order in the VectorStoreChatMemoryAdvisor's constructor
This commit is contained in:
ogbozoyan
2024-11-25 20:44:05 +03:00
committed by Ilayaperumal Gopinathan
parent 6035516044
commit cd871eaddc
2 changed files with 29 additions and 3 deletions

View File

@@ -135,7 +135,7 @@ class PgVectorStoreWithChatMemoryAdvisorIT {
.build()
.prompt()
.user("joke")
.advisors(new VectorStoreChatMemoryAdvisor(store))
.advisors(VectorStoreChatMemoryAdvisor.builder(store).build())
.call()
.chatResponse();