WO2025200593A1 - 信息处理方法、装置、设备和存储介质 - Google Patents

信息处理方法、装置、设备和存储介质

Info

Publication number
WO2025200593A1
WO2025200593A1 PCT/CN2024/138844 CN2024138844W WO2025200593A1 WO 2025200593 A1 WO2025200593 A1 WO 2025200593A1 CN 2024138844 W CN2024138844 W CN 2024138844W WO 2025200593 A1 WO2025200593 A1 WO 2025200593A1
Authority
WO
WIPO (PCT)
Prior art keywords
knowledge base
data
target
type
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/138844
Other languages
English (en)
French (fr)
Inventor
张元熙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Publication of WO2025200593A1 publication Critical patent/WO2025200593A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9032Query formulation
    • G06F16/90324Query formulation using system suggestions
    • G06F16/90328Query formulation using system suggestions using search space presentation or visualization, e.g. category or range presentation and selection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3322Query formulation using system suggestions
    • G06F16/3323Query formulation using system suggestions using document space presentation or visualization, e.g. category, hierarchy or range presentation and selection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition
    • G06N5/025Extracting rules from data

Definitions

  • FIG1 shows a schematic diagram of an example environment in which embodiments according to the present disclosure may be implemented
  • FIG2 shows a schematic diagram of a knowledge base architecture according to some embodiments of the present disclosure
  • FIG. 7A to 7F illustrate examples of pages for managing a knowledge base of document types according to some embodiments of the present disclosure
  • FIGS. 13A and 13B are flowcharts illustrating an example process of retrieving image type knowledge base data according to some embodiments of the present disclosure
  • FIG14 shows a flowchart of an example process of information processing according to some embodiments of the present disclosure
  • FIG16 illustrates a block diagram of an electronic device capable of implementing various embodiments of the present disclosure.
  • executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
  • a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to the software or hardware such as the electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
  • a prompt message in response to receiving an active request from a relevant user, may be sent to the relevant user in the form of a pop-up window, in which the prompt message may be presented in text form.
  • the pop-up window may also include a selection control for the user to select "agree” or “disagree” to provide information to the electronic device.
  • model can learn the association between corresponding inputs and outputs from training data, so that after training is completed, corresponding outputs can be generated for given inputs.
  • the generation of the model can be based on machine learning technology.
  • Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multiple layers of processing units.
  • a neural network model is an example of a model based on deep learning.
  • model may also be referred to as “machine learning model”, “learning model”, “machine learning network” or “learning network”, and these terms are used interchangeably in this article.
  • some embodiments of the present disclosure can provide a modular, simple, and data-selective knowledge base creation solution, allowing users to easily and quickly create knowledge bases that are easy to index data, while also making it easier for users to obtain the information they need from the knowledge base.
  • FIG. 1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented.
  • an application management platform 110 can provide a user 105 with an environment for creating, managing, and publishing knowledge bases, data sets, various applications, and workflows.
  • the application management platform 110 can be any appropriate platform that supports users in developing knowledge bases, various applications, workflows, and the like.
  • the application management platform 110 can be a low-code platform that provides a collection of tools for knowledge base creation.
  • the application management platform 110 can support visual development of knowledge bases, applications, and workflows, allowing developers to skip the manual coding process and speed up the development cycle. Such a platform can support users in efficient development and implement operations such as application creation and application function adjustment.
  • the application management platform 110 can be deployed locally on the terminal device of the user 105, and/or can be supported by a remote server.
  • the terminal device of the user 105 can run a client of the application management platform 110, which can support the interaction between the user and the application management platform 110.
  • the application management platform 110 runs locally on the user's terminal device, the user 105 can directly use the client to interact with the local application management platform 110.
  • the server-side device can, based on the communication connection with the terminal device, realize the provision of services to the client running in the terminal device.
  • the application management platform 110 can present a corresponding page 122 to the user 105 based on the operation of the user 105 to output information to the user 105 and/or receive information from the user 105.
  • the application management platform 110 can be associated with a corresponding database, which stores the data or information required for the knowledge base creation process supported by the application management platform 110.
  • the database can store the code and description information corresponding to each functional module used to constitute the knowledge base.
  • the application management platform 110 can also perform operations such as calling, adding, deleting, and updating on the functional modules in the database.
  • the database can also store operations that can be performed on different functional blocks. For example, in a scenario where a knowledge base is to be created, the application management platform 110 can call the corresponding functional blocks from the database to build the knowledge base.
  • the user 105 can create a knowledge base 120 on the application management platform 110 as needed and publish the knowledge base 120.
  • the knowledge base 120 can be published to any appropriate platform as long as the platform can support access to the knowledge base.
  • the knowledge base 120 can be associated with one or more applications 135 or workflows 136.
  • the application 135 or workflow 136 may need to rely on the knowledge in the knowledge base 120 to determine the response to the user's query.
  • the application 135 may include a digital assistant.
  • the knowledge base 120 can be configured to the digital assistant.
  • the digital assistant can interact with the user 135 based on the content in the knowledge base 120.
  • the interactive messages between the user 135 and the digital assistant may include messages in multimodal forms, such as text messages (e.g., natural language text), voice messages, image messages, video messages, and the like.
  • the application management platform 110 can run on appropriate electronic devices.
  • the electronic devices here can be any appropriate type of device with computing capabilities, including terminal devices or server devices.
  • the terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio/video players, digital cameras/camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof.
  • the server device can, for example, include a computing system/server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and so on.
  • the application management platform 110 can be implemented based on cloud services.
  • FIG1 illustrates a single user interacting with the application management platform 110, multiple users may access the application management platform 110 to each create a knowledge base, develop applications, workflows, and the like.
  • the knowledge base creation process described in the embodiments of the present disclosure can be implemented on a knowledge base creation platform, a terminal device on which the knowledge base creation platform is installed, and/or a server corresponding to the knowledge base creation platform.
  • the description is from the perspective of the knowledge base creation platform, such as the application management platform 110 shown in Figure 1.
  • the page presented by the application management platform 110 can be presented via the terminal device of the user 105, and user input can be received via the terminal device of the user 105.
  • the user 105 who creates the knowledge base is sometimes also referred to as a knowledge base creator, a knowledge base developer, etc.
  • the user 105 can initiate a creation request to the application management platform 110 as needed.
  • the application management platform 110 presents a page for creating a knowledge base.
  • the user 105 can configure the knowledge base to be created (assuming it is the knowledge base 120 shown in Figure 1).
  • the page for creating a knowledge base is designed to include at least one configuration area for receiving configuration information of the knowledge base, and each configuration area is defined as receiving a type of configuration information required for building the knowledge base.
  • the second configuration area presents at least one supported type.
  • the at least one type of data source may include at least one of a local data source, an online data source, a database, custom data, and the like.
  • page 400A of FIG4A shows a second configuration area 420 associated with the document type selection box in the first configuration area 410, which includes a plurality of document selection boxes, each of which corresponds to a target data source.
  • the target data sources here may include local documents (for example, local documents in formats such as PDF, TXT, DOCX, etc.), online data (for example, obtaining content from an online web page), XX application (document data in any application or database can be obtained), and customization (for example, document content can be customized to be created and edited).
  • FIG4D illustrates the customization of document-type data
  • a corresponding data input area may also be provided for receiving user-defined table data, such as one or more table entries.
  • a corresponding data input area such as a drawing board, may also be provided for receiving user-defined images.
  • the application management platform 110 can respond to triggering the automatic segmentation and cleaning control 456 and use the automatic segmentation and pre-processing rules as index setting information for the document.
  • the automatic segmentation and pre-processing rules can be set by technicians as needed, and this disclosure does not limit this.
  • the application management platform 110 can use the customized segmentation rules, segment length, and pre-processing rules as the index setting information of the document in response to triggering the customized control 457.
  • the user can enter the customized segmentation rules, segment length, and pre-processing rules in the customized control 457 through natural language.
  • Pages 500A to 500G illustrate examples of pages 500A to 500G for creating an image-type knowledge base according to some embodiments of the present disclosure.
  • Pages 500A to 500G may be provided by the application management platform 110 shown in FIG1 , for example.
  • the application management platform 110 may present a second configuration area 420 as shown in page 500A of FIG. 5A in response to a selection operation on the image type selection box in the first configuration area 410 .
  • the second configuration area 420 associated with the image type selection box in the first configuration area 410 may include multiple image selection boxes, each of which may correspond to a target data source.
  • the target data sources may include local images (e.g., local image files supporting JPG, JPEG, and PNG), online images (e.g., images obtained from online web pages), XX applications (image files from any application or database may be obtained), and custom images (e.g., image files may be created and edited by the user).
  • page 500B of FIG5B provides an image upload area 510.
  • Image upload area 510 may provide information indicating acceptable image formats, sizes, etc.
  • image upload area 510 includes an image upload control 511.
  • application management platform 110 may receive a document uploaded to knowledge base 120 by user 105 through image upload control 511.
  • the application management platform 110 may also receive an image that the user 105 drags to the image upload area 510 .
  • the user 105 may select an image from the local images and drag it to the image upload area 510 to upload the image to the knowledge base 120 .
  • page 500B of Figure 5B further provides an image area 515.
  • Image area 515 may present at least one image that has been uploaded to knowledge base 120.
  • Image area 515 may also present upload information of at least one image, which may include image name, image upload status, and image size.
  • the application management platform 110 may present a page 500C as shown in FIG. 5C in response to receiving the configuration of the image type and the online image.
  • page 500C in FIG5C provides a manual collection area 520.
  • the application management platform 110 may receive a URL link from a user, further retrieve an image from the URL link, and upload it to the knowledge base 120.
  • the image from the URL link may be retrieved by installing a browser extension in the manual collection area 520 and relying on the browser extension to retrieve the image from the URL link.
  • the application management platform 110 may further provide an image deletion control 556 in the thumbnail of at least one image in the image pre-selection area 555. Furthermore, the application management platform 110 may delete the image associated with the image deletion control 556 in the image pre-selection area 555 in response to triggering the image deletion control 556.
  • the application management platform 110 provides an image index setting area 565 on page 500F of FIG.
  • the application management platform 110 can receive image index setting information (also referred to as annotation settings) in the image index setting area 565.
  • image index setting area 565 provides an automatic annotation control 566 (also referred to as an automatically generated entry for annotation settings) and a manual annotation control 567 (also referred to as an input entry for user-defined annotation settings).
  • automatic annotation control 566 and the manual annotation control 567 are mutually exclusive controls.
  • the application management platform 110 can respond to triggering of the automatic annotation control 566, deeply understand the image, automatically generate a content description of the image, and use the content description as image index setting information.
  • automatic image annotation can be implemented as OCR (Optical Character Recognition) text recognition, extracting text information from the image as annotation information.
  • automatic image annotation can also be implemented as an image processing model, and this disclosure does not limit the specific image processing model.
  • the application management platform 110 can use the customized image description as the index setting information of the image in response to triggering the manual annotation control 567.
  • the user can enter the image description in the manual annotation control 567 through natural language.
  • the application management platform 110 may present the image processing process in page 500G.
  • the image processing process may include image processing progress.
  • the application management platform 110 may present a knowledge base list page in response to the knowledge base list viewing request.
  • the knowledge base list page may include multiple category viewing entries corresponding to multiple data types.
  • FIG6 shows an example of a page 600 of a knowledge base viewing list according to some embodiments of the present disclosure.
  • the page 600 may be provided by the application management platform 110 shown in FIG1 , for example.
  • the application management platform 110 may present a page 600 of a knowledge base viewing list in response to a request to view a knowledge base list.
  • the page 600 may present a knowledge base list area 610.
  • the knowledge base list area 610 may present multiple knowledge bases 120 (e.g., knowledge base A, knowledge base B, etc.), and the multiple knowledge bases 120 may include multiple data types (e.g., knowledge base A is a document type, knowledge base B is a table type, and knowledge base E is an image type).
  • the knowledge base list area 610 may also present knowledge base information corresponding to each knowledge base 120, and the knowledge base information may include the knowledge base type, knowledge base size, knowledge base creation time, etc.
  • the application management platform 110 may provide multiple category viewing entries 620 in page 600. Each category viewing entry is associated with the knowledge base 120 of the corresponding data type. As an example, as shown in FIG6 , the application management platform 110 provides an all-category viewing entry 620-1, a document category viewing entry 620-2, a table category viewing entry 620-3, and an image category viewing entry 620-4 (collectively or individually referred to as category viewing entries 620) on page 600.
  • the first data type corresponding to the all-category viewing entry 620-1 is the database 120 of all data types
  • the first data type corresponding to the document category viewing entry 620-2 is the document type
  • the first data type corresponding to the table category viewing entry 620-3 is the table type
  • the first data type corresponding to the image category viewing entry 620-4 is the image type.
  • the application management platform 110 may present the created knowledge base 120 of the first data type in the knowledge base list area 610 in response to selection of the category view entry 620 corresponding to the first data type among the multiple data types.
  • the application management platform 110 may also provide a knowledge base search input box 625 in the page 600. Furthermore, the application management platform 110 may receive search information input by the user 105 in the knowledge base search input box 625 and update the knowledge base list area 610 to present the knowledge base 120 associated with the search information.
  • the application management platform 110 may present a details page of the knowledge base 120 in response to a request to view details of the knowledge base 120.
  • the details page includes an aggregated presentation of multiple processed data items, and may also include metadata of the knowledge base 120 (the name and description of the knowledge base 120 may be collectively referred to as metadata of the knowledge base), a list of files imported into the knowledge base 120, index setting information corresponding to the knowledge base, and/or the number of data items.
  • the application management platform 110 may also provide a detail view control 613 in the knowledge base list area 610. Furthermore, the application management platform 110 may present a detail page of the knowledge base 120 associated with the detail view control in response to triggering of the detail view control 613.
  • the application management platform 110 may present a detail page 700A of the knowledge base 120 of the document type as shown in FIG. 7A in response to triggering the detail view control 613 of the knowledge base 120 associated with the document type.
  • Pages 700A to 700F illustrate examples of pages 700A to 700F of a knowledge base for managing document types according to some embodiments of the present disclosure.
  • Pages 700A to 700F may be provided by the application management platform 110 shown in FIG1 , for example.
  • the application management platform 110 may present a details page 700A for a knowledge base A of a document type, as shown in FIG7A .
  • the application management platform 110 may present a document presentation area 710 on the details page 700A, which may present multiple indexable data items.
  • the data corresponding to each color block is an indexable data item (here, a document type).
  • the application management platform 110 may present an aggregate presentation of data items obtained after processing the target file in a detail page.
  • the application management platform 110 may provide a document list control 715 on the details page 700A. Furthermore, in response to triggering the document list control 715, the application management platform 110 may present a list of documents (which may be referred to as files) imported into the knowledge base 120.
  • the list of documents may present multiple document selection items, each of which may include a full content selection item and at least one document name selection item associated with a single document. For example, as shown in the details page 700A of FIG. 7A , the list of documents may include a full content selection item, a XXXX.TXT selection item, a XXXXX.DOC selection item, and so on.
  • the application management platform 110 can, in response to a triggering of a document selection, update the at least one indexable data item associated with the document selection in the document presentation area 710. For example, as shown in detail page 700A of FIG7A , the application management platform 110 can, in response to a triggering of a full content selection, update the presentation of all data items in the knowledge base 120 in the document presentation area 710. The application management platform 110 can also, in response to a triggering of a XXXX.TXT selection, update the content of XXXX.TXT presented in the document presentation area 710.
  • the application management platform 110 may also present metadata corresponding to the knowledge base 120 (ie, the name and description information of the knowledge base 120 ) in the details page 700A.
  • the description information may indicate the type, function, etc. of the knowledge base 120 .
  • the application management platform 110 may also present index setting information corresponding to the knowledge base 120 (ie, the segmentation strategy of the knowledge base 120 ) in the details page 700A.
  • the application management platform 110 may present an upload data page 700C as shown in FIG7C in response to selecting the local document upload method in the newly added data page 700B.
  • the upload method of the upload data page 700C here can refer to the method involved in the document upload area 435 of the page 400B of FIG4B, and will not be repeated here.
  • the application management platform 110 may present an update content page 700E as shown in FIG7E in response to the segmentation setting completion of the re-segmentation page 700D.
  • the update content page 700E based on the segmentation setting on the re-segmentation page 700D, the segmentation setting of all data items in the knowledge base 120 may be updated (i.e., the index setting information is updated).
  • the application management platform 110 may also present an entry for setting the update frequency in the details page 700A.
  • the entry for setting the update frequency only appears in the details page of the knowledge base 120 where the target data source is selected as online data.
  • the application management platform 110 may provide an update frequency control in the details page of the knowledge base 120 where the target data source is selected as online data.
  • the application management platform 110 may present update frequency selection items in response to the triggering of the update frequency control.
  • the update frequency selection items may include no automatic update, daily update, update every 3 days, update every 7 days, etc.
  • the update frequency is the frequency of updating documents from online data, such as daily update means updating documents from online data once a day.
  • the specific update frequency selection items can be set as needed, and the present disclosure does not impose any restrictions on this.
  • the application management platform 110 may also present a processing control associated with the target data item in response to a first preset operation (long press or double click, etc.) on a target data item among multiple data items on the details page 700A.
  • a processing box 730 associated with the target data item in response to the first preset operation on the target data item.
  • the processing box 730 may include an edit option 731 and a delete option 732.
  • the application management platform 110 may receive editing information of the user 105 on the data item associated with the edit document control 731 in the edit mode in response to the triggering of the edit document control 731, thereby modifying the data item.
  • the application management platform 110 may also delete the data item associated with the delete row control 732 in response to the triggering of the delete row control 732.
  • the layout of its detail page and the information presented can be similar to the document-type knowledge base shown in Figures 7A to 7F .
  • the difference is that in a table-type knowledge base, each entry in the table (corresponding to the indexable data items in the table) can be presented to the user one by one.
  • the application management platform 110 may present a detail page 800A of the image-type knowledge base 120 as shown in FIG. 8A in response to triggering the detail view control 613 of the image-type knowledge base 120 .
  • the application management platform 110 may present a details page 800A associated with the knowledge base E of the image-type knowledge base 120, as shown in FIG8A .
  • the application management platform 110 may present an image presentation area 810 on the details page 800A, which may present multiple indexable data items.
  • each box containing an image and an image annotation is an indexable data item (here, of the image type).
  • the application management platform 110 can present a list of images imported into the knowledge base E (including the image content of each data item (including the image and image name)) and the text annotations corresponding to the images in the details page 800A.
  • the application management platform 110 can present the upload method of the data item in the knowledge base in the details page 800A.
  • the upload method may include local image, online image, XX application, and custom.
  • the 800A interface in Figure 8A presents an upload method area 815, and the upload method area 815 presents a local representation that the upload method of the data item in the knowledge base E is a local image.
  • the online method can be presented in the upload method area 815
  • the upload method of the data item in the knowledge base E is XX application
  • the XX application can be presented in the upload method area 815
  • the custom method can be presented in the upload method area 815.
  • the application management platform 110 may further present a target image on a detail page 800A in response to a request to view the details of a target image among the multiple images in the knowledge base 120.
  • a target image page 800B as shown in FIG8B in response to a request to view the details of the target image (receiving an operation of clicking on the image or annotating the image).
  • the application management platform 110 can present the target image's image content (image name and image) and image annotations (text annotations of the image) on the target image page 800B in FIG8B .
  • the application management platform 110 can also provide an annotation input box 825 (also known as an annotation display area) on the target image page 800B.
  • the application management platform 110 can receive annotation information input by the user through natural language and update the image annotations of the target image.
  • the application management platform 110 may also provide an automatic identification control 830 on the target image page 800B. Furthermore, when the target image's image annotation content is not empty, the application management platform 110 may, in response to triggering the automatic identification control 830, present an overlay reminder area 835 as shown in FIG8C . For example, as shown in FIG8C , the overlay reminder area may present a reminder message, which may be textual content such as "Confirm to overwrite existing annotation content.”
  • the overlay reminder area 835 may provide a confirmation option 836 and a cancel option 837.
  • the application management platform 110 may automatically generate annotation content for the target image in response to the triggering of the confirmation option 836.
  • the application management platform 110 may also cancel the automatic generation of annotation content for the target image in response to the triggering of the confirmation option 837.
  • the application management platform 110 can automatically generate annotation content for the target image in response to triggering of the automatic recognition control 830 .
  • the method of automatically generating annotation content for the target image can be to rely on a relevant image model to deeply understand the image to generate annotation content or perform OCR (Optical Character Recognition) text recognition to extract text information in the image as annotation information.
  • OCR Optical Character Recognition
  • the application management platform 110 may also provide an add image control 840 in the target image page 800A. Furthermore, the application management platform 110 may add a new image to the knowledge base in response to triggering the add image control 840.
  • the specific method for adding an image can refer to the image upload method described above in Figures 5A to 5G and will not be further described here.
  • the created knowledge base can be associated with an application or workflow.
  • the application management platform 110 can present a knowledge base selection area in the creation page of the target application or target workflow, and the knowledge base selection area indicates multiple data types.
  • the application management platform 110 can present at least a knowledge base corresponding to the target data type in the knowledge base selection area.
  • the application management platform 110 can associate the selected knowledge base with the target application or target workflow.
  • Figure 9 shows an example of a creation page 900 for configuring a knowledge base in a third-party application according to some embodiments of the present disclosure.
  • the third-party application can be a target application or a target workflow.
  • the application for which the knowledge base is to be configured is a digital assistant.
  • the creation page 900 can be provided, for example, by the application management platform 110 shown in Figure 1.
  • the application management platform 110 may present a creation page 900 for a digital assistant as shown in FIG9 .
  • the application management platform 110 may provide a knowledge base selection area 910 in the creation page 900.
  • the knowledge base selection area 910 may provide options corresponding to multiple data types of the knowledge base, document options, table options, and image options.
  • the knowledge base selection area 910 may include a document option 915-1, a table option 915-2, and an image option 915-3 (individually or collectively referred to as data type options 915).
  • the creator of the digital assistant may determine as needed to associate the digital assistant to one or more knowledge bases, and select the corresponding type for knowledge base association.
  • the application management platform 110 may present at least one or more knowledge bases 120 that have been created and are associable under the target type in the knowledge base selection area 910. For example, as shown in the creation page 900 of FIG9 , in response to selection of the document option 915-1 from among multiple data type options 915, the application management platform 110 may present a knowledge base 120 of the document type.
  • the application management platform 110 may associate the knowledge base 120 with the target application or target workflow. After the association is complete, the target application or target workflow determines whether to call the associated knowledge base as needed (e.g., based on received query information). If a call is determined to be necessary, the query information for the target application or target workflow can be processed by calling data from the associated knowledge base 120.
  • the application management platform 110 may further provide a storage selection area and/or a skill configuration area on the creation page 900 to configure storage or corresponding skills for a target application or a target workflow.
  • FIG10 illustrates a flowchart of an example process 1000 for adding table-type data according to some embodiments of the present disclosure.
  • This process 1000 can be performed on the aforementioned application management platform 110 or within the application management platform 110 (hereinafter, execution within the application management platform 110 is used as an example; the execution within the application management platform 110 is similar and is not further described here).
  • the process 1000 is described below with reference to FIG1 .
  • the application management platform 110 may receive a request 1010 to add a table fragment.
  • the application management platform 110 may receive a selected upload method, which may include local upload 1015 - 1 , API interface upload 1015 - 2 , and custom upload 1015 - 3 .
  • block 1020 - 1 may be executed.
  • the application management platform 110 receives a table file in a local file, such as a table file on a user's terminal device.
  • block 1020-2 may be executed.
  • the application management platform 110 may receive a table file associated with the API interface.
  • the API interface here may be any application that can provide a table type file.
  • block 1020 - 3 may be executed.
  • the application management platform 110 may receive the manually written table file.
  • block 1025 is executed.
  • the application management platform 110 may verify whether the layouts of the tables are aligned, and align the tables if the layouts are not aligned.
  • block 1030 is executed.
  • the application management platform 110 previews the table file and sets index setting information (eg, header structure settings, indicating header fields in the table for indexing data items) for the table file.
  • index setting information eg, header structure settings, indicating header fields in the table for indexing data items
  • block 1035 is executed.
  • the application management platform 110 may complete the addition of the form in response to the completion of uploading the form file.
  • one or more types of index libraries can be constructed for the data imported into the target type of knowledge base.
  • the processed multiple data items are respectively stored in multiple types of index libraries and are indexed by multiple types of data indexes. Pre-constructing multiple types of data indexes helps to provide diversified data retrieval methods in subsequent calls to the knowledge base.
  • Pre-constructing multiple types of data indexes helps to provide diversified data retrieval methods in subsequent calls to the knowledge base.
  • for the knowledge base 120 of document type at least two types of index libraries can be established for the data items imported therein.
  • the first index library can be a full-text search engine based on dependent keywords (such as ES (Elasticsearch)).
  • the second index library can be a vector-based text relevance query engine (such as Viking), in which the feature vectors corresponding to each segment (i.e., data item) of the document are used as the basis for relevance retrieval.
  • the establishment of the index library can be, for example, in the data processing stage of knowledge base creation.
  • FIG11 shows an example of a page 1100 provided by a knowledge base application according to some embodiments of the present disclosure.
  • the page 1100 may be provided by the application management platform 110 shown in FIG1 , for example.
  • semantic search option 1105-2 is enabled, then for the data in the knowledge base 120, a semantic search of the document data can be performed based on the feature vectors in the second index library.
  • full-text search option 1105-3 is enabled, then for the data in the knowledge base 120, a full-text search can be performed on the document data through keywords based on the first index library.
  • hybrid search option 1105-1 is enabled, then semantic search and full-text search of the document data can be performed simultaneously based on the first index library and the second index library.
  • the application management platform 110 can set the search strategy of the knowledge base 120 to a hybrid search strategy in response to the selection of the hybrid search option 1105-1.
  • a knowledge base 120 of the document type is associated with a digital assistant 1205.
  • the application management platform 120 can search for multiple groups of data items matching the query from index libraries of multiple types according to search algorithms corresponding to the multiple types, and select at least one data item from the multiple groups of data items as a response to the query based on the sorting results of the multiple groups of data items.
  • the second index library 1215-2 can be a vector-based text relevance query engine (such as Viking), in which the feature vectors corresponding to each segment (i.e., data item) of the document are used as the basis for relevance retrieval. Thereafter, the at least one data item 1220-1 and the at least one data item 1220-2 can be reordered, and at least one filtered data item 1225 can be obtained based on the reordering results. For example, the first K data items out of K1+K2 data items can be selected, where K is a positive integer greater than or equal to 1.
  • the application management platform 110 may receive query information input by a user via a digital assistant.
  • the application management platform 110 may calculate the similarity between the query information and the annotation information of the images in the knowledge base 120, and match the images in the knowledge base 120 based on the calculated similarity. Since both the query information and the annotation information are in text form, the application management platform 110 may also use a semantic search, full-text search, or hybrid search strategy within the image annotation information to find annotation information that matches the query information, in accordance with a document-based knowledge base approach.
  • the application management platform 110 may recall a preset number of images whose similarity meets a preset threshold and the annotation information corresponding to the images as recalled content.
  • FIG14 shows a flow chart of an example process 1400 for information processing according to some embodiments of the present disclosure.
  • the process 1400 may be implemented in the application management platform 110.
  • the process 1400 is described below with reference to FIG1.
  • the application management platform 110 presents a configuration page for receiving configuration information of the knowledge base in response to receiving the creation request, and the configuration page includes: a first configuration area for receiving the configuration of the target type of the knowledge base from multiple data types, and a second configuration area for receiving the configuration of the target data source of the knowledge base.
  • the application management platform 110 in response to receiving the index setting information, creates a knowledge base of the target type based on the index setting information.
  • the second configuration area presents at least one type of supported data source, where the at least one type of data source includes at least one of the following: a local data source, an online data source, a database, and custom data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开的实施例涉及信息处理方法、装置、设备和计算机可读存储介质。在此提出的方法包括:响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,配置页面包括:第一配置区域,用于接收对知识库的目标类型的配置,以及第二配置区域,用于接收对知识库的目标数据源的配置;响应于接收到对目标类型和目标数据源的配置,从目标数据源将目标类型的数据导入知识库;响应于数据导入完成,呈现与目标类型相对应的索引设置页面;以及基于索引设置信息来创建目标类型的知识库。

Description

信息处理方法、装置、设备和存储介质
本申请要求于2024年03月28日递交的、标题为“信息处理方法、装置、设备和存储介质”、申请号为202410371110.2的中国发明专利申请的优先权,以及本申请还要求于2024年11月29日递交,标题为“信息处理方法、装置、设备和存储介质”、申请号为202411748663.1的中国发明专利申请的优先权,上述申请的全部内容通过引用结合在本申请中。
技术领域
本公开的示例实施例总体涉及计算机领域,特别地涉及信息处理。
背景技术
近年来,随着人工智能的快速发展,知识库的创建与使用越来越广泛,知识库可以储备相关领域的专业知识或内容,供人们快速获取需要的信息。然而,现有的知识库的创建和调用方式仍不令人满意,可能会影响人们创建以及获取信息的效率。
发明内容
在本公开的第一方面,提供了一种信息处理方法。该方法包括:响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,配置页面包括:第一配置区域,用于从多个数据类型中接收对所述知识库的目标类型的配置,以及第二配置区域,用于接收对知识库的目标数据源的配置;响应于接收到对目标类型和目标数据源的配置,从目标数据源将目标类型的数据导入知识库;响应于数据导入完成,呈现与目标类型相对应的索引设置页面,用于接收针对导入的数据的索引设置信息;以及响应于接收到索引设置信息,基于索引设置信息来创建目标类型的知识库。
在本公开的第二方面,提供了一种用于信息处理的装置。该装置包括:呈现模块,被配置为响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,配置页面包括:第一配置区域,用于从多个数据类型中接收对知识库的目标类型的配置,以及第二配置区域,用于接收对知识库的目标数据源的配置;导入模块,被配置为响应于接收到对目标类型和目标数据源的配置,从目标数据源将目标类型的数据导入知识库;设置模块,被配置为响应于数据导入完成,呈现与目标类型相对应的索引设置页面,用于接收针对导入的数据的索引设置信息;创建模块,被配置为响应于接收到索引设置信息,基于索引设置信息来创建目标类型的知识库。
在本公开的第三方面,提供了一种电子设备。该设备包括至少一个处理单元;以及至少一个存储器,至少一个存储器被耦合到至少一个处理单元并且存储用于由至少一个处理单元执行的指令。指令在由至少一个处理单元执行时使设备执行操作以实现第一方面的方法。
在本公开的第四方面,提供了一种计算机可读存储介质。该计算机可读存储介质上存储有计算机程序,计算机程序可由处理器执行操作以实现第一方面的方法。
在本公开的第五方面,提供了一种计算机程序产品。计算机程序产品被有形地存储在计算机存储介质中并且包括计算机可执行指令,计算机可执行指令在由设备执行时使设备执行操作以实现第一方面的方法。
应当理解,本内容部分中所描述的内容并非旨在限定本公开的实施例的关键特征或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的描述而变得容易理解。
附图说明
结合附图并参考以下详细说明,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。在附图中,相同或相似的附图标记表示相同或相似的元素,其中:
图1示出了其中可以实施根据本公开的实施例的示例环境的示意图;
图2示出了根据本公开的一些实施例的知识库架构的示意图;
图3示出了根据本公开的一些实施例的数据处理的示例过程的流程图;
图4A至图4E示出了根据本公开的一些实施例的创建文档类型的知识库的页面的示例;
图5A至图5G示出了根据本公开的一些实施例的创建图像类型的知识库的页面的示例;
图6示出了根据本公开的一些实施例的知识库查看列表的页面的示例;
图7A至图7F示出了根据本公开的一些实施例的管理文档类型的知识库的页面的示例;
图8A至图8C示出了根据本公开的一些实施例的管理图像类型的知识库的页面的示例;
图9示出了根据本公开的一些实施例的在第三方应用中配置知识库的页面的示例;
图10示出了根据本公开的一些实施例的添加表格类型数据的示例过程的流程图;
图11示出了根据本公开的一些实施例的基于混合搜索调取知识库数据的示例过程的流程图;
图12示出了根据本公开的一些实施例的知识库应用设置的页面的示例;
图13A和13B示出了根据本公开的一些实施例的调取图像类型知识库数据的示例过程的流程图;
图14示出了根据本公开的一些实施例的信息处理的示例过程的流程图;
图15示出了根据本公开的一些实施例的用于信息处理的示例装置的示意性结构框图;以及
图16示出了能够实施本公开的多个实施例的电子设备的框图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中示出了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反,提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
需要注意的是,本文中所提供的任何节/子节的标题并不是限制性的。本文通篇描述了各种实施例,并且任何类型的实施例都可以包括在任何节/子节下。此外,在任一节/子节中描述的实施例可以以任何方式与同一节/子节和/或不同节/子节中描述的任何其他实施例相结合。
在本公开的实施例的描述中,术语“包括”及其类似用语应当理解为开放性包含,即“包括但不限于”。术语“基于”应当理解为“至少部分地基于”。术语“一个实施例”或“该实施例”应当理解为“至少一个实施例”。术语“一些实施例”应当理解为“至少一些实施例”。下文还可能包括其他明确的和隐含的定义。术语“第一”、“第二”等可以指代不同的或相同的对象。下文还可能包括其他明确的和隐含的定义。
在本文中,除非明确说明,“响应于A”执行一个步骤并不意味着在“A”之后立即执行该步骤,而是可以包括一个或多个中间步骤。
可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获得、使用、存储或删除)应当遵循相应法律法规及相关规定的要求。
可以理解的是,在使用本公开各实施例公开的技术方案之前,均应当根据相关法律法规通过适当的方式对本公开所涉及信息的类型、使用范围、使用场景等告知相关用户并获得相关用户的授权,其中,相关用户可以包括任何类型的权利主体,例如个人、企业、团体。
例如,在响应于接收到用户的主动请求时,向相关用户发送提示信息,以明确地提示相关用户,其请求执行的操作将需要获得和使用到相关用户的信息,从而使得相关用户可以根据提示信息来自主地选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供信息。
作为一种可选的但非限制性的实现方式,响应于接收到相关用户的主动请求,向相关用户发送提示信息的方式,例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或“不同意”向电子设备提供信息的选择控件。
可以理解的是,上述通知和获得用户授权过程仅是示意性的,不对本公开的实现方式构成限定,其他满足相关法律法规的方式也可应用于本公开的实现方式中。
如本文中所使用的,术语“模型”可以从训练数据中学习到相应的输入与输出之间的关联关系,从而在训练完成后可以针对给定的输入,生成对应的输出。模型的生成可以基于机器学习技术。深度学习是一种机器学习算法,通过使用多层处理单元来处理输入和提供相应输出。神经网络模型是基于深度学习的模型的一个示例。在本文中,“模型”也可以被称为“机器学习模型”、“学习模型”、“机器学习网络”或“学习网络”,这些术语在本文中可互换地使用。
如上文所提及的,随着人工智能的快速发展,知识库的创建与使用越来越广泛。知识库可以储备相关领域的专业知识或内容,供人们通过知识库快速获取需要的信息。然而,受限于现有的知识库的创建和调用方法,极大地影响了人们创建知识库以及获取信息的效率。
本公开的一些实施例提出了用于知识库创建、管理以及应用的方案。一种方案可以包括:响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,配置页面包括第一配置区域,用于从多个数据类型中接收对所述知识库的目标类型的配置,以及第二配置区域,用于接收对知识库的目标数据源的配置。响应于接收到对目标类型和目标数据源的配置,从目标数据源将目标类型的数据导入知识库。响应于数据导入完成,呈现与目标类型相对应的索引设置页面,用于接收针对导入的数据的索引设置信息。响应于接收到索引设置信息,基于索引设置信息来处理被导入的数据,以创建目标类型的知识库,所创建的知识库包括经处理后可索引的多个数据项。
以此方式,能够支持用户根据需要创建特定类型知识库,并基于知识库的类型引导用户配置知识库所需要的信息,提高了知识库创建效率以及知识库的后续使用的灵活度。此外,本公开的一些实施例能够提供模块化的、简单且自由选择数据的知识库的创建方案,让用户方便、快捷地创建便于索引数据的知识库,同时方便用户从知识库中获取需要的信息。
以下进一步结合附图来详细描述该方案的各种示例实现。
图1示出了本公开的实施例能够在其中实现的示例环境100的示意图。如图1所示,应用管理平台110可以为用户105提供知识库、数据集、各类应用、工作流的创建、管理和发布环境。应用管理平台110可以是支持用户开发知识库、各类应用、工作流等的任何适当平台。在一些实施例中,应用管理平台110可以是低代码平台,其提供知识库创建的工具合集。应用管理平台110可以支持对知识库、应用、工作流的可视化开发,从而使开发人员可以跳过手工编码的过程,加快开发周期。这样的平台能够支持用户进行高效开发,实现应用创建、应用功能调整等操作。
应用管理平台110可以被部署在用户105的终端设备本地,和/或可以由远程服务器来支持。例如,用户105的终端设备可以运行有应用管理平台110的客户端,该客户端可以支持用户与应用管理平台110的交互。在应用管理平台110运行在用户的终端设备本地的情况下,用户105可以直接利用客户端与本地的应用管理平台110进行交互。在应用管理平台110运行在服务端设备的情况下,服务端设备可以基于与终端设备之间的通信连接,实现对终端设备中运行的客户端的服务的供应。应用管理平台110可以基于用户105的操作而向用户105呈现相应的页面122,以向用户105输出和/或从用户105接收信息。
在一些实施例中,应用管理平台110可以关联到相应的数据库,其中存储应用管理平台110所支持的知识库创建过程所需的数据或信息。例如,数据库可以存储用于组成知识库的各个功能模块对应的代码和描述信息等。应用管理平台110还可以对数据库中的功能模块执行调用、增加、删除、更新等操作。数据库还可以存储对不同功能块可执行的操作。示例性的,在要创建知识库的场景,应用管理平台110可以从数据库中调用相应的功能块来搭建知识库。
在本公开的实施例中,用户105可以在应用管理平台110上根据需要创建知识库120,并发布知识库120。知识库120可被发布到任一适当的平台,只要这些平台能够支持对知识库的访问。
在发布后,知识库120可以被关联到一个或多个应用135或工作流136中。应用135或工作流136可能需要依赖于知识库120中的知识来确定对用户的查询的响应。在一些实施例中,应用135可以包括数字助手。知识库120可以被配置给数字助手。数字助手可以依靠知识库120中的内容与用户135进行交互对话。用户135与数字助手的交互消息可以包括多模态形式的消息,诸如文本消息(例如,自然语言文本)、语音消息、图像消息、视频消息,等等。
应用管理平台110可以运行在适当的电子设备。这里的电子设备可以是任何适当类型的具有计算能力的设备,包括终端设备或服务端设备。终端设备可以是任何类型的移动终端、固定终端或便携式终端,包括移动手机、台式计算机、膝上型计算机、笔记本计算机、上网本计算机、平板计算机、媒体计算机、多媒体平板、个人通信系统(PCS)设备、个人导航设备、个人数字助理(PDA)、音频/视频播放器、数码相机/摄像机、定位设备、电视接收器、无线电广播接收器、电子书设备、游戏设备或者前述各项的任何组合,包括这些设备的配件和外设或者其任何组合。服务端设备例如可以包括计算系统/服务器,诸如大型机、边缘计算节点、云环境中的计算设备,等等。在一些实施例中,应用管理平台110可以基于云服务来实现。
应当理解,仅出于示例性的目的描述环境100的结构和功能,而不暗示对于本公开的范围的任何限制。例如,虽然图1示出了与应用管理平台110交互的单个用户,但实际上可以多个用户访问应用管理平台110来各自创建知识库、开发应用、工作流等等。
以下将参考附图的示例来详细描述本公开的一些示例实施例。应当理解,附图中示出的页面仅仅是示例,实际可以存在各种页面设计。页面中的各个图形元素可以具有不同的布置和不同的视觉表示,其中的一个或多个元素可以省略或被替换,并且还可以存在一个或多个其他元素。本公开的实施例在此方面不受限制。
本公开的实施例所描述的知识库创建过程可以被实现在知识库创建平台,安装有知识库创建平台的终端设备和/或知识库创建平台对应的服务端。在下文的示例中,出于讨论的需要,从知识库创建平台的角度来描述,例如图1所示的应用管理平台110。应用管理平台110所呈现的页面,可以经由用户105的终端设备被呈现,并且可以经由用户105的终端设备来接收用户输入。在本文中,创建知识库的用户105有时也被称为知识库创建者、知识库开发者等。
用户105可以根据需要在向应用管理平台110发起创建请求。响应于接收到创建请求,应用管理平台110呈现用于创建知识库的页面。在该页面上,用户105可以对要创建的知识库(假设是图1所示的知识库120)进行配置。不同于通过编写代码的方式来创建知识库,在本公开的实施例中,用于创建知识库的页面被设计为包括接收知识库的配置信息的至少一个配置区域,每个配置区域被定义为接收用于构建知识库所需要的一类配置信息。
图2示出了根据本公开的一些实施例的知识库架构的示意图。如图2中的知识库架构的示意图200所示,知识库架构202可以由多种类型的数据组成。例如,知识库架构202的类型可以包括文档类型210、表格类型212、图像类型214。用户105可以基于对应类型的知识库架构202,创建至少一个该类型的知识库120。例如,在文档类型210的知识库下,用户105可以根据需要建立一个或多个文档类型210的知识库(知识库1、知识库2)。每个文档类型的知识库可以包括一篇文档或多篇文档的合并。对于表格类型212和图像类型214,用户105也可以类似地创建对应的一个或多个数据库。可以理解的是,文档类型210的知识库120可以包括文档类型210的数据,表格类型212的知识库120可以包括表格类型212的数据,图像类型214的知识库120可以包括图像类型214的数据。
在一些实施例中,继续参考图2,应用或工作流可以与至少一个知识库120关联。进一步地,应用或工作流可以在使用过程中调用与其关联的至少一个知识库120的数据。作为示例,如图2所示,应用与两个文档类型210的知识库以及一个图像类型214的知识库120关联,则应用可以在使用过程中检索两个文档类型210的知识库120中的文档数据以及一个图像类型214的知识库120中的图像数据。工作流222与一个表格类型212的知识库120关联,则工作流222可以检索该表格类型212的知识库中的表格数据。这里提及的应用可以实现为数字助手、具有问答功能或知识检索功能的任何数据库。这里提及的工作流可以被配置为自动执行特定任务。
图3示出了根据本公开的一些实施例的知识库管理的示例过程300的流程图。该数据处理的过程300可以在如前所述的应用管理平台110中执行。下面参考图1来描述过程300。
如图3所示,知识库的管理周期可以分为创建/导入阶段和查看/编辑阶段。
在创建/导入阶段,在框302,应用管理平台110可以接收知识库创建请求。
响应于接收到知识库创建请求,应用管理平台110可以向用户提供可选择的知识库类型以供用户选择。可选择的知识库类型包括文档类型210、表格类型212以及图像类型214。可以理解,根据实际应用需要,还可以配置或支持更多、更少或不同类型的数据,例如包括视频类型、思维导图类型,等等。
在确定用户选择文档类型210后,在框310,应用管理平台110可以向用户呈现对应页面并从用户接收文档类型对应的分段设置。
在确定用户选择表格类型212后,在框312,应用管理平台110可以向用户呈现对应页面并从用户接收表格类型对应的表头结构设置。
在确定用户选择图像类型214后,在框314,应用管理平台110可以向用户呈现对应页面并从用户接收图像类型对应的标注设置。
在执行完框310、框312或框314之后,在框320中,应用管理平台110可以进行数据处理执行,实现数据的导入和处理,从而完成知识库的创建。
在知识库被创建后,该知识库还可以被关联到一个或多个应用(例如,数字助手类应用、问答类应用等等)或者工作流(例如,依赖于知识来执行数据查询的工作量)。如果该知识库被关联到应用或工作流,那么该知识库可以被调用以处理针对所关联的应用或工作流的查询信息。对知识库的调用是可选择的,可以基于查询信息来确定是否需要调度相关联的知识库来辅助对当前的查询信息的处理。该知识库中存储的数据可以被查询以用于确定查询信息的响应。
在知识库被创建后,知识库还可以被继续查看或编辑。在查看/编辑阶段,可以支持对知识库120中数据的查看或编辑。为了清楚起见,将关于图像类型知识库来描述查看/编辑阶段。在框325,应用管理平台110可以查看图像集。
在框330,应用管理平台110可以从图像集中查看单张图像。
在框335,应用管理平台110可以修改图像标注信息。
具体地数据处理中详细步骤可以参照后文中的内容描述,此处不再赘述。
图4A至图4E示出了根据本公开的一些实施例的创建文档类型的知识库的页面400A至页面400E的示例。页面400A至页面400E例如可以由图1所示的应用管理平台110所提供。
具体地,该页面至少包括第一配置区域,用于从多个数据类型中接收对知识库120的目标类型的配置。例如,图4A的页面400A(也可以称为知识库创建页面400A)给出了第一配置区域410,其包括三个类型选择框,每个类型选择框分别对应文档类型、表格类型和图像类型,选择文档类型的类型选择框指示接收对知识库120配置的目标类型为文档类型。
接收到的对知识库120配置的目标类型作为知识库120的配置信息的一部分,将会限定该知识库120支持的数据类型为目标类型,并将其他类型的数据排除在外。知识库120只能对目标类型的数据进行存储,也就是说,这里所建立的知识库120为仅支持目标类型的专用数据库。
在创建的过程中提供特定的可视化配置区域,让用户选择目标类型。这样用户可以方便地设置知识库120支持的数据类型。
在一些实施例中,该页面还可以包括第二配置区域,用于接收对知识库120的目标数据源的配置。知识库120可以从配置的目标数据源获取数据,即用户105可以自行选择上传数据的方式或数据来源。
在一些实施例中,第二配置区域呈现所支持的至少一个类型。至少一个类型的数据源可以包括本地数据源、在线数据源、数据库、自定义数据等中的至少一项。例如,图4A的页面400A给出了关联于第一配置区域410中的文档类型选择框的第二配置区域420,其包括多个文档选择框,每个文档选择框对应一个目标数据源。这里的目标数据源可以包括本地文档(例如,支持PDF、TXT、DOCX等格式的本地文档)、在线数据(例如,获取在线网页中的内容)、XX应用(可以获取任意一个应用或者数据库中的文档数据)、自定义(例如,可以自定义创建和编辑文档内容)。
在一些实施例中,该页面还包括第三配置区域,用于接收知识库120的名称。用户可以基于第三配置区域对正在创建的知识库进行命名。例如,图4A的页面400A给出了第三配置区域430,其包括名称输入框,用于接受用户通过自然语言输入的名称。
在一些实施例中,该页面还包括第四配置区域,用于接收对知识库的描述信息。用户可以基于第四配置区域输入对知识库的描述信息,描述信息可以指示知识库的类型、功能等信息。例如,图4A的页面400A给出了第四配置区域432,其包括描述输入框,用于接收用户通过自然语言输入的对知识库的描述信息。知识库120的名称和描述信息可以统称为知识库的元数据。在一些实施例中,如果知识库被关联到特定的应用或工作流,那么对应的应用或工作流在处理各自的查询信息时,可以基于知识库的描述信息或元数据来确定是否要调用该知识库。在一些实施例中,若应用或工作流是基于机器学习模型(例如生成式模型)所构建的,如果知识库被关联到上述应用或工作流,那么可以基于知识库的描述信息或元数据来构建提示词(Prompt)提供给上述应用或工作流所依赖的模型,由模型确定是否调用该知识库以确定查询信息的响应。
在一些实施例中,应用管理平台110可以响应于接收到对目标类型和目标数据源的配置,从目标数据源将目标类型的数据导入知识库。
在一些实施例中,应用管理平台110可以响应于接收到对文档类型和本地文档的配置,呈现如图4B所示的页面400B。
在一些实施例中,图4B的页面400B给出了文档上传区域435。文档上传区域435可以给出指示能够接收的文档格式、大小或页数等信息。在一些实施例中,文档上传区域435包括文档上传控件436。应用管理平台110可以响应于对文档上传控件436的触发,接收用户105通过文档上传控件436上传到知识库120的文档。
在一些实施例中,应用管理平台110还可以接收用户105拖拽到文档上传区域435的文档。例如,用户105可以将本地文件中的文档选中,并拖拽到文档上传区域435,实现将文档上传到知识库120中。
在一些实施例中,图4B的页面400B还给出了文档区域440。文档区域440可以呈现已经上传到知识库120中的至少一个文档。文档区域440还可以呈现至少一个文档的上传信息,文档的上传信息可以包括文档名称、文档上传状态、文档的大小。
在一些实施例中,图4B的文档区域440还给出了文档操作控件441。进一步地,应用管理平台110还可以响应对文档操作控件441的触发,删除关联于文档操作控件441的文档。
在一些实施例中,应用管理平台110可以响应于接收到对文档类型和在线数据的配置,呈现如图4C所示的页面400C。
在一些实施例中,图4C的页面400C给出了新增URL(统一资源定位符,也称为网页链接)区域445。在一些实施例中,新增URL区域445包括新增URL控件,应用管理平台110可以响应于对新增URL控件的触发,接收用户的URL链接,进一步获取URL链接中的文档并将其上传到知识库120中。作为示例,获取URL链接中的文档的方式可以为在线提取。
在一些实施例中,应用管理平台110可以响应于接收到对文档类型和自定义的配置,呈现如图4D所示的页面400D。
在一些实施例中,应用管理平台110可以响应于目标数据源是自定义数据的类型,呈现数据输入区域。在数据输入区域中,用户可以自定义或输入想要导入的输入。然而,应用管理平台110可以将在数据输入区域中接收到的输入数据导入知识库。
在一些实施例中,图4D的页面400D给出了文档自定义区域450(对应于文档类型下的“数据输入区域”)。应用管理平台110可以接收用户在文档自定义区域450编辑的文档内容,基于该文档内容生成文档,并将文档上传到知识库120中。作为实例,如图4D所示,文档自定义区域450可以包括自定义名称控件451和自定义编辑控件452。自定义名称控件451可以用于接收用户通过自然语言输入的文档名称。自定义编辑控件452可以用于接收用户通过自然语言输入的文档内容。在一些实施例中,还可以对自定义名称控件451和/或自定义编辑控件452可以接收的自然语言的文字数量进行限制,任何限制的可输入文字数量都将包括在本公开范围之内。
虽然在图4D中示出了文档类型的数据的自定义,但可以理解,对于表格类型的数据,也可以提供对应的数据输入区域用于接收用户自定义的表格数据,例如一个或多个表格条目。此外,对于图像类型的数据,也可以对应的数据输入区域,例如画板等,以用于接收用户自定义的图像。
在一些实施例中,应用管理平台110可以响应于数据导入完成,呈现与目标类型相对应的索引设置页面,用于接收针对导入的数据的索引设置信息。需要说明的是,在调用知识库中数据时,可以依据与索引设置信息关联的索引信息在知识库中匹配对应的数据。
在一些实施例中,应用管理平台110可以响应于文档类型数据导入完成,呈现与文档数据类型相对应的索引设置页面,用于接收针对文档的分段索引设置,分段索引设置指示以下至少一项:对文档的分段规则、分段长度和分段预处理规则。在这里,文档的分段对应于用于索引的数据项。
在一些实施例中,应用管理平台110可以响应于表格类型数据导入完成,呈现与表格数据类型相对应的索引设置页面,用于接收针对表格的表头索引设置,表头索引设置指示表格中用于索引数据项的表头字段。
在一些实施例中,应用管理平台110在图4E的页面400E中给出了文档索引设置区域455。应用管理平台110可以接收文档索引设置区域455中的文档索引设置信息(又可以称为分段索引设置)。作为示例,如图4E所示,文档索引设置区域455给出了自动分段与清洗控件456(又称为默认分段索引设置的输入入口)和自定义控件457(又称为用户自定义的分段索引设置的输入入口)。需要说明的是,自动分段与清洗控件456和自定义控件457是二选一的互斥控件。
在一些实施例中,应用管理平台110可以响应对自动分段与清洗控件456的触发,将自动分段与预处理规则作为文档的索引设置信息。自动分段与预处理规则可以由技术人员根据需要自行设置,本公开对此不做限制。
在一些实施例中,应用管理平台110可以响应对自定义控件457的触发,将自定义的分段规则、分段长度及预处理规则作为文档的索引设置信息。作为示例,用户可以在自定义控件457中通过自然语言输入自定义的分段规则、分段长度及预处理规则。
图5A至5G示出了根据本公开的一些实施例的创建图像类型的知识库的页面500A至页面500G的示例。页面500A至页面500G例如可以由图1所示的应用管理平台110所提供。
在一些实施例中,继续参考图4A,应用管理平台110可以响应于对第一配置区域410中图像类型选择框的选择操作,呈现如图5A的页面500A所示的第二配置区域420。
在一些实施例中,如图5A所示,关联于第一配置区域410中图像类型选择框的第二配置区域420,可以包括多个图像选择框,每个图像选择框可以对应一个目标数据源。这里的目标数据源可以包括本地图像(例如,支持JPG、JPEG、PNG的本地图像文件)、在线图像(例如,获取在线网页中的图像)、XX应用(可以获取任意一个应用或者数据库中的图像文件)、自定义(例如,可以自定义创建和编辑图像文件)。
在一些实施例中,应用管理平台110可以响应于接收到对图像类型和本地图像的配置,呈现如图5B所示的页面500B。
在一些实施例中,图5B的页面500B给出了图像上传区域510。图像上传区域510可以给出指示能够接收的图像格式、大小等信息。在一些实施例中,图像上传区域510包括图像上传控件511,应用管理平台110可以响应于对图像上传控件511的触发,接收用户105通过图像上传控件511上传到知识库120的文档。
在一些实施例中,应用管理平台110还可以接收用户105拖拽到图像上传区域510的图像。例如,用户105可以将本地图像中的图像选中,并拖拽到图像上传区域510,实现将图像上传到知识库120中。
在一些实施例中,图5B的页面500B还给出了图像区域515。图像区域515可以呈现已经上传到知识库120中的至少一个图像。图像区域515还可以呈现至少一个图像的上传信息,图像的上传信息可以包括图像名称、图像上传状态、图像的大小。
在一些实施例中,图5B的图像区域515还给出了图像操作控件516。进一步地,应用管理平台110还可以响应对图像操作控件516的触发,删除关联于图像操作控件516的图像。
在一些实施例中,应用管理平台110可以响应于接收到对图像类型和在线图像的配置,呈现如图5C所示的页面500C。
在一些实施例中,图5C的页面500C给出了手动采集区域520。在一些实施例中,应用管理平台110可以响应于接收对手动采集区域520的触发,接收用户的URL链接,进一步获取URL链接中的图像并将其上传到知识库120中。作为示例,获取URL链接中的图像的方式可以为在手动采集区域520安装浏览器扩展程序,依赖浏览器扩展程序获取URL链接中的图像。
在一些实施例中,继续参考图5C,应用管理平台110还可以响应于在手动采集区域520接收用户的URL链接,呈现如图5D所示的页面500D。
在一些实施例中,应用管理平台110可以在图5D的页面500D提供图片展示区域530。图像展示区域530可以呈现关联于URL链接的至少一张图像。
在一些实施例中,应用管理平台110还可以在页面500D中提供图片搜索控件525。进一步地,应用管理平台110可以接收用户105在图片搜索控件525的输入信息,更新图像展示区域530呈现关联于该输入信息的至少一张图像。
在一些实施例中,应用管理平台110还可以在页面500D中提供图片筛选控件535。进一步地,应用管理平台110可以接收用户105对图片筛选控件535的条件选择操作,更新图像展示区域530呈现关联于该筛选控件535的至少一张图像。
在一些实施例中,应用管理平台110还可以在页面500D中提供单选控件540。进一步地,应用管理平台110可以响应于对单选控件540的触发,接收用户105在图像展示区域530中选择的一张图像。
在一些实施例中,应用管理平台110还可以在页面500D中提供多选控件545。进一步地,应用管理平台110可以响应于对多选控件545的触发,接收用户105在图像展示区域530中选择的多张图像。
在一些实施例中,应用管理平台110还可以在页面500D中提供查看数据控件550。进一步地,应用管理平台110可以响应于对查看数据控件545的触发,呈现如图5E所示的页面500E。
在一些实施例中,图5E的页面500E呈现图片预选区域555。应用管理平台110可以在图片预选区域555呈现用户105基于单选或多选控件选择的至少一张图像的缩略图。
在一些实施例中,应用管理平台110还可以在图片预选区域555中的至少一张图像的缩略图中提供图像删除控件556。进一步地,应用管理平台110可以响应对图像删除控件556的触发,在图片预选区域555中删除与图像删除控件556相关联的图像。
在一些实施例中,应用管理平台110还可以在页面500D中提供完成并采集控件560。进一步地,应用管理平台110可以响应于对完成并采集控件560的触发,呈现如图5F所示的页面500F。
在一些实施例中,应用管理平台110可以响应于目标类型是图像类型,呈现与图像类型相对应的索引设置页面,用于接收针对图像的标注设置,标志设置指示用于索引图像的文本标注。
在一些实施例中,应用管理平台110在图5F的页面500F中给出了图像索引设置区域565。应用管理平台110可以接收图像索引设置区域565中的图像索引设置信息(又可以称为标注设置)。作为示例,如图5F所示,图像索引设置区域565给出了自动标注控件566(又称为标注设置的自动生成入口)和人工标注控件567(又称为用户自定义的标注设置的输入入口)。需要说明的是,自动标注控件566和人工标注控件567是二选一的互斥控件。
在一些实施例中,应用管理平台110可以响应对自动标注控件566的触发,深度理解图像自动生成对图像的内容描述,并将该内容描述作为图像索引设置信息。这里对图像的自动标注可以实现为OCR(Optical Character Recognition,光学字符识别)文字识别,提取图片中的文字信息作为标注信息。这里对图像的自动标注还可以实现为图像处理模型,本公开对具体的图像处理模型不做限制。
在一些实施例中,应用管理平台110可以响应对人工标注控件567的触发,将自定义的图像描述作为图像的索引设置信息。作为示例,用户可以在人工标注控件567中通过自然语言输入图像描述。
在一些实施例中,应用管理平台110可以响应于接收到索引设置信息,基于索引设置信息来创建目标类型的知识库120。在一些实施例中,接收到的索引设置信息能够被用于构建数据索引。应用管理平台110可以基于索引设置信息来处理被导入的目标类型的数据,以创建目标类型的知识库120,创建的知识库120包括经处理后可索引的多个数据项。
在一些实施例中,应用管理平台110可以响应于接收到的图像的索引设置信息,呈现如图5G所示的页面500G。
在一些实施例中,应用管理平台110可以在页面500G中呈现图像处理过程。该图像处理过程可以包括图像处理进度。
在一些实施例中,应用管理平台110可以响应于知识库列表查看请求,呈现知识库列表页面。知识库列表页面可以包括与多个数据类型各自对应的多个分类查看入口。
在一些实施例中,图6示出了根据本公开的一些实施例的知识库查看列表的页面600的示例。页面600例如可以由图1所示的应用管理平台110所提供。
在一些实施例中,如图6所示,应用管理平台110可以响应于知识库列表查看请求,呈现知识库查看列表的页面600。作为示例,页面600可以呈现知识库列表区域610。知识库列表区域610可以呈现多个知识库120(例如,知识库A、知识库B…),多个知识库120可以包括多个数据类型(例如,知识库A为文档类型,知识库B为表格类型,知识库E为图像类型)。知识库列表区域610还可以呈现每个知识库120对应的知识库信息,知识库信息可以包括知识库类型、知识库大小、知识库创建时间等。
在一些实施例中,应用管理平台110可以在知识库列表区域610中提供启用控件611。进一步地,应用管理平台110可以响应于对启用控件611的触发,切换关联于启用控件611的知识库120或知识库中的数据的启用状态为开启或关闭。作为示例,知识库120的启用状态为开启表示可以调用知识库120中的数据,知识库120的启用状态为关闭表示禁止调用知识库120中的数据。
在一些实施例中,应用管理平台110可以在知识库列表区域610中提供知识库删除控件612。进一步地,应用管理平台110可以响应于对知识库删除控件612的触发,在知识库列表区域610中删除关联于知识库删除控件612的知识库120。
在一些实施例中,应用管理平台110可以在页面600中提供多个分类查看入口620。每个分类查看入口关联于对应的数据类型的知识库120。作为示例,如图6所示,应用管理平台110在页面600提供了全部分类查看入口620-1、文档分类查看入口620-2、表格分类查看入口620-3、图像分类查看入口620-4(统一或单独称为分类查看入口620)。全部分类查看入口620-1对应的第一数据类型为所有数据类型的数据库120,文档分类查看入口620-2对应的第一数据类型为文档类型,表格分类查看入口620-3对应的第一数据类型为表格类型,图像分类查看入口620-4对应的第一数据类型为图像类型。
在一些实施例中,应用管理平台110可以响应于对多个数据类型中的第一数据类型对应的分类查看入口620的选择,在知识库列表区域610中呈现已创建的第一数据类型的知识库120。
在一些实施例中,应用管理平台110还可以在页面600中提供知识库搜索输入框625。进一步地,应用管理平台110可以接收用户105在知识库搜索输入框625中输入的搜索信息,更新知识库列表区域610呈现关联于该搜索信息的知识库120。
在一些实施例中,应用管理平台110还可以在页面600中提供创建知识库控件630。进一步地,应用管理平台110可以响应创建知识库控件630的触发,调用应用管理平台110呈现图4A的知识库创建页面400A。
在一些实施例中,应用管理平台110可以响应于对知识库120的详情查看请求,呈现知识库120的详情页面。详情页面包括经处理后的多个数据项的聚合呈现,还可以包括:知识库120的元数据(知识库120的名称和描述信息可以统称为知识库的元数据)、被导入知识库120的文件的列表、知识库对应的索引设置信息和/或数据项的数目。
在一些实施例中,应用管理平台110还可以在知识库列表区域610中提供详情查看控件613。进一步地,应用管理平台110可以响应于详情查看控件613的触发,呈现关联于详情查看控件的知识库120的详情页面。
在一些实施例中,应用管理平台110可以响应于对关联于文档类型的知识库120的详情查看控件613的触发,呈现如图7A所示的文档类型的知识库120的详情页面700A。
图7A至图7F示出了根据本公开的一些实施例的管理文档类型的知识库的页面700A至页面700F的示例。页面700A至页面700F例如可以由图1所示的应用管理平台110所提供。
在一些实施例中,应用管理平台110可以呈现文档类型的知识库A的详情页面700A,如图7A所示。应用管理平台110可以在详情页面700A可以呈现文档呈现区域710,文档呈现区域710可以呈现多个可索引的数据项。作为示例,如图7A所示的详情页面700A中,每个颜色块对应的数据为一个可索引的数据项(这里为文档类型)。
在一些实施例中,应用管理平台110可以响应于对文件的列表中目标文件的选择,在详情页面中呈现从目标文件处理后得到的数据项的聚合呈现。
在一些实施例中,应用管理平台110可以在详情页面700A中提供文档列表控件715。进一步地,应用管理平台110可以响应于文档列表控件715的触发,呈现导入知识库120中的文档(文档可以被称为文件)的列表。文档的列表中可以呈现多个文档选择项,文档选择项可以包括全部内容选择项以及至少一个关联于单个文档的文档名称选择项。作为示例,如图7A的详情页面700A,文档的列表包括全部内容选择项、XXXXX.TXT选择项、XXXXXX.DOC选择项,等等。
在一些实施例中,应用管理平台110可以响应于文档选择项的触发,更新文档呈现区域710中呈现关联于文档选择项的至少一个可索引的数据项。作为示例,如图7A的详情页面700A,应用管理平台110可以响应于全部内容选择项的触发,更新文档呈现区域710中呈现知识库120中的所有数据项。应用管理平台110还可以响应于XXXXX.TXT选择项的触发,更新文档呈现区域710中呈现XXXXX.TXT的内容。
在一些实施例中,应用管理平台110还可以在详情页面700A中呈现知识库120对应的元数据(即,知识库120的名称和描述信息),描述信息可以指示知识库120的类型、功能等。
在一些实施例中,应用管理平台110还可以在详情页面700A中呈现知识库120对应的索引设置信息(即,知识库120的分段策略)。
在一些实施例中,应用管理平台110还可以在详情页面700A中呈现数据项的数目(即,数据项的总段数)。
在一些实施例中,应用管理平台110还可以在详情页面700A中呈现新数据添加入口。作为示例,如图7A的详情页面700A提供了添加文档控件720,应用管理平台110可以响应添加文档控件720的触发,呈现如7B所示新增数据页面700B。这里新增数据页面700B的上传数据的选择方法可参照图4A的400A页面中第二配置区域420所涉及的方法,此处不再赘述。
在一些实施例中,应用管理平台110可以响应于在新增数据页面700B中选择本地文档的上传方式,呈现如图7C所示的上传数据页面700C。这里的上传数据页面700C的上传方法可参照图4B的400B页面的文档上传区域435所涉及的方法,此处不再赘述。
在一些实施例中,应用管理平台110还可以在详情页面700A中呈现重新索引的触发入口。作为示例,如图7A的详情页面700A提供了重新分段控件725,应用管理平台110可以响应重新分段控件725的触发,呈现如7D所示重新分段页面700D。这里重新分段页面700D的分段方法可参照图4E的400E页面中文档索引设置区域455所涉及的方法,此处不再赘述。
在一些实施例中,应用管理平台110可以响应于重新分段页面700D的分段设置完成,呈现如图7E所示的更新内容页面700E。在更新内容页面700E可以看出,基于重新分段页面700D的分段设置,可以对知识库120中的所有数据项实现分段设置的更新(即,索引设置信息的更新)。
在一些实施例中,应用管理平台110还可以在详情页面700A中呈现更新频率的设置入口。作为示例,更新频率的设置入口只出现在选择目标数据源为在线数据的知识库120的详情页面中呈现。应用管理平台110可以在选择目标数据源为在线数据的知识库120的详情页面中提供更新频率控件。进一步地,应用管理平台110可以响应更新频率控件的触发,呈现更新频率选择项。更新频率选择项可以包括不自动更新、每天更新、每3天更新、每7天更新等。更新频率为从在线数据中更新文档的频率,如每天更新为每天从在线数据中更新一次文档。具体的更新频率选择项可以根据需要自行设定,本公开对此不做限制。
在一些实施例中,应用管理平台110还可以在详情页面700A中响应对多个数据项中的目标数据项的第一预设操作(长按或双击等),呈现关联于目标数据项的处理控件。作为示例,如图7F所示的700F页面,应用管理平台110可以响应于对目标数据项的第一预设操作,呈现关联于目标数据项的处理框730。处理框730中可以包括编辑选项731和删除选项732。进一步地,应用管理平台110可以响应于编辑文档控件731的触发,在编辑模式下接收用户105对关联于编辑文档控件731的数据项的编辑信息,实现对数据项的修改。应用管理平台110还可以响应于删除行控件732的触发,删除关联于删除行控件732的数据项。
在一些实施例中,应用管理平台110可以接收对知识库120的修改请求,修改请求指示以下至少一项:对知识库的元数据的修改,对知识库的索引设置信息的修改,对知识库的数据的添加。
在一些实施例中,应用管理平台110可以在详情页面700A响应于对知识库名称的第二预设操作(长按或双击等),接收用户通过自然语言输入的知识库元数据(包括知识库名称和描述信息)的修改信息,进而修改知识库120的元数据。
在一些实施例中,对于表格类型的知识库,其详情页面的布局和所呈现的信息可以类似于关于图7A至图7F所示的文档类型的知识库。不同之处在于,在表格类型的知识库中,可以将表格的各个条目(对应于表格中可索引的数据项)逐个呈现给用户。
在一些实施例中,继续参考图6,应用管理平台110可以响应于对关联于图像类型的知识库120的详情查看控件613的触发,呈现如图8A所示的图像类型的知识库120的详情页面800A。
图8A至8C示出了根据本公开的一些实施例的管理图像类型的知识库的页面800A至页面800C的示例。页面800A至页面800C例如可以由图1所示的应用管理平台110所提供。
在一些实施例中,应用管理平台110可以呈现如图8A的图像类型的知识库120的关联于知识库E的详情页面800A。应用管理平台110可以在详情页面800A可以呈现图像呈现区域810,图像呈现区域810可以呈现多个可索引的数据项。作为示例,如图8A所示的详情页面800A中,每个包含图片和图像标注的方框为一个可索引的数据项(这里为图片类型)。
在一些实施例中,应用管理平台110可以在详情页面800A中呈现被导入知识库E中图像列表(包括每个数据项的图像内容(包括图像和图像名称))和图像对应的文本标注。应用管理平台110可以在详情页面800A中呈现该知识库中数据项的上传方式。上传方式可以包括本地图像、在线图像、XX应用、自定义。作为示例,如图8A中的800A界面呈现上传方式区域815,上传方式区域815呈现本地表示知识库E中数据项的上传方式为本地图像。对应地,知识库E中数据项的上传方式为在线图像时可以在上传方式区域815呈现在线,知识库E中数据项的上传方式为XX应用时可以在上传方式区域815呈现XX应用,知识库E中数据项的上传方式为自定义时可以在上传方式区域815呈现自定义。
在一些实施例中,应用管理平台110还可以在详情页面800A中呈现该知识库中数据项的标注方式。作为示例,如图8A中的800A界面呈现标注方式区域820,标注方式区域820呈现自动识别表示知识库E中数据项的标注方式为自动标注(或称为智能标注)。对应地,知识库E中数据项的标注方式为人工标注时可以在上传方式区域815呈现手动识别。
在一些实施例中,应用管理平台110还可以在详情页面800A响应于对知识库120中的多个图像中的目标图像的详情查看请求,呈现目标图像。作为示例,如图8A的详情页面800A,应用管理平台110可以响应于对目标图像的详情查看请求(接收点击图像或图像标注的操作),呈现如图8B所示的目标图像页面800B。
在一些实施例中,应用管理平台110可以在图8B的目标图像页面800B呈现目标图像的图像内容(图像名称和图像)和图像标注(图像的文本标注)。应用管理平台110还可以在目标图像页面800B中提供标注输入框825(又称为标注展示区)。进一步地,应用管理平台110可以接收用户通过自然语言输入的标注信息,更新目标图像的图像标注。
在一些实施例中,应用管理平台110还可以在目标图像页面800B中提供自动识别控件830。进一步地,当目标图像的图像标注内容非空时,应用管理平台110可以响应于自动识别控件830的触发,呈现如图8C所示的覆盖提醒区域835。作为示例,如8C所示,覆盖提醒区域可以呈现提醒信息,提醒信息可以为文字内容“确定覆盖已有标注内容”。
在一些实施例中,进一步地,覆盖提醒区域835可以提供确定选项836和取消选项837,应用管理平台110可以响应于确定选项836的触发为目标图像自动生成标注内容,应用管理平台110还可以响应于确定选项837的触发取消为目标图像自动生成标注内容。
在一些实施例中,当目标图像的图像标注内容为空时,应用管理平台110可以响应于自动识别控件830的触发,为目标图像自动生成标注内容。
在一些实施例中,为目标图像自动生成标注内容的方法可以是依靠相关的图像模型深度理解图像生成标注内容或者进行OCR(Optical Character Recognition,光学字符识别)文字识别,提取图片中的文字信息作为标注信息。
在一些实施例中,应用管理平台110还可以在目标图像页面800A中提供添加图像控件840。进一步地,应用管理平台110可以响应于添加图像控件840的触发,为知识库添加新的图像。具体的图像添加方法可参照上述图5A至图5G所涉及的图像上传方法,此处不再赘述。
如前文提及的,已创建的知识库可以被关联到应用或工作流。在一些实施例中,应用管理平台110可以在目标应用或目标工作流的创建页面中,呈现知识库选择区域,知识库选择区域指示多个数据类型。响应于对多个数据类型中的目标类型的选择,应用管理平台110可以在知识库选择区域中至少呈现目标数据类型对应的知识库。响应于接收到对所呈现的知识库的选择,应用管理平台110可以将所选定的知识库与目标应用或目标工作流相关联。
图9示出了根据本公开的一些实施例的在第三方应用中配置知识库的创建页面900的示例。第三方应用可以为目标应用或目标工作流。在图9的示例中,假设要配置知识库的应用是数字助手。例如,在开发数字助手类应用时,期望将数字助手与特定知识库相关联,以从知识库中执行信息检索,从而能够更好地实现与用户的问答交互。创建页面900例如可以由图1所示的应用管理平台110所提供。
在一些实施例中,应用管理平台110可以呈现如图9所示的针对数字助手的创建页面900。应用管理平台110可以在创建页面900中提供知识库选择区域910。知识库选择区域910可以提供知识库的多个数据类型对应的选项,文档选项、表格选项、图像选项。作为示例,如图9的创建页面900,知识库选择区域910可以包括文档选项915-1、表格选项915-2和图像选项915-3(单独或统一称为数据类型选项915)。数字助手的创建者可以根据需要确定要将数字助手关联到一个或多个知识库,并选择对应的类型进行知识库关联。
例如,应用管理平台110可以响应于对多个数据类型中的目标类型的选择,在知识库选择区域910至少呈现在目标类型下已创建且可关联的一个或多个知识库120。作为示例,如图9的创建页面900,应用管理平台110可以响应对多个数据类型选项915中的文档选项915-1的选择,呈现文档类型的知识库120。
在一些实施例中,应用管理平台110可以在创建页面900响应于接收到对知识库120的选择,将知识库120于目标应用或目标工作流相关联。在关联完成后,目标应用或目标工作流根据需要(例如,基于接收到的查询信息)来确定是否要调用相关联的知识库。在确定需要调用的情况下,可以通过调用相关联的知识库120中的数据来完成对目标应用或目标工作流的查询信息的处理。
在一些实施例中,应用管理平台110还可以在创建页面900提供存储器选择区域和/或技能配置区域,以便为目标应用或目标工作流配置存储器或相应技能。
图10示出了根据本公开的一些实施例的添加表格类型数据的示例过程1000的流程图。该添加表格类型数据的过程1000可以在如前所述的应用管理平台110或应用管理平台110中执行(以下以在应用管理平台110中执行为例,在应用管理平台110中的执行方式与此相同,此处不做赘述)。下面参考图1来描述过程1000。
如图所示,在框1010,应用管理平台110可以接收添加表格片段的请求1010。
在框1015,应用管理平台110可以接收选择的上传方式,上传方式可以包括本地上传1015-1、API接口上传1015-2、自定义上传1015-3。
选择本地上传1015-1后可以执行框1020-1。在框1020-1,应用管理平台110接收本地文件中的表格文件,例如用户的终端设备的表格文件。
在选择API接口上传1015-2后可以执行框1020-2。在框1020-2,应用管理平台110可以接收与API接口关联的表格文件。这里的API接口可以是任意可以提供表格类型文件的应用。
选择自定义上传1015-3后可以执行框1020-3。在框1020-3,应用管理平台110可以接收手动写入的表格文件。
在执行框1020-1或框1020-2之后,执行框1025。在框1025,应用管理平台110可以校验表格的布局是否对齐,以及将布局没有对齐的表格进行对齐操作。
在执行框1025后执行框1030,在框1030,应用管理平台110预览表格文件,并对表格文件设置索引设置信息(例如,表头结构设置,指示表格中用于索引数据项的表头字段)。
在执行框1030或框1020-3后执行框1035,在框1035,应用管理平台110可以响应表格文件的上传完成,完成表格的添加。
在一些实施例中,对于目标类型的知识库中导入的数据,可以构建一个或多个类型的索引库。处理后的多个数据项分别被存储在多个类型的索引库中并且分别由多个类型的数据索引进行索引。预先构建多个类型的数据索引,有助于在后续对知识库的调用中能够提供多样化的数据检索方式。在一些实施例中,对于文档类型的知识库120,可以为其中导入的数据项建立至少两个类型的索引库。第一索引库可以为基于依赖关键词的全文检索引擎(如ES(Elasticsearch))。第二索引库可以为基于向量的文本相关性查询引擎(如Viking),在该索引库中文档的各个分段(即数据项)对应的特征向量被用作相关性检索的基础。索引库的建立例如可以是在知识库创建的数据处理阶段。
图11示出了根据本公开的一些实施例的知识库应用设置的页面1100的示例。页面1100例如可以由图1所示的应用管理平台110所提供。
应用管理平台110可以接收对知识库120的应用设置请求,呈现图11的知识库应用设置的页面1100。应用管理平台110可以在页面1100提供搜索策略区域1101,搜索策略区域1101可以包括混合搜索选项1105-1、语义搜索选项1105-2、全文搜索选项1105-3(单独或统一称为搜索选项1105)。应用管理平台110可以响应于搜索选项1105的选择,设置知识库120的搜索策略为关联于所述搜索选项1105的搜索策略。
如果语义搜索选项1105-2被启用,那么对于知识库120中的数据,可以基于第二索引库中的特征向量执行对文档数据的语义检索。如果全文检索选项1105-3被启用,那么对于知识库120中的数据,可以基于第一索引库,通过关键词对文档数据执行全文检索。如果混合搜索选项1105-1被启用,那么可以基于第一索引库和第二索引库同时执行对文档数据的语义检索和全文检索。作为示例,如图11的页面1100,应用管理平台110可以响应于混合搜索选项1105-1的选择,设置知识库120的搜索策略为混合搜索策略。
在一些实施例中,应用管理平台110可以在页面1100提供最大召回数设置区域1110、最小匹配度设置区域1115和/或召回方式设置区域1120。进一步地,应用管理平台110可以在最大召回数设置区域1110接收设置的最大召回数(例如,范围可以是1-10)。应用管理平台110可以在最小匹配度设置区域1115接收设置的最小匹配度(例如,范围可以是0.01-0.99)。应用管理平台110可以在召回方式设置区域1120接收设置的召回方式(即召回数据的方式,例如自动召回或按需求召回)。
图12示出了根据本公开的一些实施例的基于混合搜索调取知识库数据的示例过程1200的流程图。该基于混合搜索调取知识库数据的过程1200可以在如前所述的应用管理平台120中执行。下面参考图1来描述过程1200。
图12的示例中,假设文档类型的知识库120被关联到数字助手1205。应用管理平台120可以响应于接收到针对知识库120的查询,按照多个类型分别对应的搜索算法,从多个类型的索引库分别搜索与查询相匹配的多组数据项;以及基于多组数据项的排序结果,从多组数据项中选择至少一个数据项用作查询的响应。
如图12所示,应用管理平台120可以响应数字助手1205获取知识库120数据的请求,分别基于第一索引库1215-1和第二索引库1215-2分别从知识库120中索引得到与查询相匹配的至少一个数据项1220-1(例如,top-K1个数据项)和至少一个数据项1220-2(例如,top-K2个数据项),其中K1和K2分别是大于等于1的正整数。第一索引库1215-1可以为基于依赖关键词的全文检索引擎(如ES(Elasticsearch))。第二索引库1215-2可以为基于向量的文本相关性查询引擎(如Viking),在该索引库中文档的各个分段(即数据项)对应的特征向量被用作相关性检索的基础。之后,可以对至少一个数据项1220-1和至少一个数据项1220-2执行重新排序,并基于重新排序的结果来获得至少一个筛选后的数据项1225。例如,可以选择K1+K2个数据项中的前K个数据项,K是大于等于1的正整数。在一些实施例中,对两个索引库给出的两个数据项的集合,可以基于RFF算法(倒秩融合Reciprocal Rank Fusion算法,是一种将多个排名列表合并为单个聚合列表的算法)来执行重新排序。至少一个筛选后的数据项1225被返回给数字助手1205,作为知识检索的检索结果。
应当理解,虽然在图11和图12的相关描述中使用了两个索引库,但实际上可以存在更多不同类型的、依赖于不同检索方案的索引库。
图13A和13B示出了根据本公开的一些实施例的调取图像类型知识库数据的示例过程1300A和1300B的流程图。该调取图像类型知识库数据的过程1300A和过程1300B可以在如前所述的应用管理平台110中执行。在该示例中,假设所创建的知识库的图像类型的知识库。下面参考图1来描述过程1300A和1300B。
如图13A所示,在框1305,应用管理平台110可以接收数字助手(也可以是工作流等其他应用)关联图像类型知识库的请求,将数字助手与图像类型知识库关联。
在框1310,应用管理平台110可以接收用户借助数字助手输入的查询信息。
在框1315,应用管理平台110可以根据查询信息和知识库120中图像的标注信息计算查询信息与标注信息之间的相似度,并基于所计算的相似度来匹配知识库120中的图像。由于查询信息和标注信息均是文本的形式,也可以按照文档类型的知识库方式,通过在图像的标注信息中的语义检索、全文检索或混合检索的策略,查找出与查询信息相匹配的标注信息。
在框1320,应用管理平台110可以召回相似度满足预设阈值的前预设数量个图像以及图像对应的标注信息作为召回内容。
在框1325,应用管理平台110可以将召回内容(包括图像以及图像对应的标注信息)与查询信息合并作为查询结果输出给数字助手。作为示例,基于召回内容与查询信息生成查询结果的过程可以由LLM(Large Language Model,大型语言模型)实现。
图14示出了根据本公开的一些实施例的信息处理的示例过程1400的流程图。过程1400可以被实现在应用管理平台110。下面参考图1来描述过程1400。
如图所示,在框1410,应用管理平台110响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,配置页面包括:第一配置区域,用于从多个数据类型中接收对知识库的目标类型的配置,以及第二配置区域,用于接收对知识库的目标数据源的配置。
在框1420,应用管理平台110响应于接收到对目标类型和目标数据源的配置,从目标数据源将目标类型的数据导入知识库。
在框1430,应用管理平台110响应于数据导入完成,呈现与目标类型相对应的索引设置页面,用于接收针对导入的数据的索引设置信息。
在框1440,应用管理平台110响应于接收到索引设置信息,基于索引设置信息来创建目标类型的知识库。
在一些实施例中,第二配置区域呈现所支持的至少一个类型的数据源,至少一个类型的数据源包括以下至少一项:本地数据源、在线数据源、数据库、自定义数据。
在一些实施例中,从目标数据源将所述目标类型的数据导入所述知识库包括:响应于所述目标数据源是所述自定义数据的类型,呈现数据输入区域;以及将在所述数据输入区域中接收到的输入数据导入所述知识库。
在一些实施例中,目标类型包括文档类型,并且呈现与目标类型相匹配的索引设置页面包括:呈现与文档类型相对应的索引设置页面,用于接收针对文档的分段索引设置,分段索引设置指示以下至少一项:对文档的分段规则、分段长度和分段预处理规则,文档的分段对应于用于索引的数据项。在一些实施例中,目标类型包括表格类型,并且呈现与所述目标类型相匹配的索引设置页面包括:呈现与表格类型相对应的索引设置页面,用于接收针对表格的表头索引设置,表头索引设置指示表格中用于索引数据项的表头字段。在一些实施例中,目标类型包括图像类型,并且呈现与所述目标类型相匹配的索引设置页面包括:呈现与图像类型相对应的索引设置页面,用于接收针对图像的标注设置,标志设置指示用于索引图像的文本标注。
在一些实施例中,目标类型包括文档类型,并且与文档类型相对应的索引设置页面包括默认分段索引设置以及用户自定义的分段索引设置的输入入口。在一些实施例中,目标类型包括图像类型,并且与图像类型相对应的索引设置页面包括标注设置的自动生成入口以及用户自定义的标注设置的输入入口。
在一些实施例中,过程1400还包括:响应于知识库列表查看请求,呈现知识库列表页面,知识库列表页面包括与多个数据类型各自对应的多个分类查看入口;以及响应于对多个数据类型中的第一数据类型对应的分类查看入口的选择,呈现已创建的第一数据类型的知识库。
在一些实施例中,过程1400还包括:响应于对知识库的详情查看请求,呈现知识库的详情页面,详情页面包括经处理后的多个数据项的聚合呈现,并且还包括以下至少一项:知识库的元数据,被导入知识库的文件的列表;知识库对应的索引设置信息,数据项的数目,新数据添加入口,重新索引的触发入口,或更新频率的设置入口。
在一些实施例中,过程1400还包括:响应于对详情页面中的第一数据项的触发操作,呈现对第一数据项的编辑选项或删除选项;以及响应于对编辑选项的选择,在第一数据项的编辑模式下接收对第一数据项的编辑输入;以及响应于对删除选项的选择,从知识库删除第一数据项。
在一些实施例中,过程1400还包括:响应于对文件的列表中目标文件的选择,在详情页面中呈现从目标文件处理后得到的数据项的聚合呈现。
在一些实施例中,过程1400还包括:接收对知识库的修改请求,修改请求指示以下至少一项:对知识库的元数据的修改,对知识库的索引设置信息的修改,对知识库的数据的添加。
在一些实施例中,知识库的目标类型为图像类型,并且其中呈现知识库的详情页面包括:在详情页面中呈现被导入所述知识库的图像列表以及一个或多个图像各自对应的文本标注。
在一些实施例中,过程1400还包括:响应于对知识库中的目标图像的详情查看请求,呈现目标图像。备选地或附加地,在一些实施例中,过程1400还包括:响应于接收到对自动标注生成的触发操作,利用自动标注生成工具来生成针对目标图像对应的目标文本标注。备选地或附加地,在一些实施例中,过程1400还包括响应于目标图像未存在对应的文本标注,在目标图像对应的标注展示区中呈现目标文本标注。备选地或附加地,在一些实施例中,过程1400还包括响应于目标图像存在对应的先前文本标注,在接收到用户确认的情况下在目标图像对应的标注展示区中用目标文本标注替换先前文本标注。
在一些实施例中,过程1400还包括:在目标应用或目标工作流的创建页面中,呈现知识库选择区域,知识库选择区域指示多个数据类型;响应于对多个数据类型中的目标类型的选择,在知识库选择区域中至少呈现目标类型对应的所述知识库;以及响应于接收到对知识库的选择,将知识库与目标应用或目标工作流相关联。
在一些实施例中,过程1400还包括:响应于对知识库被关联到目标应用或目标工作流,基于对目标应用或目标工作流的查询信息,使知识库被调用确定对查询信息的处理。
在一些实施例中,创建所述目标类型的所述知识库包括:基于所述索引设置信息来处理被导入的所述目标类型的所述数据,所创建的所述知识库包括经所述处理后可索引的多个数据项。
在一些实施例中,对于所述目标类型的所述数据,所述多个数据项分别被存储在多个类型的索引库中并且分别由多个类型的数据索引进行索引。过程1400还包括:响应于接收到针对知识库的查询,按照多个类型分别对应的搜索算法,从多个类型的索引库分别搜索与查询相匹配的多组数据项;以及基于多组数据项的排序结果,从多组数据项中选择至少一个数据项用作查询的响应。
本公开的实施例还提供了用于实现上述方法或过程的相应装置。图15示出了根据本公开的某些实施例的用于创建虚拟对象的示例装置1500的示意性结构框图。装置1500可以被实现为或者被包括在电子设备110中。装置1500中的各个模块/组件可以由硬件、软件、固件或者它们的任意组合来实现。
如图15所示,装置1500包括呈现模块1510,被配置为响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,配置页面包括:第一配置区域,用于从多个数据类型中接收对知识库的目标类型的配置,以及第二配置区域,用于接收对知识库的目标数据源的配置;导入模块1520,被配置为响应于接收到对目标类型和目标数据源的配置,从目标数据源将目标类型的数据导入知识库;设置模块1530,被配置为响应于数据导入完成,呈现与目标类型相对应的索引设置页面,用于接收针对导入的数据的索引设置信息;创建模块1540,被配置为响应于接收到索引设置信息,基于索引设置信息来创建目标类型的知识库。
在一些实施例中,第二配置区域呈现所支持的至少一个类型的数据源,至少一个类型的数据源包括以下至少一项:本地数据源、在线数据源、数据库、自定义数据。
在一些实施例中,导入模块1520还被配置为:响应于所述目标数据源是所述自定义数据的类型,呈现数据输入区域;以及将在所述数据输入区域中接收到的输入数据导入所述知识库。
在一些实施例中,目标类型包括文档类型,并且呈现模块1510被配置为:呈现与文档类型相对应的索引设置页面,用于接收针对文档的分段索引设置,分段索引设置指示以下至少一项:对文档的分段规则、分段长度和分段预处理规则,文档的分段对应于用于索引的数据项。在一些实施例中,目标类型包括表格类型,并且呈现模块1510被配置为:呈现与表格类型相对应的索引设置页面,用于接收针对表格的表头索引设置,表头索引设置指示表格中用于索引数据项的表头字段在一些实施例中,目标类型包括图像类型,并且呈现模块1510被配置为:呈现与图像类型相对应的索引设置页面,用于接收针对图像的标注设置,标志设置指示用于索引图像的文本标注。
在一些实施例中,所述目标类型包括文档类型,并且与文档类型相对应的索引设置页面包括默认分段索引设置以及用户自定义的分段索引设置的输入入口。在一些实施例中,所述目标类型包括图像类型,并且与图像类型相对应的索引设置页面包括标注设置的自动生成入口以及用户自定义的标注设置的输入入口。
在一些实施例中,装置1500还包括:列表呈现模块,被配置为响应于知识库列表查看请求,呈现知识库列表页面,知识库列表页面包括与多个数据类型各自对应的多个分类查看入口;以及知识库查看模块,被配置为响应于对多个数据类型中的第一数据类型对应的分类查看入口的选择,呈现已创建的第一数据类型的知识库。
在一些实施例中,装置1500还包括:详情呈现模块,被配置为响应于对知识库的详情查看请求,呈现知识库的详情页面,详情页面包括经处理后的多个数据项的聚合呈现,并且还包括以下至少一项:知识库的元数据,被导入知识库的文件的列表;知识库对应的索引设置信息,数据项的数目,新数据添加入口,重新索引的触发入口,或更新频率的设置入口。
在一些实施例中,装置1500还包括:选项呈现模块,被配置为响应于对详情页面中的第一数据项的触发操作,呈现对第一数据项的编辑选项或删除选项;以及编辑接收模块,被配置为响应于对编辑选项的选择,在第一数据项的编辑模式下接收对第一数据项的编辑输入;以及数据项删除模块,被配置为响应于对删除选项的选择,从知识库删除第一数据项。
在一些实施例中,装置1500还包括聚合呈现模块,被配置为响应于对文件的列表中目标文件的选择,在详情页面中呈现从目标文件处理后得到的数据项的聚合呈现。
在一些实施例中,装置1500还包括修改请求接收模块,被配置为:接收对知识库的修改请求,修改请求指示以下至少一项:对知识库的元数据的修改,对知识库的索引设置信息的修改,对知识库的数据的添加。
在一些实施例中,知识库的目标类型为图像类型,并且呈现模块1510还被配置为:在详情页面中呈现被导入所述知识库的图像列表以及一个或多个图像各自对应的文本标注。
在一些实施例中,装置1500还包括:图像呈现模块,被配置为响应于对知识库中的目标图像的详情查看请求,呈现目标图像;标注生成模块,被配置为响应于接收到对自动标注生成的触发操作,利用自动标注生成工具来生成针对目标图像对应的目标文本标注;标注呈现模块,被配置为响应于目标图像未存在对应的文本标注,在目标图像对应的标注展示区中呈现目标文本标注;以及标注替换模块,被配置为响应于目标图像存在对应的先前文本标注,在接收到用户确认的情况下在目标图像对应的标注展示区中用目标文本标注替换先前文本标注。
在一些实施例中,装置1500还包括:知识库选择模块,被配置为在目标应用或目标工作流的创建页面中,呈现知识库选择区域,知识库选择区域指示多个数据类型;类型选择模块,被配置为响应于对多个数据类型中的目标类型的选择,在知识库选择区域中至少呈现目标类型对应的所述知识库;以及知识库关联模块,被配置为响应于接收到对知识库的选择,将知识库与目标应用或目标工作流相关联。
在一些实施例中,装置1500还包括调用模块,被配置为:响应于对知识库被关联到目标应用或目标工作流,基于对目标应用或目标工作流的查询信息,使知识库被调用确定对查询信息的处理。
在一些实施例中,创建模块1530还被配置为:基于所述索引设置信息来处理被导入的所述目标类型的所述数据,所创建的所述知识库包括经所述处理后可索引的多个数据项。
在一些实施例中,对于所述目标类型的所述数据,所述多个数据项分别被存储在多个类型的索引库中并且分别由多个类型的数据索引进行索引。装置1500还包括搜索模块,被配置为响应于接收到针对知识库的查询,按照多个类型分别对应的搜索算法,从多个类型的索引库分别搜索与查询相匹配的多组数据项;以及数据项选择模块,被配置为基于多组数据项的排序结果,从多组数据项中选择至少一个数据项用作查询的响应。
图16示出了其中可以实施本公开的一个或多个实施例的电子设备1600的框图。应当理解,图16所示出的电子设备1600仅仅是示例性的,而不应当构成对本文所描述的实施例的功能和范围的任何限制。图16所示出的电子设备1600可以用于实现图1的应用管理平台110和应用管理平台110。
如图16所示,电子设备1600是通用电子设备的形式。电子设备1600的组件可以包括但不限于一个或多个处理器或处理单元1610、存储器1620、存储设备1630、一个或多个通信单元1640、一个或多个输入设备1650以及一个或多个输出设备1660。处理单元1610可以是实际或虚拟处理器并且能够根据存储器1620中存储的程序来执行各种处理。在多处理器系统中,多个处理单元并行执行计算机可执行指令,以提高电子设备1600的并行处理能力。
电子设备1600通常包括多个计算机存储介质。这样的介质可以是电子设备1600可访问的任何可以获取的介质,包括但不限于易失性和非易失性介质、可拆卸和不可拆卸介质。存储器1620可以是易失性存储器(例如寄存器、高速缓存、随机访问存储器(RAM))、非易失性存储器(例如,只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、闪存)或它们的某种组合。存储设备630可以是可拆卸或不可拆卸的介质,并且可以包括机器可读介质,诸如闪存驱动、磁盘或者任何其他介质,其可以能够用于存储信息和/或数据并且可以在电子设备1600内被访问。
电子设备1600可以进一步包括另外的可拆卸/不可拆卸、易失性/非易失性存储介质。尽管未在图16中示出,可以提供用于从可拆卸、非易失性磁盘(例如“软盘”)进行读取或写入的磁盘驱动和用于从可拆卸、非易失性光盘进行读取或写入的光盘驱动。在这些情况中,每个驱动可以由一个或多个数据介质接口被连接至总线(未示出)。存储器1620可以包括计算机程序产品1625,其具有一个或多个程序模块,这些程序模块被配置为执行本公开的各种实施例的各种方法或动作。
通信单元1640实现通过通信介质与其他电子设备进行通信。附加地,电子设备1600的组件的功能可以以单个计算集群或多个计算机器来实现,这些计算机器能够通过通信连接进行通信。因此,电子设备1600可以使用与一个或多个其他服务器、网络个人计算机(PC)或者另一个网络节点的逻辑连接来在联网环境中进行操作。
输入设备1650可以是一个或多个输入设备,例如鼠标、键盘、追踪球等。输出设备1660可以是一个或多个输出设备,例如呈现器、扬声器、打印机等。电子设备1600还可以根据需要通过通信单元1640与一个或多个外部设备(未示出)进行通信,外部设备诸如存储设备、呈现设备等,与一个或多个使得用户与电子设备1600交互的设备进行通信,或者与使得电子设备1600与一个或多个其他电子设备通信的任何设备(例如,网卡、调制解调器等)进行通信。这样的通信可以经由输入/输出(I/O)接口(未示出)来执行。
根据本公开的示例性实现方式,提供了一种计算机可读存储介质,其上存储有计算机可执行指令,其中计算机可执行指令被处理器执行以实现上文描述的方法。根据本公开的示例性实现方式,还提供了一种计算机程序产品,计算机程序产品被有形地存储在非瞬态计算机可读介质上并且包括计算机可执行指令,而计算机可执行指令被处理器执行以实现上文描述的方法。
这里参照根据本公开实现的方法、装置、设备和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理单元,从而生产出一种机器,使得这些指令在通过计算机或其他可编程数据处理装置的处理单元执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
可以把计算机可读程序指令加载到计算机、其他可编程数据处理装置、或其他设备上,使得在计算机、其他可编程数据处理装置或其他设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其他可编程数据处理装置、或其他设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图呈现了根据本公开的多个实现的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
以上已经描述了本公开的各实现,上述说明是示例性的,并非穷尽性的,并且也不限于所公开的各实现。在不偏离所说明的各实现的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实现的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其他普通技术人员能理解本文公开的各个实现方式。

Claims (20)

  1. 一种信息处理方法,包括:
    响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,所述配置页面包括:
    第一配置区域,用于从多个数据类型中接收对所述知识库的目标类型的配置,以及
    第二配置区域,用于接收对所述知识库的目标数据源的配置;
    响应于接收到对所述目标类型和所述目标数据源的配置,从所述目标数据源将所述目标类型的数据导入所述知识库;
    响应于所述数据导入完成,呈现与所述目标类型相对应的索引设置页面,用于接收针对导入的所述数据的索引设置信息;以及
    响应于接收到所述索引设置信息,基于所述索引设置信息来创建所述目标类型的所述知识库。
  2. 根据权利要求1所述的方法,其中所述第二配置区域呈现所支持的至少一个类型的数据源,所述至少一个类型的数据源包括以下至少一项:本地数据源、在线数据源、数据库、自定义数据。
  3. 根据权利要求2所述的方法,其中从所述目标数据源将所述目标类型的数据导入所述知识库包括:
    响应于所述目标数据源是所述自定义数据的类型,呈现数据输入区域;以及
    将在所述数据输入区域中接收到的输入数据导入所述知识库。
  4. 根据权利要求1所述的方法,其中
    所述目标类型包括文档类型,并且呈现与所述目标类型相匹配的索引设置页面包括:呈现与所述文档类型相对应的索引设置页面,用于接收针对文档的分段索引设置,所述分段索引设置指示以下至少一项:对文档的分段规则、分段长度和分段预处理规则,文档的分段对应于用于索引的数据项;或者,
    所述目标类型包括表格类型,并且呈现与所述目标类型相匹配的索引设置页面包括:呈现与所述表格类型相对应的索引设置页面,用于接收针对表格的表头索引设置,所述表头索引设置指示表格中用于索引数据项的表头字段;或者
    所述目标类型包括图像类型,并且呈现与所述目标类型相匹配的索引设置页面包括:呈现与所述图像类型相对应的索引设置页面,用于接收针对图像的标注设置,所述标志设置指示用于索引图像的文本标注。
  5. 根据权利要求1所述的方法,其中
    所述目标类型包括文档类型,并且与所述文档类型相对应的索引设置页面包括默认分段索引设置以及用户自定义的分段索引设置的输入入口;或者
    所述目标类型包括图像类型,并且与所述图像类型相对应的索引设置页面包括标注设置的自动生成入口以及用户自定义的标注设置的输入入口。
  6. 根据权利要求1所述的方法,还包括:
    响应于知识库列表查看请求,呈现知识库列表页面,所述知识库列表页面包括与所述多个数据类型各自对应的多个分类查看入口;以及
    响应于对所述多个数据类型中的第一数据类型对应的分类查看入口的选择,呈现已创建的所述第一数据类型的知识库。
  7. 根据权利要求1所述的方法,还包括:
    响应于对所述知识库的详情查看请求,呈现所述知识库的详情页面,所述详情页面包括经处理后的多个数据项的聚合呈现,并且还包括以下至少一项:
    所述知识库的元数据,
    被导入所述知识库的文件的列表;
    所述知识库对应的索引设置信息,
    数据项的数目,
    新数据添加入口,
    重新索引的触发入口,
    更新频率的设置入口。
  8. 根据权利要求7所述的方法,还包括:
    响应于对所述详情页面中的第一数据项的触发操作,呈现对所述第一数据项的编辑选项或删除选项;以及
    响应于对所述编辑选项的选择,在所述第一数据项的编辑模式下接收对所述第一数据项的编辑输入;以及
    响应于对所述删除选项的选择,从所述知识库删除所述第一数据项。
  9. 根据权利要求7所述的方法,还包括:
    响应于对所述文件的列表中目标文件的选择,在所述详情页面中呈现从所述目标文件处理后得到的数据项的聚合呈现。
  10. 根据权利要求1所述的方法,还包括:
    接收对所述知识库的修改请求,所述修改请求指示以下至少一项:
    对所述知识库的元数据的修改,
    对所述知识库的索引设置信息的修改,
    对所述知识库的数据的添加。
  11. 根据权利要求7所述的方法,其中所述知识库的所述目标类型为图像类型,并且其中呈现所述知识库的详情页面包括:
    在所述详情页面中呈现被导入所述知识库的图像列表以及一个或多个图像各自对应的文本标注。
  12. 根据权利要求11所述的方法,还包括执行以下至少一项:
    响应于对所述知识库中的目标图像的详情查看请求,呈现所述目标图像;
    响应于接收到对自动标注生成的触发操作,利用自动标注生成工具来生成针对所述目标图像对应的目标文本标注;
    响应于所述目标图像未存在对应的文本标注,在所述目标图像对应的标注展示区中呈现所述目标文本标注;
    响应于所述目标图像存在对应的先前文本标注,在接收到用户确认的情况下在所述目标图像对应的标注展示区中用所述目标文本标注替换先前文本标注。
  13. 根据权利要求1所述的方法,还包括:
    在目标应用或目标工作流的创建页面中,呈现知识库选择区域,所述知识库选择区域指示所述多个数据类型;
    响应于对所述多个数据类型中的所述目标类型的选择,在所述知识库选择区域中至少呈现所述目标类型对应的所述知识库;以及
    响应于接收到对所述知识库的选择,将所述知识库与所述目标应用或所述目标工作流相关联。
  14. 根据权利要求13所述的方法,还包括:
    响应于对所述知识库被关联到所述目标应用或所述目标工作流,基于对所述目标应用或所述目标工作流的查询信息,使所述知识库被调用确定对所述查询信息的处理。
  15. 根据权利要求1所述的方法,其中创建所述目标类型的所述知识库包括:
    基于所述索引设置信息来处理被导入的所述目标类型的所述数据,所创建的所述知识库包括经所述处理后可索引的多个数据项。
  16. 根据权利要求15所述的方法,其中对于所述目标类型的所述数据,所述多个数据项分别被存储在多个类型的索引库中并且分别由多个类型的数据索引进行索引,所述方法还包括:
    响应于接收到针对所述知识库的查询,按照所述多个类型分别对应的搜索算法,从所述多个类型的索引库分别搜索与所述查询相匹配的多组数据项;以及
    基于所述多组数据项的排序结果,从所述多组数据项中选择至少一个数据项用作所述查询的响应。
  17. 一种用于信息处理的装置,包括:
    呈现模块,被配置为响应于接收到创建请求,呈现用于接收知识库的配置信息的配置页面,所述配置页面包括:第一配置区域,用于从多个数据类型中接收对所述知识库的目标类型的配置,以及第二配置区域,用于接收对所述知识库的目标数据源的配置;
    导入模块,被配置为响应于接收到对所述目标类型和所述目标数据源的配置,从所述目标数据源将所述目标类型的数据导入所述知识库;
    设置模块,被配置为响应于所述数据导入完成,呈现与所述目标类型相对应的索引设置页面,用于接收针对导入的所述数据的索引设置信息;
    创建模块,被配置为响应于接收到所述索引设置信息,基于所述索引设置信息来创建所述目标类型的所述知识库。
  18. 一种电子设备,包括:
    至少一个处理单元;以及
    至少一个存储器,所述至少一个存储器被耦合到所述至少一个处理单元并且存储用于由所述至少一个处理单元执行的指令,所述指令在由所述至少一个处理单元执行时使所述电子设备执行根据权利要求1至16中任一项所述的方法。
  19. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序可由处理器执行以实现根据权利要求1至16中任一项所述的方法。
  20. 一种计算机程序产品,所述计算机程序产品被有形地存储在计算机存储介质中并且包括计算机可执行指令,计算机可执行指令在由设备执行时使设备执行根据权利要求1至16中任一项所述的方法。
PCT/CN2024/138844 2024-03-28 2024-12-12 信息处理方法、装置、设备和存储介质 Pending WO2025200593A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202410371110 2024-03-28
CN202410371110.2 2024-03-28
CN202411748663.1A CN120723948A (zh) 2024-03-28 2024-11-29 信息处理方法、装置、设备和存储介质
CN202411748663.1 2024-11-29

Publications (1)

Publication Number Publication Date
WO2025200593A1 true WO2025200593A1 (zh) 2025-10-02

Family

ID=97166111

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/138844 Pending WO2025200593A1 (zh) 2024-03-28 2024-12-12 信息处理方法、装置、设备和存储介质

Country Status (3)

Country Link
US (1) US20250307666A1 (zh)
CN (1) CN120723948A (zh)
WO (1) WO2025200593A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589945A (zh) * 2015-12-17 2016-05-18 华为技术有限公司 一种知识库构建方法、控制器
CN108733709A (zh) * 2017-04-21 2018-11-02 国家计算机网络与信息安全管理中心 用于知识管理的方法、装置及计算机存储介质
CN115168506A (zh) * 2022-07-04 2022-10-11 四川大学 一种多平台分布式数据集成方法、系统以及存储介质
US11734365B1 (en) * 2022-02-28 2023-08-22 Unlimidata Limited Knowledge-enriched item set expansion system and method
CN117407505A (zh) * 2023-10-26 2024-01-16 浪潮通用软件有限公司 一种融合文档知识和问答对数据的问答检索方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589945A (zh) * 2015-12-17 2016-05-18 华为技术有限公司 一种知识库构建方法、控制器
CN108733709A (zh) * 2017-04-21 2018-11-02 国家计算机网络与信息安全管理中心 用于知识管理的方法、装置及计算机存储介质
US11734365B1 (en) * 2022-02-28 2023-08-22 Unlimidata Limited Knowledge-enriched item set expansion system and method
CN115168506A (zh) * 2022-07-04 2022-10-11 四川大学 一种多平台分布式数据集成方法、系统以及存储介质
CN117407505A (zh) * 2023-10-26 2024-01-16 浪潮通用软件有限公司 一种融合文档知识和问答对数据的问答检索方法及系统

Also Published As

Publication number Publication date
US20250307666A1 (en) 2025-10-02
CN120723948A (zh) 2025-09-30

Similar Documents

Publication Publication Date Title
US11989694B2 (en) Managing projects in a content management system
US11423359B2 (en) Managing tasks in a content management system
US8341528B2 (en) Managing the content of shared slide presentations
US8429519B2 (en) Presentation generator
US9251130B1 (en) Tagging annotations of electronic books
US8122069B2 (en) Methods for pairing text snippets to file activity
US9171132B1 (en) Electronic note management system and user-interface
US20100115003A1 (en) Methods For Merging Text Snippets For Context Classification
US20130198221A1 (en) Indexing structures using synthetic document summaries
CN101802773A (zh) 对搜索结果的定制
CN104750776B (zh) 使用元数据访问数据库平台中的信息内容
WO2008006197A1 (en) Methods and apparatus for reusing data access and presentation elements
CN1938701A (zh) 元数据型预取
KR20110017694A (ko) 온라인 문서 편집 시스템 및 그 방법
US20110270816A1 (en) Information Exploration
CN117972012A (zh) 数据存储方法、数据查询方法及相关装置
TWI290687B (en) System and method for search information based on classifications of synonymous words
CN118657132B (zh) 一种文档内容生成方法、系统、设备及介质
US8612882B1 (en) Method and apparatus for creating collections using automatic suggestions
WO2025200593A1 (zh) 信息处理方法、装置、设备和存储介质
US8875007B2 (en) Creating and modifying an image wiki page
CN113901055B (zh) 数据的检索处理方法、装置和电子设备
JP2010067233A (ja) ワークフロー管理システム、ワークフロー管理方法、及びワークフロー管理プログラム
KR102593884B1 (ko) 문서 자동 작성 시스템 및 방법, 컴퓨터로 독출 가능한 기록 매체
Ma One concept, one term, good practice but how to achieve?—improving facet values quality for Samuel Proctor oral history collection, hosted by the University of Florida digital collections

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24931768

Country of ref document: EP

Kind code of ref document: A1