Commit Graph

6 Commits

Author SHA1 Message Date
Haoxin Li
d00ce49c0d feat: integrate pgvector for semantic search and embedding generation
- 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
2025-08-08 15:59:41 +08:00
chriscco
5ad50a9a26 feat: 添加了CLI脚本文件
fix: update content assignment in CreateFromIndexResult to use ImplementText

feat: enhance EnsureWorkspace method with automatic name generation and retry logic for workspace creation
2025-07-31 15:56:06 +08:00
Haoxin Li
4b5784d391 refactor: update CodeSnippet and workspace handling for improved clarity and structure 2025-07-30 14:48:58 +08:00
Haoxin Li
5bdf01dec3 feat: add code snippet search functionality and handler implementation 2025-07-29 16:09:42 +08:00
Haoxin Li
35a893e1d2 refactor: update struct field types from interface{} to any for improved type safety 2025-07-28 17:59:54 +08:00
Haoxin Li
f321e19fd6 feat: Implement CodeSnippet functionality with repository and use case layers, update CLI command references 2025-07-28 14:39:27 +08:00