A
securityA
licenseA
qualityAllows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
Last updated -
1
580
Python
MIT License
PromptLab 将用户的基本查询转换为针对 AI 系统优化的提示。它会自动检测内容类型(论文、电子邮件、技术说明、创意写作),应用定制的模板,并验证增强的提示是否符合原始意图。
PromptLab 采用模块化架构,并配备基于 YAML 的模板系统,任何人都无需任何编程知识即可创建和管理提示模板。该系统最终通过结构更完善的输入生成更高质量的 AI 响应。
PromptLab 由三个主要组件组成:
prompt_templates.yaml
)- 针对不同内容类型的结构化模板promptlab_server.py
) - 通过 LangGraph Workflow 的标准化协议提供模板promptlab_client.py
)- 处理用户查询的瘦客户端mcp[cli]
langchain-openai
langgraph>=0.0.20
python-dotenv
pyyaml
模板在prompt_templates.yaml
中使用结构化格式定义:
prompt_templates.yaml
TEMPLATES_FILE
- 模板 YAML 文件的路径(默认值: prompt_templates.yaml
)OPENAI_API_KEY
- 用于 LLM 访问的 OpenAI API 密钥MODEL_NAME
- 要使用的 OpenAI 模型(默认值: gpt-3.5-turbo
)PERSONA_SERVER_SCRIPT
- 服务器脚本的路径(默认值: promptlab_server.py
)模板可以包括动态调整参数的转换:
“为我的教授写一些关于可再生能源的东西”
MIT 许可证 - 详情请参阅许可证文件
欢迎贡献代码!欢迎提交 Pull 请求。
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iRahulPandey/PromptLab'
If you have feedback or need assistance with the MCP directory API, please join our Discord server