-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: declarative AI services and EasyRAG
- Loading branch information
1 parent
91ad00d
commit 83ace77
Showing
68 changed files
with
1,148 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...spring-boot-starter/src/main/java/dev/langchain4j/service/spring/AiServiceWiringMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dev.langchain4j.service.spring; | ||
|
||
/** | ||
* Specifies how LangChain4j components are wired (injected) into a given AI Service. | ||
*/ | ||
public enum AiServiceWiringMode { | ||
|
||
/** | ||
* All LangChain4j components available in the application context are wired automatically into a given AI Service. | ||
* If there are multiple components of the same type, an exception is thrown. | ||
*/ | ||
AUTOMATIC, | ||
|
||
/** | ||
* Only explicitly specified LangChain4j components are wired into a given AI Service. | ||
* Component (bean) names are specified using attributes of {@link AiService} annotation like this: | ||
* {@code AiService(wiringMode = EXPLICIT, chatMemory = "<name of a ChatMemory bean>")} | ||
*/ | ||
EXPLICIT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...a/dev/langchain4j/service/spring/customConfig/chatModel/AssistantWithCustomChatModel.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ain4j/service/spring/customConfig/multipleChatModels/AssistantWithMultipleChatModels.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.