-
Notifications
You must be signed in to change notification settings - Fork 728
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
CompressingQueryTransformer NullPointException #1120
base: main
Are you sure you want to change the base?
CompressingQueryTransformer NullPointException #1120
Conversation
…data () when no memory context model of null pointer error
If you create the Assistant without specifying ChatMemoryProvider in the Build method but specifying retrievalAugmentor and then access it after the Assistant is built, you'll get a null pointer problem |
Hi @zxyyang, thank you, but what is the point of using |
build AiServices use .retrievalAugmentor(retrievalAugmentor) but null .chatMemoryProvider(chatMemoryProvider) ,Use a embedding database but no memory context |
@zxyyang I mean using |
My scenario is to use retrievalAugmentor but not set chatMemoryProvider automatically to call CompressingQueryTransformer and error , |
@zxyyang using |
You mean that if I use embedding database I must have to configure the memory context store |
No, embedding store can be used without memory. |
|
You see is I use a problem or this code is not rigorous@ @langchain4j |
Visit CompressingQueryTransformer transform method to query. The metadata () when no memory context model of null pointer error
![image](https://private-user-images.githubusercontent.com/50910542/331506530-8398b365-31ab-4907-8ee9-0958d9f4a836.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzODAxNDMsIm5iZiI6MTcxOTM3OTg0MywicGF0aCI6Ii81MDkxMDU0Mi8zMzE1MDY1MzAtODM5OGIzNjUtMzFhYi00OTA3LThlZTktMDk1OGQ5ZjRhODM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDA1MzA0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzMjc4Zjg1YTZjODFlNTA5YWNhMTIzYTU1MDJkZmIyOTI5YWEzZmU5ZWRlM2NjZTAxNmI2YzE5YTFiNjIyMDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kkkjyVC1BHEwGVmpugtFyaLR5V4OBm4wxdUrQGjvF_A)