数据检索服务

基于watsonx.data的Claude-Watsonx-Studio快速启动服务,支持多种模型选择和工具配置,用于数据检索和分析。

  • by rkarthik29
  • Dockerfile
  • 本地部署
  • 更新于
在 GitHub 查看 rkarthik29/watsonx_mcp_with_webui

使用说明

Claude Watsonx Studio快速入门

  1. 这是基于watsonx数据MCP检索服务器项目(https://github.com/IBM/ibm-watsonxdata-mcp-server)

  2. 先决条件

     ├── Copy .env.sample to .env and populate the config values.    
     ├── Watsonx.data service (lite is enough, in a region of your choice)            
     ├── A vaild data API key for a watsonx.data user.
          ├──Should have access to the cluster resources, catalog etc.
          └── Should have access to the presto and spark engines
     ├── Watsonx-ai project if you want to use ibm granite models.
     ├── Watson-ai project key.
     └── Some credit in your anthropic account if you want to use anthropic claude models.
    
    
  3. 编辑 .env 文件并添加您的API密钥:

    ANTHROPIC_API_KEY=<your-antropic-key> # if you want to use claude models
    
    # Base URL for watsonx.data service, this would be different for each region.
    # needed to configure MCP tool
    WATSONX_DATA_BASE_URL=https://us-south.lakehouse.cloud.ibm.com/lakehouse/api/
    WATSONX_DATA_API_KEY=#This is needed to connect to watsonx.data services
    WATSONX_DATA_INSTANCE_ID=<The CRN of your watsonx.data service>
    #Watsonx-ai settings need if you want to use the ibm granite models.
    WATSONX_API_KEY=<key to access your watsonx-ai project>
    WATSONX_PROJECT_ID=<Project of your watsonx-ai project, needed to use ibm granite models>
    #URL for watsonx ai and ml service, region specific.
    WATSONX_URL=https://us-south.ml.cloud.ibm.com
    
    #change these if you want a different login than default.
    WEBUI_ADMIN_EMAIL=admin@ibm.com #default, change if you want a different user.
    WEBUI_ADMIN_PASSWORD=pass123 #default, change if you want a different user.
    WEBUI_ADMIN_NAME=Admin #default, change if you want a different user.
    
  4. 运行: docker组成-up-d

  5. 打开http://localhost:3000

  6. 开始新的聊天,确保根据您的配置选择您选择的型号。

  7. 确保选择了MCP工具,以便模型可以利用它。

  8. 开始和克劳德聊起你的watsonx.data吧! 🎉