writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
server-setup-and-cliInstall, initialize, configure, and start Langchain-Chatchat with the chatchat CLI, data root, model providers, and deployment options.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill for Langchain-Chatchat installation, CHATCHAT_ROOT, YAML configuration, chatchat init, chatchat kb, chatchat start, Docker/Xinference deployment planning, and model-provider setup.
references/cli-reference.md lists verified CLI commands and flags.references/configuration.md explains CHATCHAT_ROOT, generated YAML files, and important settings groups.references/model-provider-setup.md explains provider separation, model names, and Xinference/Ollama/LocalAI/FastChat/One API style configuration.references/deployment.md covers pip/source/Docker deployment choices and why AutoDL scripts are not bundled as runnable helpers.references/troubleshooting.md gives setup-specific symptoms and recovery steps.scripts/chatchat_config_audit.py against an initialized data root to check expected config/data files without starting services.python -m pip install -U langchain-chatchat. For source development, install the server package editable from the server package root.CHATCHAT_ROOT to a persistent directory if the current working directory is not the desired data/config location.chatchat init before any service startup. Do not use --recreate-kb until embedding provider settings are valid.chatchat kb -r for full vector rebuild only after the embedding model is reachable. Use update/increment/prune flags for lighter maintenance.chatchat start --api, chatchat start --webui, or chatchat start -a.chatchat --help
chatchat init --help
chatchat kb --help
chatchat start --help
Common command sequence:
export CHATCHAT_ROOT=/path/to/chatchat-data
chatchat init
# edit generated YAML files: model_settings.yaml, kb_settings.yaml, basic_settings.yaml, tool_settings.yaml, prompt_settings.yaml
chatchat kb -r
chatchat start -a
If chatchat kb -r fails, do not retry blindly. Confirm the embedding provider endpoint and model name first.
../knowledge-base-and-api/SKILL.md for route payloads, RAG modes, tools, and vector-store API calls.../python-sdk-and-adapters/SKILL.md for SDK clients, open_chatcaht, and LangChain adapter classes.CHATCHAT_ROOT, provider reachability, or service startup.chatchat kb --clear-tables, prune commands, or --recreate-kb against user data until the target CHATCHAT_ROOT and backup status are clear.