Quickly build a DeepSeek corporate knowledge base application

更新时间:
复制 MD 格式

This topic describes how to quickly build a DeepSeek corporate knowledge base application.

1. Create a Model Studio application

  1. Log on to the Model Studio console and create a Model Studio application.

2. Select a DeepSeek series model, such as V3 or R1. You may need to activate the model service.

  1. Create a knowledge index. Follow the on-screen instructions to create an empty knowledge base.

  1. In the Data Management section, upload a data file.

  1. Attach a knowledge base to the application and configure the retrieval feature.

  1. Publish the application.

2. Obtain the required configuration information

Configuration item

Description

Model Studio API-KEY

The access credential for the Model Studio Q&A service API. Obtain this credential in the Model Studio console.

Model Studio application ID

The Model Studio application ID. Obtain it from My Applications in the Model Studio console.

Model Studio space ID

The Model Studio space ID. It is used to distinguish knowledge base spaces during API calls. Obtain it from the Model Studio console.

Model Studio service endpoint

https://bailian.cn-beijing.aliyuncs.com/{Model Studio space ID}

Model Studio service header

Additional header for the Model Studio POP API endpoint service:

x-acs-version:2023-12-29

Alibaba Cloud AK

A credential to access Alibaba Cloud OpenAPI. For more information about how to obtain an Alibaba Cloud OpenAPI AccessKey pair, see Create an AccessKey pair.

Alibaba Cloud SK

3. Create a MobiNext application

1. Go to your Model Studio application, select a publishing channel, and then select the MobiNext sharing channel.

2. Select the Corporate Knowledge Q&A template and click Next.

3. Enter an application name. Then, enter the resource configuration information from the previous section and publish the application.

image.pngimage.png

4. Customize and publish the application

  1. Customize the company name and logo information:

  1. Set anonymity permissions and enable anonymous access for chat and H5:

    1. In the Mobi designer, enable "Allow anonymous access":

  1. In the MobiNext console, go to Users and Permissions > Permission Groups and edit the anonymous permission group:

  1. Select 'Development environment' and 'Production environment', and then configure anonymous access for the new application:

  1. Click "Permission Settings" and enable the anonymous permission only for "Conversation Page" and "Knowledge Q&A Mobile Version".

  1. Switch to Integrated Access Permissions and select the All checkbox:

  1. Publish the application in the designer and view the home page using the runtime link:

  1. Go to the home page and verify that anonymous users cannot access the knowledge base console.

b. Access the Path Q&A mobile version and the session page. Verify that anonymous users can access the pages:

image.pngimage.png

b. Log on to your Alibaba Cloud account and access the home page. Verify that the administrator can access the knowledge base console:

5. Publish to the production environment

After you test the application in the development environment, attach an environment and a domain name to the application, and then publish it to the production environment.

Add a domain name

Add a domain name that has an ICP filing to the MobiNext platform. After you publish the application, you can access it over HTTPS using your own domain name.

The MobiNext platform supports two methods for adding a domain name and setting an SSL certificate:

  1. Add your domain name to Alibaba Cloud Web Application Firewall (WAF), and then add the domain name to the MobiNext platform.

  2. Use the free test certificate and built-in WAF service provided by the MobiNext platform. This service is for testing purposes only. For large-scale production releases, you must configure your own WAF firewall and HTTPS certificate.

For more information, see Environments and domain names.

  1. Associating a domain name with an environment

After your domain name is verified, you can view its association record in the domain name list. From the list, you can associate the domain name with an environment or cancel the association. This section describes how to associate the domain name with the production environment:

  1. Publish the application to the production environment

After you add the domain name and attach it to an environment, publish the application to the production environment:

6. Extensions

  • To build a personal knowledge base, you can use the DeepSeek-based Personal Knowledge Base template to create your own personal knowledge assistant:

    • Knowledge Q&A:

    • Knowledge base management: