2025-11-06 15:03:23 +08:00
2025-11-06 13:26:38 +08:00
2025-11-06 14:34:44 +08:00
2025-11-04 23:57:37 +08:00
2025-11-04 23:57:37 +08:00
2025-11-03 23:28:54 +08:00
2025-11-06 15:03:23 +08:00
2025-11-06 14:38:34 +08:00
2025-11-06 14:38:34 +08:00
2025-10-29 17:02:19 +08:00
2025-11-06 15:03:23 +08:00

langchain-agent

Install

  1. Install xiaoliang-catering for carttool support; otherwise, comment out in lang_agent/tool_manager.py

Environs

Need these:

export ALI_API_KEY=REDACTED
export ALI_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
export MCP_ENDPOINT=REDACTED
export LANGSMITH_API_KEY=REDACTED

Install

need to install: xiaoliang-catering


# for developement
python -m pip install -e .

# for production
python -m pip install .

Runables

all runnables are under scripts

Eval Dataset Format

see scripts/make_eval_dataset.py for example. Specific meaning of each entry:

[
    {
        "inputs": {"text": "用retrieve查询光予尘然后介绍"}, // model input; use list for conversation
        "outputs": {"answer": "光予尘茉莉绿茶为底",         // reference answer
                    "tool_use": ["retrieve"]}            // tool uses; assume model need to use all tools if more than 1 provided 
    }
]

Configure for Xiaozhi

  1. Start the fastapi_server/server_dashscope.py file
  2. Make a new model entry in xiaozhi with AliBL as provider.
  3. Fill in the base_url entry. The other entries (API_KEY, APP_ID) can be garbage
Description
No description provided
Readme 1.5 MiB
Languages
Python 76.4%
TypeScript 15.6%
HTML 3.8%
CSS 1.9%
Shell 1.9%
Other 0.3%