Skip to content

Commit 0eca7b2

Browse files
committed
chore: change groupId from com.langMem to com.github.mem4j in pom.xml and update all references in documentation and configuration files
1 parent 4c6fc78 commit 0eca7b2

33 files changed

+121
-121
lines changed

QUICK_START.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cd my-mem4j-app
5959

6060
<!-- Mem4j -->
6161
<dependency>
62-
<groupId>com.langmem.mem4j</groupId>
62+
<groupId>com.github.mem4j</groupId>
6363
<artifactId>mem4j</artifactId>
6464
<version>0.1.0</version>
6565
</dependency>
@@ -102,9 +102,9 @@ public class Application {
102102
```java
103103
package com.example;
104104

105-
import com.langmem.mem4j.memory.Memory;
106-
import com.langmem.mem4j.memory.MemoryItem;
107-
import com.langmem.mem4j.memory.Message;
105+
import com.github.mem4j.memory.Memory;
106+
import com.github.mem4j.memory.MemoryItem;
107+
import com.github.mem4j.memory.Message;
108108
import org.springframework.beans.factory.annotation.Autowired;
109109
import org.springframework.stereotype.Service;
110110

@@ -175,7 +175,7 @@ public class ChatController {
175175
server:
176176
port: 8080
177177

178-
langmem:
178+
github:
179179
mem4j:
180180
vector-store:
181181
type: inmemory
@@ -228,7 +228,7 @@ curl -X POST "http://localhost:8080/chat" \
228228
如果你想使用真实的 LLM 服务,修改 `application.yml`
229229

230230
```yaml
231-
langmem:
231+
github:
232232
mem4j:
233233
vector-store:
234234
type: in-memory

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ mvn spring-boot:run
5555
### Basic Usage
5656

5757
```java
58-
import com.langmem.mem4j.memory.Memory;
59-
import com.langmem.mem4j.memory.MemoryItem;
60-
import com.langmem.mem4j.memory.Message;
58+
import com.github.mem4j.memory.Memory;
59+
import com.github.mem4j.memory.MemoryItem;
60+
import com.github.mem4j.memory.Message;
6161
import org.springframework.beans.factory.annotation.Autowired;
6262
import org.springframework.stereotype.Service;
6363

@@ -87,7 +87,7 @@ public class MyService {
8787
### Core Components
8888

8989
```
90-
src/main/java/com/langmem/mem4j/
90+
src/main/java/com/github/mem4j/
9191
├── memory/ # Core memory management
9292
├── vectorstores/ # Vector database integrations
9393
├── llms/ # LLM provider integrations
@@ -131,7 +131,7 @@ src/main/java/com/langmem/mem4j/
131131

132132
```yaml
133133
# Memory Configuration
134-
langmem:
134+
github:
135135
mem4j:
136136
vector-store:
137137
type: qdrant # Options: inmemory, qdrant
@@ -376,7 +376,7 @@ Mem4j now supports **DashScope** as a primary LLM and embedding provider, offeri
376376

377377
3. **Update Configuration**:
378378
```yaml
379-
langmem:
379+
github:
380380
mem4j:
381381
llm:
382382
type: dashscope

README_zh.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ mvn spring-boot:run
5555
### Basic Usage
5656

5757
```java
58-
import com.langmem.mem4j.memory.Memory;
59-
import com.langmem.mem4j.memory.MemoryItem;
60-
import com.langmem.mem4j.memory.Message;
58+
import com.github.mem4j.memory.Memory;
59+
import com.github.mem4j.memory.MemoryItem;
60+
import com.github.mem4j.memory.Message;
6161
import org.springframework.beans.factory.annotation.Autowired;
6262
import org.springframework.stereotype.Service;
6363

@@ -87,7 +87,7 @@ public class MyService {
8787
### Core Components
8888

8989
```
90-
src/main/java/com/langmem/mem4j/
90+
src/main/java/com/github/mem4j/
9191
├── memory/ # Core memory management
9292
├── vectorstores/ # Vector database integrations
9393
├── llms/ # LLM provider integrations
@@ -131,7 +131,7 @@ src/main/java/com/langmem/mem4j/
131131

132132
```yaml
133133
# Memory Configuration
134-
langmem:
134+
github:
135135
mem4j:
136136
vector-store:
137137
type: qdrant # Options: inmemory, qdrant
@@ -376,7 +376,7 @@ Mem4j now supports **DashScope** as a primary LLM and embedding provider, offeri
376376

377377
3. **Update Configuration**:
378378
```yaml
379-
langmem:
379+
github:
380380
mem4j:
381381
llm:
382382
type: dashscope

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ The application exposes health check endpoints:
360360
The API behavior can be configured through application properties:
361361
362362
```yaml
363-
langmem:
363+
github:
364364
mem4j:
365365
vector-store:
366366
type: inmemory

docs/CONFIGURATION.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Mem4j 使用 Spring Boot 配置系统,支持 YAML 和 Properties 格式。所
99
### 最小配置
1010

1111
```yaml
12-
langmem:
12+
github:
1313
mem4j:
1414
vector-store:
1515
type: inmemory
@@ -28,7 +28,7 @@ langmem:
2828
### 完整配置示例
2929
3030
```yaml
31-
langmem:
31+
github:
3232
mem4j:
3333
# 向量存储配置
3434
vector-store:
@@ -88,7 +88,7 @@ langmem:
8888
#### 1. 内存存储 (inmemory)
8989
9090
```yaml
91-
langmem:
91+
github:
9292
mem4j:
9393
vector-store:
9494
type: inmemory
@@ -102,7 +102,7 @@ langmem:
102102
#### 2. Qdrant
103103
104104
```yaml
105-
langmem:
105+
github:
106106
mem4j:
107107
vector-store:
108108
type: qdrant
@@ -121,7 +121,7 @@ langmem:
121121
#### 1. DashScope (通义千问)
122122
123123
```yaml
124-
langmem:
124+
github:
125125
mem4j:
126126
llm:
127127
type: dashscope
@@ -142,7 +142,7 @@ langmem:
142142
#### 2. OpenAI
143143

144144
```yaml
145-
langmem:
145+
github:
146146
mem4j:
147147
llm:
148148
type: openai
@@ -159,7 +159,7 @@ langmem:
159159
#### 1. DashScope 嵌入
160160

161161
```yaml
162-
langmem:
162+
github:
163163
mem4j:
164164
embeddings:
165165
type: dashscope
@@ -171,7 +171,7 @@ langmem:
171171
#### 2. OpenAI 嵌入
172172

173173
```yaml
174-
langmem:
174+
github:
175175
mem4j:
176176
embeddings:
177177
type: openai
@@ -207,7 +207,7 @@ export NEO4J_PASSWORD="your-password"
207207
### 开发环境 (application-dev.yml)
208208

209209
```yaml
210-
langmem:
210+
github:
211211
mem4j:
212212
vector-store:
213213
type: inmemory
@@ -221,13 +221,13 @@ langmem:
221221
222222
logging:
223223
level:
224-
com.langmem.mem4j: DEBUG
224+
com.github.mem4j: DEBUG
225225
```
226226

227227
### 生产环境 (application-prod.yml)
228228

229229
```yaml
230-
langmem:
230+
github:
231231
mem4j:
232232
vector-store:
233233
type: qdrant
@@ -252,7 +252,7 @@ langmem:
252252
253253
logging:
254254
level:
255-
com.langmem.mem4j: INFO
255+
com.github.mem4j: INFO
256256
```
257257

258258
## 🐳 Docker 配置
@@ -261,7 +261,7 @@ logging:
261261

262262
```yaml
263263
# application-docker.yml
264-
langmem:
264+
github:
265265
mem4j:
266266
vector-store:
267267
type: qdrant
@@ -289,7 +289,7 @@ langmem:
289289
### 向量存储优化
290290

291291
```yaml
292-
langmem:
292+
github:
293293
mem4j:
294294
vector-store:
295295
options:
@@ -301,7 +301,7 @@ langmem:
301301
### LLM 优化
302302

303303
```yaml
304-
langmem:
304+
github:
305305
mem4j:
306306
llm:
307307
options:
@@ -313,7 +313,7 @@ langmem:
313313
### 嵌入优化
314314

315315
```yaml
316-
langmem:
316+
github:
317317
mem4j:
318318
embeddings:
319319
options:
@@ -344,7 +344,7 @@ management:
344344
health:
345345
show-details: always
346346
347-
langmem:
347+
github:
348348
mem4j:
349349
monitoring:
350350
enabled: true
@@ -380,10 +380,10 @@ langmem:
380380
```yaml
381381
logging:
382382
level:
383-
com.langmem.mem4j: DEBUG
384-
com.langmem.mem4j.configs: TRACE
383+
com.github.mem4j: DEBUG
384+
com.github.mem4j.configs: TRACE
385385
386-
langmem:
386+
github:
387387
mem4j:
388388
debug:
389389
enabled: true

example-usage/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export DASHSCOPE_API_KEY="your-dashscope-api-key"
2525
或者编辑 `src/main/resources/application.yml` 直接修改配置:
2626

2727
```yaml
28-
langmem:
28+
github:
2929
mem4j:
3030
llm:
3131
api-key: "your-actual-api-key-here"
@@ -104,7 +104,7 @@ curl -X DELETE "http://localhost:19090/api/chat/memories/user1"
104104
如果您想使用 OpenAI 服务,可以修改配置:
105105

106106
```yaml
107-
langmem:
107+
github:
108108
mem4j:
109109
llm:
110110
type: openai
@@ -140,7 +140,7 @@ private Memory memory;
140140
### 添加记忆
141141

142142
```java
143-
import com.langmem.mem4j.memory.Message;
143+
import com.github.mem4j.memory.Message;
144144
import java.util.Arrays;
145145
import java.util.List;
146146
@@ -155,7 +155,7 @@ memory.add(messages, "user1");
155155
### 搜索记忆
156156

157157
```java
158-
import com.langmem.mem4j.memory.MemoryItem;
158+
import com.github.mem4j.memory.MemoryItem;
159159
import java.util.List;
160160
161161
List<MemoryItem> memories = memory.search("张三喜欢什么?", "user1");
@@ -164,7 +164,7 @@ List<MemoryItem> memories = memory.search("张三喜欢什么?", "user1");
164164
### 获取所有记忆
165165

166166
```java
167-
import com.langmem.mem4j.memory.MemoryItem;
167+
import com.github.mem4j.memory.MemoryItem;
168168
import java.util.List;
169169
170170
List<MemoryItem> allMemories = memory.getAll("user1", null, 50);

example-usage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<!-- Mem4j Library -->
3232
<dependency>
33-
<groupId>com.langMem</groupId>
33+
<groupId>com.github.mem4j</groupId>
3434
<artifactId>mem4j</artifactId>
3535
<version>0.1.0</version>
3636
</dependency>

example-usage/src/main/java/com/example/ChatController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
package com.example;
1818

19-
import com.langmem.mem4j.memory.Memory;
20-
import com.langmem.mem4j.memory.MemoryItem;
21-
import com.langmem.mem4j.memory.Message;
19+
import com.github.mem4j.memory.Memory;
20+
import com.github.mem4j.memory.MemoryItem;
21+
import com.github.mem4j.memory.Message;
2222
import org.springframework.beans.factory.annotation.Autowired;
2323
import org.springframework.web.bind.annotation.*;
2424

example-usage/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spring:
99
api-key: ${DASHSCOPE_API_KEY:test-key}
1010

1111
# Mem4j Configuration
12-
langmem:
12+
github:
1313
mem4j:
1414
# 使用内存向量存储(适合演示)
1515
vector-store:
@@ -42,7 +42,7 @@ langmem:
4242
# 日志配置
4343
logging:
4444
level:
45-
com.langmem.mem4j: INFO
45+
com.github.mem4j: INFO
4646
com.example: DEBUG
4747
pattern:
4848
console: "%d{HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
http://maven.apache.org/xsd/maven-4.0.0.xsd">
66
<modelVersion>4.0.0</modelVersion>
77

8-
<groupId>com.langMem</groupId>
8+
<groupId>com.github.mem4j</groupId>
99
<artifactId>mem4j</artifactId>
1010
<version>0.1.0</version>
1111
<packaging>jar</packaging>

0 commit comments

Comments
 (0)