Skip to content

Feature/mem0#138

Merged
239573049 merged 4 commits intomainfrom
feature/mem0
Jun 20, 2025
Merged

Feature/mem0#138
239573049 merged 4 commits intomainfrom
feature/mem0

Conversation

@239573049
Copy link
Member

This pull request introduces significant changes to the KoalaWiki project, focusing on the integration of Mem0 capabilities, removal of outdated code, and updates to dependencies and configurations. The most notable changes include adding support for Mem0-based functionality, replacing the BuildCodeIndex class with Mem0Rag, and updating project dependencies to align with new features.

Mem0 Integration:

  • Added Mem0Rag class to implement Mem0-based background processing for document and code indexing, including parallel processing and error handling. (src/KoalaWiki/Mem0/Mem0Rag.cs)
  • Updated OpenAIOptions to include configurations for Mem0, such as enabling Mem0 functionality, API key, and endpoint. (src/KoalaWiki/Options/OpenAIOptions.cs) [1] [2]
  • Replaced RagFunction implementation with Mem0-based search functionality, introducing Mem0Client for vector search operations. (src/KoalaWiki/Functions/RagFunction.cs)

Code Cleanup and Removal:

  • Removed the BuildCodeIndex class, which previously handled code indexing using OpenAI embeddings. (src/KoalaWiki/CodeMap/BuildCodeIndex.cs)
  • Removed the EmbeddingModel property from EnhancedCodeIndexer and related configurations. (src/KoalaWiki/CodeMap/EnhancedCodeIndexer.cs)

Dependency Updates:

  • Added Mem0.NET package to support Mem0 integration and updated versions of several dependencies, including ModelContextProtocol.AspNetCore and Scalar.AspNetCore. (src/KoalaWiki/KoalaWiki.csproj) [1] [2]
  • Included new prompt files for Mem0 functionality in the project output. (src/KoalaWiki/KoalaWiki.csproj)

Miscellaneous Changes:

  • Modified MCPExtensions to use CallToolResult instead of CallToolResponse and updated response handling. (src/KoalaWiki/MCP/MCPExtensions.cs)
  • Added a summary comment for the GenerateDocumentAsync method in WarehouseTool. (src/KoalaWiki/MCP/Tools/WarehouseTool.cs)

These changes collectively enhance the project by introducing Mem0-based capabilities, streamlining code, and ensuring compatibility with updated dependencies.

@239573049 239573049 merged commit 6e59a17 into main Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant