Git Product home page Git Product logo

lc4j's Introduction

LC4J

LangChain for Java.
WIP.

支持的模型列表:

模型名称 √-支持 其他-不支持原因
ChatGPT3.5
ChatGPT4
星火大模型 不支持——内置Agent干扰Agent流程。
文心一言
通义千问
智谱清言 不支持——太容易莫名其妙截断。
盘古大模型 WIP

硬依赖:
BukkitHTTP 函数库。
软依赖:
Crawl4J 构建知识库。

基本代码结构:

graph LR
    Input(用户输入)
    Flow(处理流程)
    Input --> Flow
    Agent --> Flow
    Flow --> Output(输出)
    subgraph agent
        Agent
        Credential -->|CredentialManager| LLM
        LLM --> Agent
        Transformer --> Agent
    end    
Loading

C4J知识注入:

graph TB
    Crawl4J -->|数据抓取| c4j.db
    Input(用户输入) --> Inject[知识注入]
    Input -->|向量搜索| C4JTransformer
    C4JTransformer --> Transformer
    c4j.db --> Transformer
    Transformer -->|有用的知识| Inject
    Inject --> Flow(处理后的用户输入)
    Processor[模型回答]
    LLM[LLM或者其他Agent]
    LLM --> Processor
    Flow --> Processor
    Processor --> Output(最终输出)
Loading

LaTeX格式生成:

graph TB
    Input(用户输入)
    Input(用户输入) --> Inject[Prompt注入]
    LatexTransformer --> Transformer
    Transformer -->|内置Prompt| Inject
    Inject --> Flow(处理后的用户输入)
    LLMPrompt[LLM或者其他Agent]
    Processor[模型回答]
    LLMPrompt --> Processor
    Flow --> Processor
    Processor --> Output(模型输出)
    Output --> LatexTransformer
    LatexTransformer -->|LaTeX部分| LatexOutput(最终输出)
Loading

Sample:
C4J效果展示 C4J TEX效果展示 LaTeX

Author:
@huzpsb
All rights reserved.

lc4j's People

Contributors

huzpsb avatar

Stargazers

 avatar Ty_Regotly avatar Dreeam avatar  avatar 四月櫻花 洇染成殤 avatar

Watchers

 avatar

lc4j's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.