-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add secure-fraud-detection demo #539
base: main
Are you sure you want to change the base?
Add secure-fraud-detection demo #539
Conversation
Nice! I am guessing that the error you are seeing is due to maven not being configured with to make |
Thanks @geoand, yes, I was wondering how exactly does the translate demo work which has 2 parameters, and now I've found https://github.com/quarkiverse/quarkus-langchain4j/blob/main/samples/cli-translator/pom.xml#L12 :-) |
...e-fraud-detection/src/main/java/io/quarkiverse/langchain4j/sample/TransactionRepository.java
Outdated
Show resolved
Hide resolved
...s/secure-fraud-detection/src/main/java/io/quarkiverse/langchain4j/sample/ChatMemoryBean.java
Outdated
Show resolved
Hide resolved
38b3c99
to
162391e
Compare
...e-fraud-detection/src/main/java/io/quarkiverse/langchain4j/sample/ProvidersConfigSource.java
Outdated
Show resolved
Hide resolved
162391e
to
38e5513
Compare
@geoand @jmartisk |
38e5513
to
0fe8b82
Compare
@geoand I prototyped a custom But the following error is becoming quite persistent:
Can you please, when you have a few mins, have a quick look at |
It is transient though, after some delay, I've restarted and I'm getting an interesting response, |
0fe8b82
to
cf7bfeb
Compare
In any case, I'm moving away from using tools in favor of ContentRetriever, yet to be implemented similarly to how it is done in the csv chatbot demo, since it gives a nice option to use Update: I've followed with a few minor updates and squashed everything, it will be easy to get back to tools if necessary |
dc36dbf
to
ec93506
Compare
Gonna look into this one in a bit! |
samples/secure-fraud-detection/src/main/java/io/quarkiverse/langchain4j/sample/Setup.java
Outdated
Show resolved
Hide resolved
samples/secure-fraud-detection/src/main/java/io/quarkiverse/langchain4j/sample/Setup.java
Outdated
Show resolved
Hide resolved
samples/secure-fraud-detection/src/main/java/io/quarkiverse/langchain4j/sample/Setup.java
Show resolved
Hide resolved
...etection/src/main/java/io/quarkiverse/langchain4j/sample/FraudDetectionContentRetriever.java
Outdated
Show resolved
Hide resolved
ec93506
to
e5eede2
Compare
e9a6a85
to
978b215
Compare
978b215
to
8c11a7e
Compare
The custom I was hoping that may be I can add
But it fails with
@michalvavrik, does it ring any bell to you ? It is strange because So I guess for now, using a custom memory id is OK, in fact, it can make sense to combine eventually both |
|
I know practically nothing about this project and code, but let me note that you will not be able to use standard security annotations on the |
Thanks @michalvavrik for the feedback, getting to checking comments only now... OK, I'll open a Quarkus issue to consider what can be done with the priorities. |
Draft PR for a secure-fraud-detection demo.
The startup issue described here earlier was resolved as advised by Georgios