LLM app for navigating social situations with nuanced understanding
Top 28.6% on sourcepulse
Tianji is an open-source project focused on developing large language models for traditional Chinese social etiquette scenarios. It targets developers and users looking to build AI applications for nuanced human interactions, offering tutorials and tools for prompt engineering, RAG, Agents, and LLM fine-tuning. The project aims to equip users with full-stack development capabilities for LLM applications in specific social contexts.
How It Works
Tianji employs a multi-faceted approach to address social etiquette. It leverages pure prompt engineering for direct LLM interaction, Agent frameworks (like MetaGPT) for more complex, customized responses, and RAG with knowledge bases for retrieving specific etiquette rules. Additionally, it supports fine-tuning various LLM bases (e.g., InternLM, Qwen) using techniques like LoRA with curated social etiquette datasets. This combination allows for both general conversational ability and specialized knowledge retrieval and generation.
Quick Start & Requirements
pip install -e .
.env
file. For network search capabilities in Agent mode, a TAVILY_API_KEY is needed. Hugging Face token (HF_TOKEN
) may be required for certain model downloads.python3 run/tianji_prompt_webui.py
streamlit run run/metagpt_webui.py
python run/demo_rag_langchain_onlinellm.py
Highlighted Details
Maintenance & Community
The project actively updates its modules and models, with recent activity including model version updates, Agent module refactoring, and knowledge base enhancements. It encourages community contributions via Pull Requests and provides guidance for replicating the project. Links to community resources like WeChat groups are mentioned.
Licensing & Compatibility
The README does not explicitly state a license. However, the open-source nature and availability of code and data on Hugging Face suggest a permissive approach, though specific terms for commercial use or closed-source linking are not detailed.
Limitations & Caveats
The project is still under active development, with several roadmap items indicating ongoing work, such as adding intent recognition and expanding supported API calls. Some Hugging Face repositories may require specific access permissions. The absence of a clearly stated license could be a barrier for some users.
3 months ago
1 day