Repository navigation
refactor: enhance schema recall #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
VLSMB
merged 24 commits into
spring-ai-alibaba:main
from
lzq986:feat/call-hybrid-search
Nov 14, 2025
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e916a44
refactor: enhance schema recall
lzq986 9c4c707
clean unsed node
lzq986 f182a70
feat: adapt flux output
VLSMB 47b9fc2
add semantic support
lzq986 1741072
Merge branch 'feat/call-hybrid-search' of github.com:lzq986/DataAgent…
VLSMB 19814c6
fix: python bug
VLSMB 66e3fbd
fix unit test
lzq986 840be4e
Merge branch 'spring-ai-alibaba:main' into feat/call-hybrid-search
VLSMB 495a870
fix TableRelationDispatcher unit test
lzq986 2ea5469
fix method buildBusinessKnowledgePrompt
lzq986 e48df2a
delete unused code
lzq986 d91cafe
add metadata constant
lzq986 92eda3a
add semantic support
lzq986 a1bd973
update semantic crud cotroller
lzq986 93c475b
fix MappersTest.java
lzq986 fd74985
feat: add semantic frontend
VLSMB 1e9e995
fix bugs
VLSMB 40dbec1
feat: add search text-edit
VLSMB 51e8c2e
fix: bugs in schema.sql
VLSMB 757f854
adjust semantic and business knowledge
lzq986 b733771
adjust by copilot feedback
lzq986 60857f4
fix MapperTest type error.
lzq986 6b87048
refactor: workflow
VLSMB 6bbda9a
chore update README.md
lzq986 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...libaba-data-agent-chat/src/main/java/com/alibaba/cloud/ai/aop/NodeEntryLoggingAspect.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /* | ||
| * Copyright 2025 the original author or authors. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * https://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package com.alibaba.cloud.ai.aop; | ||
|
|
||
| import com.alibaba.cloud.ai.graph.OverAllState; | ||
| import lombok.extern.slf4j.Slf4j; | ||
| import org.aspectj.lang.JoinPoint; | ||
| import org.aspectj.lang.annotation.Aspect; | ||
| import org.aspectj.lang.annotation.Before; | ||
| import org.aspectj.lang.annotation.Pointcut; | ||
| import org.springframework.stereotype.Component; | ||
|
|
||
| /** | ||
| * AOP切面类,用于记录所有Node类的入口日志 | ||
| * | ||
| * | ||
| */ | ||
| @Aspect | ||
| @Component | ||
| @Slf4j | ||
| public class NodeEntryLoggingAspect { | ||
|
|
||
| @Pointcut("execution(* com.alibaba.cloud.ai.node..*.apply(com.alibaba.cloud.ai.graph.OverAllState))") | ||
| public void nodeEntry() { | ||
| } | ||
|
|
||
| /** | ||
| * 在所有实现NodeAction接口的类的apply方法执行前记录日志 | ||
| * @param joinPoint 连接点 | ||
| */ | ||
| @Before("nodeEntry()") | ||
| public void logNodeEntry(JoinPoint joinPoint) { | ||
| String className = joinPoint.getTarget().getClass().getSimpleName(); | ||
| log.info("Entering {} node", className); | ||
|
|
||
| // 获取方法参数并打印状态信息 | ||
| Object[] args = joinPoint.getArgs(); | ||
| if (args != null && args.length > 0 && args[0] instanceof OverAllState state) { | ||
| log.debug("State: {}", state); | ||
| } | ||
| } | ||
|
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.