Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
/**
* 表示 openai 模型服务。
*
* @author 易文渊
* @since 2024-08-07
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/**
* 提供 OpenAI 客户端接口:发送 OpenAI API 格式的请求并接收响应。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-04-30
*/
public interface OpenAiApi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/**
* 表示 {@link OpenAiConfig} 的默认实现。
*
* @author 易文渊
* @since 2024-08-12
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
/**
* OpenAi API 格式的会话补全请求。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-4-30
*/
@SerializeStrategy(include = SerializeStrategy.Include.NON_NULL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
/**
* OpenAi API 格式的会话补全响应。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-4-30
*/
public class OpenAiChatCompletionResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/**
* 此类用于表示 OpenAI 的消息对象。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-4-30
*/
@SerializeStrategy(include = SerializeStrategy.Include.NON_NULL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
/**
* 模型所使用的工具,用于 OpenAI 请求中 tools 字段。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-4-30
*/
public class OpenAiTool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/**
* 表示 {@link ToolCall} 的 openai 实现。
*
* @author 易文渊
* @since 2024-08-17
*/
@SerializeStrategy(include = SerializeStrategy.Include.NON_NULL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* <li>图片类型;</li>
* </ol>
*
* @author 易文渊
* @since 2024-08-17
*/
@SerializeStrategy(include = SerializeStrategy.Include.NON_NULL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
/**
* 表示 OpenAi 格式的嵌入向量。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-4-30
*/
public class OpenAiEmbedding implements Embedding {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
/**
* 表示 OpenAi API 格式的 嵌入请求。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-4-30
*/
public class OpenAiEmbeddingRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
/**
* 表示 OpenAi API 格式的嵌入响应。
*
* @author 易文渊
* @author 张庭怿
* @since 2024-4-30
*/
public class OpenAiEmbeddingResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/**
* 表示 OpenAi 格式的图片。
*
* @author 何嘉斌
* @since 2024-12-17
*/
public class OpenAiImage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* 表示 OpenAi Api 格式的图片生成请求。
*
* @author 何嘉斌
* @since 2024-12-17
*/
public class OpenAiImageRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/**
* 表示 OpenAi API 格式的图片生成响应。
*
* @author 何嘉斌
* @since 2024-12-17
*/
public class OpenAiImageResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/**
* 表示 OpenAI API 格式的重排请求。
*
* @author 马朝阳
* @since 2024-09-27
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/**
* 表示 OpenAI API 格式的重排响应。
*
* @author 马朝阳
* @since 2024-09-27
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/**
* 模型内容生成状态枚举类。
*
* @author 孙怡菲
* @since 2025-04-29
*/
public enum ModelProcessingState {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* 提供 http 请求的相关工具方法。
*
* @author 易文渊
* @since 2024-08-07
*/
public class HttpUtils {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
/**
* {@link OpenAiModel} 的模型测试。
*
* @author 刘信宏
* @since 2024-09-23
*/
@MvcTest(classes = TestModelController.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/**
* 表示测试使用的聊天接口。
*
* @author 易文渊
* @since 2024-09-24
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
/**
* 测试 {@link modelengine.fel.community.model.openai.entity.chat} 下对象的序列化和反序列化。
*
* @author 易文渊
* @since 2024-08-17
*/
@DisplayName("测试 openai 聊天请求相关数据结构序列化与反序列化")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/**
* 测试 {@link modelengine.fel.community.model.openai.entity.embed} 下对象的序列化和反序列化。
*
* @author 易文渊
* @since 2024-08-18
*/
@DisplayName("测试 openai 嵌入请求相关数据结构序列化与反序列化")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/**
* 测试 {@link modelengine.fel.community.model.openai.entity.image} 下对象的序列化和反序列化。
*
* @author 何嘉斌
* @since 2024-12-18
*/
public class OpenAiImageEntityTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/**
* 表示 {@link Tokenizer} 的 hanlp 实现。
*
* @author 易文渊
* @since 2024-09-24
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
/**
* 表示 {@link HanlpTokenizer} 的测试集。
*
* @author 易文渊
* @since 2024-09-24
*/
@DisplayName("测试 hanlpTokenizer")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/**
* 表示聊天消息的接口。
*
* @author 易文渊
* @since 2024-04-16
*/
public interface ChatMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* 表示聊天模型推理服务。
*
* @author 易文渊
* @since 2024-04-13
*/
public interface ChatModel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/**
* 表示聊天大模型参数的实体。
*
* @author 刘信宏
* @author 易文渊
* @since 2024-04-12
*/
public interface ChatOption {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/**
* 表示消息类型的枚举。
*
* @author 易文渊
* @since 2024-04-16
*/
public enum MessageType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* 表示聊天大模型输入的接口。
*
* @author 易文渊
* @since 2024-04-16
*/
public interface Prompt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
/**
* 表示 {@link ChatMessage} 的抽象实现。
*
* @author 刘信宏
* @author 易文渊
* @since 2024-04-16
*/
public abstract class AbstractChatMessage implements ChatMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/**
* 表示大模型响应的 {@link modelengine.fel.core.chat.ChatMessage} 实现。
*
* @author 刘信宏
* @since 2024-4-12
*/
public class AiMessage extends AbstractChatMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
/**
* 表示 {@link Prompt} 的默认实现。
*
* @author 刘信宏
* @author 易文渊
* @since 2024-05-06
*/
public class ChatMessages implements Prompt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/**
* 表示聊天消息的传输实现。
*
* @author 易文渊
* @since 2024-04-12
*/
public class FlatChatMessage implements ChatMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
/**
* 表示人类消息的 {@link ChatMessage} 实现。
*
* @author 刘信宏
* @author 易文渊
* @since 2024-4-12
*/
public class HumanMessage extends AbstractChatMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/**
* 表现系统消息的 {@link ChatMessage} 实现。
*
* @author 刘信宏
* @author 易文渊
* @since 2024-4-12
*/
public class SystemMessage extends AbstractChatMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/**
* 表示工具消息的 {@link ChatMessage} 实现。
*
* @author 刘信宏
* @author 易文渊
* @since 2024-4-3
*/
public class ToolMessage extends AbstractChatMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
/**
* 表示携带数据的上下文实体。
*
* @author 易文渊
* @since 2024-08-06
*/
public interface Content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/**
* 表示检索文档的实体。
*
* @author 刘信宏
* @author 易文渊
* @since 2024-06-13
*/
public interface Document extends Content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/**
* 表示嵌入模型。
*
* @author 易文渊
* @since 2024-08-12
*/
public interface DocumentEmbedModel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/**
* 表示检索文档的后置处理器算子接口。
*
* @author 易文渊
* @since 2024-08-06
*/
@FunctionalInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/**
* 表示 {@link Document} 的存储对象。
*
* @author 易文渊
* @since 2024-08-12
*/
public interface DocumentStore extends Store<List<Document>> {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/**
* 表示文档检索结果的合成器。
*
* @author 易文渊
* @since 2024-08-12
*/
public interface DocumentSynthesizer extends Synthesizer<List<? extends Document>> {}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* 表示具有量化能力的对象。
*
* @author 易文渊
* @since 2024-08-08
*/
public interface Measurable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/**
* 表示可量化比较的 {@link Document}。
*
* @author 易文渊
* @since 2024-08-06
*/
public class MeasurableDocument implements Document, Measurable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/**
* 表示消息内容的实体。
*
* @author 易文渊
* @since 2024-06-17
*/
public final class DefaultContent implements Content {
Expand Down
Loading