-
DashScope API:
${AI_DASHSCOPE_API_KEY}DashScope API key
-
TavilySearch API:
${TAVILY_API_KEY}TavilySearch API key
-
Report export path:
${AI_DEEPRESEARCH_EXPORT_PATH}TIP: if omitted, files will be stored in the project root
- Jina API:
${JINA_API_KEY} - aliyunaisearch:
- api-key:
${ALIYUN_AI_SEARCH_API_KEY} - base-url:
${ALIYUN_AI_SEARCH_BASE_URL}
- api-key:
-
redis:
${REDIS-PASSWORD}Redis password; TIP: defaults to localhost:6379
- The Python executor of the Coder node runs inside a Docker container and requires Docker configuration.
- Set
spring.ai.alibaba.deepresearch.python-coder.docker-hostin the config file; default isunix:///var/run/docker.sock. The project uses thepython:3-slimimage to create ephemeral containers. You can customize an image that includes common third-party libraries. Install them under/app/dependencyinside the image, and setspring.ai.alibaba.deepresearch.python-coder.image-nameto the image name in the config file.
- Set
- ElasticSearch:
- In
application.yml, setspring.ai.alibaba.deepresearch.rag.enabled: true - In
application.yml, setspring.ai.alibaba.deepresearch.rag.vector-store-type: elasticsearch - In
application.yml, configurespring.ai.alibaba.deepresearch.rag.elasticsearchwith ES connection details - Start ES middleware from the project root with the command below
docker compose -f docker-compose-middleware.yml up -d
- In the Knowledge Base page, create a new knowledge base and upload documents to ES
- In
- AMap MCP
{
"researchAgent": {
"mcp-servers": [
{
"url": "https://mcp.amap.com?key=${AI_DASHSCOPE_API_KEY}",
"sse-endpoint": null,
"description": "This is an AMap service",
"enabled": false
}
]
}
} In application.yml
set spring.ai.alibaba.deepresearch.short-term-memory.enabled: true, enable short-term memory
- Conversation Memory:
- In
application.ymlset spring.ai.alibaba.deepresearch.conversation-memory, configuration for conversation memory
- In
- User Role Memory:
- In
application.ymlset spring.ai.alibaba.deepresearch.user-role-memory, configuration for user role memory
- In
Langfuse Configuration
Using Langfuse Cloud
- Sign up at https://cloud.langfuse.com
- Create a new project
- Go to Settings → API Keys
- Generate a new API key pair (public and secret)
- Encode the credentials to Base64:
echo -n "public_key:secret_key" | base64
[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("public_key:secret_key")) - In your yml, select the endpoint and set the encoded string as env
YOUR_BASE64_ENCODED_CREDENTIALS
Reference: https://langfuse.com/docs/opentelemetry/get-started