Skip to content

Commit a6852d2

Browse files
committed
Merge branch 'main' into add-cli
2 parents 69dec32 + 38b91cc commit a6852d2

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

README.md

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,6 @@ The following endpoints are available:
7979
- **DELETE /sessions/{session_id}/memory**
8080
Deletes all stored memory (messages, context, token count) for a session.
8181

82-
- **POST /sessions/{session_id}/search**
83-
Performs a semantic search on the messages within a session.
84-
_Request Body Example:_
85-
```json
86-
{
87-
"text": "Search query text"
88-
}
89-
```
90-
9182
- **POST /long-term-memory/search**
9283
Performs semantic search on long-term memories with advanced filtering options.
9384
_Request Body Example:_
@@ -269,17 +260,6 @@ python -m agent_memory_server.mcp [stdio|sse]
269260
python -m pytest
270261
```
271262

272-
## Known Issues
273-
- All background tasks run as async coroutines in the same process as the REST API server, using Starlette's `BackgroundTask`
274-
- ~~The MCP server from the Python MCP SDK often refuses to shut down with Control-C if it's connected to a client~~
275-
276-
### Contributing
277-
1. Fork the repository
278-
2. Create a feature branch
279-
3. Commit your changes
280-
4. Push to the branch
281-
5. Create a Pull Request
282-
283263
## Running the Background Task Worker
284264

285265
The Redis Memory Server uses Docket for background task management. There are two ways to run the worker:
@@ -307,21 +287,22 @@ or directly in `agent_memory_server.config.Settings`.
307287

308288
The memory compaction functionality optimizes storage by merging duplicate and semantically similar memories. This improves retrieval quality and reduces storage costs.
309289

290+
### Running Compaction
291+
292+
Currently, memory compaction is only available as a function in `agent_memory_server.long_term_memory.compact_long_term_memories`. You can run it manually or trigger it (manually, via code) to run as a background task.
293+
310294
### Key Features
311295

312296
- **Hash-based Deduplication**: Identifies and merges exact duplicate memories using content hashing
313297
- **Semantic Deduplication**: Finds and merges memories with similar meaning using vector search
314298
- **LLM-powered Merging**: Uses language models to intelligently combine memories
315299

316-
### Testing Approach
317-
318-
Testing the memory compaction functionality involves:
319-
320-
1. **Unit Tests**: Testing individual helper functions like `generate_memory_hash` and `merge_memories_with_llm`
321-
2. **Integration Tests**: Testing the complete workflow with minimal mocking
322-
3. **Mocked Tests**: Using helper functions to test specific parts of the workflow
323-
324-
The main integration test (`test_compact_memories_integration`) demonstrates the memory merging functionality without relying on Redis search, which makes it more robust and less prone to environment-specific failures.
300+
### Contributing
301+
1. Fork the repository
302+
2. Create a feature branch
303+
3. Commit your changes
304+
4. Push to the branch
305+
5. Create a Pull Request
325306

326307
### Running Tests
327308

0 commit comments

Comments
 (0)