!1 Add README.md

Merge pull request !1 from gitee-agent/N/A
This commit is contained in:
蒲哥
2025-12-20 02:21:10 +00:00
committed by Gitee
2 changed files with 100 additions and 0 deletions

50
README.en.md Normal file
View File

@@ -0,0 +1,50 @@
# LangChain4j AI Sample Project
This is a sample AI application project based on LangChain4j, featuring multiple modules that demonstrate how to develop using large language models.
## Project Structure
The project consists of multiple modules, each demonstrating a different feature:
- `langchain4j-ai-helloworld`: A beginner example showing how to perform simple conversations using a large language model.
- `langchain4j-ai-image`: An image processing example demonstrating the use of image models.
- `langchain4j-ai-low-high-api`: Demonstrates the use of low-level and high-level APIs.
- `langchain4j-ai-memory`: A memory management example showing how to use chat memory.
- `langchain4j-ai-model-params`: An example of configuring model parameters.
- `langchain4j-ai-mongodb`: An example of storing chat memory using MongoDB.
- `langchain4j-ai-multimode`: An example of calling multiple models.
- `langchain4j-ai-pinecone`: An example of storing embeddings using Pinecone.
- `langchain4j-ai-prompt`: An example of using prompt templates.
- `langchain4j-ai-rag`: An RAG (Retrieval-Augmented Generation) example.
- `langchain4j-ai-stream`: An example of handling streaming responses.
- `langchain4j-ai-tools`: An example of integrating tools, such as weather queries.
- `langchain4j-ai-xiaoai-agent`: A XiaoAI intelligent assistant example integrating multiple features.
## Installation
Ensure you have Java and Maven installed. Then clone the repository and build the project:
```bash
git clone https://gitee.com/pu13398199549/langchain4j-ai-java.git
cd langchain4j-ai-java
mvn clean install
```
## Usage
Each module can be run independently. For example, to run the `langchain4j-ai-helloworld` module:
```bash
cd langchain4j-ai-helloworld
mvn spring-boot:run
```
Visit `http://localhost:8080/langchain4j/hello` to view the sample output.
## Contribution
Contributions and suggestions are welcome. Please submit a Pull Request or Issue.
## License
This project is licensed under the MIT License. See the LICENSE file for details.

50
README.md Normal file
View File

@@ -0,0 +1,50 @@
# LangChain4j AI 示例项目
这是一个基于 LangChain4j 的 AI 应用示例项目,包含了多个模块,演示了如何使用大语言模型进行开发。
## 项目结构
该项目包含多个模块,每个模块演示了不同的功能:
- `langchain4j-ai-helloworld`: 入门示例,展示如何使用大语言模型进行简单的对话。
- `langchain4j-ai-image`: 图像处理示例,展示如何使用图像模型。
- `langchain4j-ai-low-high-api`: 展示高低级 API 的使用。
- `langchain4j-ai-memory`: 内存管理示例,展示如何使用聊天记忆。
- `langchain4j-ai-model-params`: 模型参数配置示例。
- `langchain4j-ai-mongodb`: 使用 MongoDB 存储聊天记忆的示例。
- `langchain4j-ai-multimode`: 多模型调用示例。
- `langchain4j-ai-pinecone`: 使用 Pinecone 进行嵌入存储的示例。
- `langchain4j-ai-prompt`: 提示模板使用示例。
- `langchain4j-ai-rag`: RAG检索增强生成示例。
- `langchain4j-ai-stream`: 流式响应处理示例。
- `langchain4j-ai-tools`: 工具集成示例,如天气查询。
- `langchain4j-ai-xiaoai-agent`: 小艾智能助手示例,集成多种功能。
## 安装
确保你已经安装了 Java 和 Maven。然后克隆仓库并构建项目
```bash
git clone https://gitee.com/pu13398199549/langchain4j-ai-java.git
cd langchain4j-ai-java
mvn clean install
```
## 使用
每个模块都可以独立运行。例如,要运行 `langchain4j-ai-helloworld` 模块:
```bash
cd langchain4j-ai-helloworld
mvn spring-boot:run
```
访问 `http://localhost:8080/langchain4j/hello` 查看示例输出。
## 贡献
欢迎贡献代码和建议。请提交 Pull Request 或 Issue。
## 许可证
该项目使用 MIT 许可证。详情请查看 LICENSE 文件。