Commit 634923c
authored
4.x: Langchain4j integration (helidon-io#9733)
* Lanchain4j integration
* OpenAI provider
* CDI integration with Service Registry
* Fix for naming in proxy factory (NPE).
* Fixes for qualifiers added during annotation mapping.
* Removed contract from Lookup when created from Dependency that uses java.lang.Object
* Added preview feature status to langchain4j
* Default embedding store factory for text segments
* Added support for ChatMemoryWindow annotation to simplify configuration of AI Services
* Oracle embedding store support
* Fixed docs of configuration of OpenAI models
* Create a single bean in CDI, use provided type as its type (less beans in CDI created)
* Using injection with Langchain4j OpenAi provider to avoid runtime lookups.
* Added support for array types when creating TypeName from Type.
* Changed name of injected proxies and tokenizers to use `.` instead of `:` between the provider name and the model type.1 parent dec95f3 commit 634923c
92 files changed
Lines changed: 7219 additions & 57 deletions
File tree
- all
- bom
- common/types/src/main/java/io/helidon/common/types
- dependencies
- integrations
- langchain4j
- codegen
- src/main/java
- io/helidon/integrations/langchain4j/codegen
- langchain4j
- src/main/java
- io/helidon/integrations/langchain4j
- providers
- open-ai
- src
- main/java
- io/helidon/integrations/langchain4j/providers/openai
- test
- java/io/helidon/integrations/langchain4j/openai
- resources
- oracle
- src
- main/java
- io/helidon/integrations/langchain4j/providers/oracle
- test
- java/io/helidon/integrations/langchain4j/providers/oracle
- resources
- metadata
- hson
- reflection
- src
- main/java
- io/helidon/metadata/reflection
- test/java/io/helidon/metadata/reflection
- microprofile
- cdi
- src
- main/java
- io/helidon/microprofile/cdi
- test
- java/io/helidon/microprofile/cdi
- resources
- tests
- service-registry
- src/test
- java/io/helidon/microprofile/tests/service/registry
- resources
- META-INF
- weld/weld-core-impl/src/main/java/org/jboss/weld/bean/proxy
- service
- codegen/src/main/java/io/helidon/service/codegen
- registry/src/main/java/io/helidon/service/registry
- tests/interception
- src/test/java/io/helidon/service/tests/interception
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
786 | 798 | | |
787 | 799 | | |
788 | 800 | | |
| |||
1116 | 1128 | | |
1117 | 1129 | | |
1118 | 1130 | | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1119 | 1135 | | |
1120 | 1136 | | |
1121 | 1137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1041 | 1056 | | |
1042 | 1057 | | |
1043 | 1058 | | |
| |||
1484 | 1499 | | |
1485 | 1500 | | |
1486 | 1501 | | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1487 | 1507 | | |
1488 | 1508 | | |
1489 | 1509 | | |
| |||
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
201 | 219 | | |
202 | 220 | | |
203 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
962 | 966 | | |
963 | 967 | | |
964 | 968 | | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
965 | 1016 | | |
966 | 1017 | | |
967 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
0 commit comments