Commit Graph

15 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
LydiaMuaCai
38653e73e6 feat: add license schema 2025-08-07 18:35:34 +08:00
yokowu
0892045905 fix: 修复代码行展示问题 2025-08-04 11:16:28 +08:00
yokowu
3435df2caa feat(model): 模型支持高级配置 2025-07-30 18:54:31 +08:00
yokowu
63cea32a89 chore: 更新一些依赖 2025-07-30 14:34:50 +08:00
Haoxin Li
b5ecb92371 feat: feat: Implement workspace and real-time file synchronization
- Added WorkspaceFileHandler for handling workspace file operations including create, update, delete, and list functionalities.
- Introduced WorkspaceFileRepo for database interactions related to workspace files.
- Created WorkspaceFileUsecase to encapsulate business logic for workspace file management.
- Implemented API endpoints for workspace file operations with appropriate request and response structures.
- Added database migrations for creating workspaces and workspace_files tables with necessary constraints and indexes.
- Enhanced user authentication and authorization for workspace file operations.
2025-07-23 17:42:20 +08:00
yokowu
20c0da6fb0 feat: 用户使用记录接口 2025-07-21 18:47:39 +08:00
yokowu
ec8ca31a6b feat: 下载限速 2025-07-18 10:28:19 +08:00
yokowu
97524b1ffe feat(user): 记录登录历史 2025-07-17 15:06:08 +08:00
yokowu
96c83f1de2 feat(model): 供应商模型列表 2025-07-15 16:01:59 +08:00
yokowu
015868dff9 fix(oauth): 利用官方 oauth2 库实现自定义OAuth 2025-07-14 20:55:39 +08:00
yokowu
963ad4eabc feat(model): 增加缓存机制 2025-07-13 00:05:39 +08:00
yokowu
a71148497c feat(user): 记录用户活跃时间 2025-07-04 10:56:03 +08:00
yokowu
04f9ebba83 feat: 支持统计数据的时间筛选 2025-07-03 17:32:01 +08:00
yokowu
b048fac123 feat(backend): add basic backend code 2025-06-25 15:56:22 +08:00