agents-flex  by agents-flex

Java SDK for LLM application development

created 1 year ago
489 stars

Top 64.0% on sourcepulse

GitHubView on GitHub
Project Summary

Agents-Flex is a Java-based framework for building LLM applications, offering capabilities similar to LangChain but tailored for the Java ecosystem. It provides developers with tools for LLM interaction, prompt management, function calling, memory, document processing, and building complex execution chains.

How It Works

The framework abstracts LLM interactions through a unified Llm interface, supporting various models like OpenAI, Qwen, and Spark. It enables structured prompt engineering with PromptTemplate and facilitates complex workflows via Chain execution, including sequential, parallel, and loop-based processing. Function calling is integrated using Java annotations to define and execute external tools based on LLM output.

Quick Start & Requirements

  • Install: Maven dependency (e.g., com.github.agents-flex:agents-flex:0.0.1-SNAPSHOT).
  • Prerequisites: Java 17+, Maven/Gradle. API keys for LLM providers are required.
  • Demo: Examples for basic chat, historical conversations, and function calling are provided in the README.

Highlighted Details

  • Supports a wide range of LLMs including OpenAI, Qwen, Spark, ChatGLM, Moonshot, and more.
  • Integrates with multiple vector stores like Milvus, Alibaba Cloud, Tencent Cloud, OpenSearch, Elasticsearch, and Redis.
  • Offers document parsing for PDF (PDFBox) and Word (POI) formats.
  • Implements various chain types: SequentialChain, ParallelChain, and LoopChain for complex task orchestration.

Maintenance & Community

  • Active development with a growing list of supported LLMs and integrations.
  • Community support channels are not explicitly mentioned in the README.

Licensing & Compatibility

  • The README does not specify a license. Compatibility for commercial use or closed-source linking is undetermined.

Limitations & Caveats

  • The project is in a snapshot version (0.0.1-SNAPSHOT), indicating it is under active development and may have breaking changes.
  • A license is not specified, which could impact commercial adoption.
Health Check
Last commit

3 days ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
2
Star History
92 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.