- Added pgvector-go dependency for vector operations.
- Implemented embedding generation using OpenAI API in a new service.
- Enhanced CodeSnippetRepo to support semantic search using vector similarity.
- Updated CodeSnippetUsecase to generate embeddings during snippet creation.
- Added methods for semantic search by workspace and general semantic search.
- Improved error handling and logging for embedding generation and vector search.
- Removed unnecessary debug logs in socket handlers for cleaner output.
feat: enhance CodeSnippet functionality with workspacePath for improved context and semantic search
feat: add embedding and workspace path fields to CodeSnippet for semantic search functionality
feat: enhance SemanticSearchByWorkspace to include cosine similarity score in results
feat: 优化心跳处理逻辑,支持多种数据类型
refactor: 修复日志记录
feat: add migration for embedding and workspace_path columns in code_snippets table
fix: update content assignment in CreateFromIndexResult to use ImplementText
feat: enhance EnsureWorkspace method with automatic name generation and retry logic for workspace creation
fix: Update GetAndSaveReq structure to use WorkspaceID and FileMetas fields
feat: Update GetAndSave request structure to include workspace_id and refactor related code
- Introduced CodeSnippet schema with fields for snippet details and relationships to WorkspaceFile.
- Enhanced WorkspaceFileUpdate and WorkspaceFileUpdateOne to manage snippets, including adding, removing, and clearing snippet relationships.
- Updated Swagger documentation to include new API endpoints for CLI command execution and workspace file management.
- Implemented domain structures for handling code files and AST parsing results.
- Refactored Workspace and WorkspaceFile use cases to support new functionalities.
- Adjusted CLI command execution to handle code file information in JSON format.
- Improved error handling and logging throughout the workspace and file management processes.