Best practices for enterprise features

更新时间:
复制 MD 格式

Tongyi Lingma offers enterprise features for code completion, knowledge base Q&A, and custom extension instructions. These features use your company's code repositories and documents to improve code standardization, information management efficiency, and the developer experience.

Using enhanced enterprise code completion

Use your company's code repositories as context when you generate in-line code with the Tongyi Lingma  IDE plugin. This tailors code completion suggestions to your company's coding standards and business logic.

1. Prepare code repositories

  • Daily development: You can upload frequently-used code snippets or templates to increase code reuse and development efficiency.

  • Specific business scenarios: You can integrate proprietary frameworks and core business logic to ensure consistency and reduce redundant development.

2. Best practices

  • Backend: You can generate code completions in the IDE using comments or function signatures.

  • Frontend: You can implement component code completion using tags or natural language comments.

For more information about best practices for different scenarios, see Best practices for enhanced enterprise code completion.

Best practices for enterprise knowledge base Q&A

  1. Build a high-quality knowledge base:

    A high-quality knowledge base provides accurate information. This makes the generated answers more relevant to your company's specific needs. The enterprise knowledge base Q&A feature in Tongyi Lingma lets you upload documents. Lingma then converts these documents into knowledge data for retrieval-augmented generation.

  2. Knowledge base permission management:

    You can organize knowledge bases by subject and member visibility to control information sharing and protection. General-purpose knowledge bases help all employees understand standard documents. Specialized knowledge bases meet the needs of specific teams or departments. This improves the efficiency and focus of information management.

Scenarios for custom enterprise extension instructions

Custom extension instructions allow you to expand your company's personalized capabilities. They simplify the use of AI chat for developers.

Example scenarios

  • Code standard checks: You can check code before you commit it. This ensures that the code meets company standards and reduces future problems.

  • Automatic API documentation: After you develop an API, you can use an instruction to generate its documentation. This helps service consumers develop faster.

  • Variable naming: You can obtain suggestions for variable names that follow company and team standards. This improves code readability and maintainability.

Instruction execution flow

  • You can select a code snippet and run a custom instruction. The model then generates suggestions or documents based on the instruction and returns the result.

For more information about example solutions, see Scenarios for custom enterprise extension instructions.