Commit Graph

1588 Commits

Author SHA1 Message Date
Mark
aac904007f Merge branch 'feature/rag2' into develop
* feature/rag2:
  [fix] system prompt fit error
  [modify] QA pair
2026-05-07 19:49:24 +08:00
Mark
f8d1ed51a7 [fix] system prompt fit error 2026-05-07 19:37:34 +08:00
山程漫悟
24d2fe726a Merge pull request #1051 from SuanmoSuanyangTechnology/feature/agent-tool_xjn
feat(workflow)
2026-05-07 19:12:39 +08:00
Mark
9fa83ed01e [modify] QA pair 2026-05-07 19:04:19 +08:00
Mark
194026a97e Merge branch 'feature/rag2' into develop
* feature/rag2:
  [add] batch add chunk for v1
  [fix] index_not_found_exception
  [fix] delete chunk refresh index
  [fix] es vector
  [fix] file upload
  no message
  [add] import qa chunks
  [add] task log
  [fix] qa cache
  [add] batch chunk.  qa_prompt set
  [modify] rag qa chunk
2026-05-07 18:47:42 +08:00
Mark
e222490bce [add] batch add chunk for v1 2026-05-07 18:45:36 +08:00
Timebomb2018
0dc8d8cbeb feat(workflow): support doc_id in citation metadata and unify document_id handling 2026-05-07 18:34:16 +08:00
山程漫悟
8967b00303 Merge pull request #1049 from SuanmoSuanyangTechnology/feat/wxy-dev
feat(LLM node): integrate exception handling and enable branch routing
2026-05-07 17:34:31 +08:00
Timebomb2018
8d3da2fd0e feat(workflow): support single-node execution and MCP Streamable HTTP protocol
- Add `run_single_node` method in workflow service for isolated node execution
- Refactor MCP client to support Streamable HTTP protocol (2025-03-26) with session ID handling, SSE/JSON response parsing, and proper initialized notification
- Update iteration node to conditionally initialize stream writer based on stream flag
- Improve cycle graph node invocation with checkpoint config passing
2026-05-07 17:18:21 +08:00
wxy
cef33fce0d fix(workflow): sanitize condition expression building and cache assigner node inputs
- Sanitize condition expression construction in graph_builder.py using json.dumps to prevent potential injection vulnerabilities.
- Cache input data prior to assigner node execution to ensure variable values are correctly captured before processing.
2026-05-07 16:26:47 +08:00
wxy
d9f08860bc feat(LLM node): integrate exception handling and enable branch routing
- Integrate exception handling configuration into LLM nodes, supporting three strategies: throw exception, return default value, or trigger exception branch.
- Modify execution logic to return a result structure containing a branch signal, enabling routing to designated branches upon failure.
- Update graph_builder to support LLM node branch routing logic using the branch_signal field for conditional judgment.
- Implement backward compatibility to support both legacy and new result formats.
2026-05-07 11:43:24 +08:00
Mark
ad2e885f72 [fix] index_not_found_exception 2026-05-06 18:34:07 +08:00
Mark
70c6d161c8 [fix] delete chunk refresh index 2026-05-06 15:19:46 +08:00
山程漫悟
3743188eec Merge pull request #1018 from SuanmoSuanyangTechnology/feat/wxy-dev
feat(workflow): incorporate model references and streamline parsing logic
2026-04-30 14:04:58 +08:00
Eternity
6f4c72c13a fix(prompt): update terminology and improve language consistency
- Replace "document" with "file" in perceptual summary prompts
- Adjust summary length from 2-4 to 3-5 sentences
- Add explicit language output instruction in problem split prompt
2026-04-30 13:27:04 +08:00
Ke Sun
f45cbfec65 Merge pull request #1034 from SuanmoSuanyangTechnology/release/v0.3.2
Release/v0.3.2
2026-04-30 11:13:07 +08:00
Eternity
e38a60e107 feat(core): add configurable SANDBOX_URL for code node sandbox requests 2026-04-29 20:24:10 +08:00
Mark
daba94764b [add] migration script 2026-04-29 18:56:17 +08:00
miao
80902eb79a refactor(memory): extract memory count sync utility
- Add shared utility for syncing end user memory_count from Neo4j
2026-04-29 18:35:49 +08:00
miao
f86c023477 fix(memory): call renamed memory count sync method
- Update forgetting cycle call sites to use _sync_memory_count_to_db
2026-04-29 18:06:48 +08:00
xrzs
1d73c9e5a8 chore(migration): remove memory count revision 2026-04-29 17:46:48 +08:00
miao
89bdb9f4b5 fix(memory): allow end user id keyword search
- Match keyword against end_user_id even when other_name exists
- Keep Neo4j and RAG end user list search behavior consistent
2026-04-29 16:38:11 +08:00
miao
c57490a063 fix(migration): move memory count revision to latest head 2026-04-29 16:35:46 +08:00
Mark
f85c0594c9 [fix] es vector 2026-04-29 15:24:25 +08:00
miao
a7d3930f4d feat(memory): add end user memory count filtering
- Sync memory_count after Neo4j write and forgetting cycle
- Filter Neo4j end user list by memory_count > 0
- Filter RAG end user list by Memory knowledge chunk count
2026-04-29 15:02:09 +08:00
miao
d30b9224ab [add] migration script 2026-04-29 15:02:09 +08:00
wxy
461674c8d8 feat(workflow): parse and substitute template variables in node configurations
- Implement regex matching for {{xxx}} template variable format.
- Enable recursive parsing of all string template variables within node configurations.
- Resolve and substitute template variables with runtime values during input data extraction.
- Support dynamic parsing and substitution of file selector variables in the document extraction node.
- Make strict template variable mode optional and introduce support for default values.
2026-04-29 14:10:02 +08:00
Mark
5fceba54b4 [fix] file upload 2026-04-29 13:41:14 +08:00
Mark
6e89302cb2 no message 2026-04-29 11:44:03 +08:00
Timebomb2018
6f10296969 fix(workspace): deactivate user when removed from last active workspace 2026-04-28 18:34:06 +08:00
Mark
90aa4cef21 [add] import qa chunks 2026-04-28 16:38:14 +08:00
Mark
6c47bb77ab [add] task log 2026-04-28 16:13:26 +08:00
Timebomb2018
28694fefb0 fix(app): adjust thinking budget tokens default and validation range
The default thinking budget tokens value was changed from 10000 to 1024 in base.py, and the minimum validation constraint was updated from 1024 to 1 in app_schema.py to allow smaller budgets while maintaining backward compatibility.
2026-04-28 16:10:44 +08:00
Mark
f667936664 [fix] qa cache 2026-04-28 15:53:07 +08:00
Mark
64e640d882 [add] batch chunk. qa_prompt set 2026-04-28 15:33:44 +08:00
Timebomb2018
d3058ce379 fix(workspace): make delete workspace member async and invalidate user tokens 2026-04-28 15:04:13 +08:00
Mark
140311048a [modify] rag qa chunk 2026-04-28 14:04:36 +08:00
Mark
9598bd5905 [modify] migration script 2026-04-28 13:44:05 +08:00
Mark
d85a1cb131 [add] migration script 2026-04-28 13:41:46 +08:00
wxy
c59e179cc2 feat(workflow): incorporate model references and streamline parsing logic
- Incorporate model reference metadata (name, provider, type) into workflow nodes and refactor parsing logic to support the new format.
- Streamline code structure by removing redundant model_id fields to enhance maintainability.
2026-04-28 11:18:06 +08:00
Ke Sun
7621321d1b Revert "refactor(memory): replace raw dict responses with Pydantic schema mod…" 2026-04-27 18:50:26 +08:00
Ke Sun
0e29b0b2a5 Merge pull request #1016 from SuanmoSuanyangTechnology/feat/episodic-memory-detail-and-pagination
refactor(memory): replace raw dict responses with Pydantic schema mod…
2026-04-27 18:43:53 +08:00
lanceyq
2fa4d29548 fix(memory): use explicit None checks and remove unnecessary Optional type
- Replace truthiness checks with 'is not None' for data.message in graph_data and community_graph endpoints to handle empty string correctly
- Remove Optional wrapper from GraphStatistics.edge_types since it already has a default_factory
2026-04-27 18:39:33 +08:00
lanceyq
9a5ce7f7c6 refactor(memory): replace raw dict responses with Pydantic schema models in user memory controllers
- Add user_memory_schema.py with typed Pydantic models for all user memory
  API responses: MemoryInsightReportData, UserSummaryData, GraphData,
  MemoryTypeStatItem, cache result models, and RelationshipEvolutionData
- Refactor user_memory_controllers.py to construct schema instances and
  return model_dump() instead of raw dicts
- Remove unused imports (datetime, timestamp_to_datetime, EndUserInfoResponse,
  EndUserInfoCreate, EndUser)
2026-04-27 17:57:06 +08:00
Timebomb2018
531d785629 fix(multimodal): support HTML image tags in document extraction and chat responses
- Replace plain image URLs with `<img src="..." data-url="...">` HTML tags in multimodal and document extractor services
- Propagate citations from workflow end events to client responses
- Update system prompts to instruct LLMs to render images using Markdown `![alt](url)` with strict UUID-preserving URL copying
2026-04-27 17:56:58 +08:00
Mark
4bef9b578b [fix] document file delete 2026-04-27 17:35:13 +08:00
Mark
c53fcf3981 [fix] old code file_path 2026-04-27 17:10:00 +08:00
Mark
2997558bc8 Merge branch 'release/v0.3.2' into feature/rag2
* release/v0.3.2: (245 commits)
  fix(conversation_schema): refine citations field type to Dict[str, Any]
  fix(tool_controller): re-raise HTTPException to preserve original status codes
  fix(workflow): add reasoning content, suggested questions, citations and audio status support
  feat(workflow): augment logging queries and ameliorate error handling
  fix(api_key): bypass publication check for SERVICE type API keys
  fix(multimodal_service): add '文档内容:' prefix to document text and simplify image placeholder text
  fix(api): convert config_id to string in write_router
  fix(api): convert end_user_id to string in write_router
  fix(multimodal_service): refactor image processing to use intermediate list before extending result
  fix(web): node status ui
  fix(api): correct import paths in memory_read and celery task command
  fix(api): correct import paths in memory_read and celery task command
  refactor(tool): flatten request body parameters for model exposure
  fix(api): correct import paths in memory_read and celery task command
  refactor(workflow): streamline node execution handling and log service logic
  feat(web): http request add process
  feat(web): workflow app logs
  fix(app_chat_service,draft_run_service): move system_prompt augmentation before LangChainAgent instantiation
  fix(app_chat_service,draft_run_service): move system_prompt augmentation before LangChainAgent instantiation
  refactor(http_request): simplify request handling and remove unused fields
  ...

# Conflicts:
#	api/app/controllers/file_controller.py
#	api/app/tasks.py
2026-04-27 16:13:57 +08:00
Mark
30cdf229de [modify] rag file system 2026-04-27 16:05:27 +08:00
山程漫悟
ce4a3daec7 Merge pull request #1012 from SuanmoSuanyangTechnology/fix/wxy-032
feat(workflow): augment logging queries and ameliorate error handling
2026-04-27 16:00:49 +08:00