dify icon indicating copy to clipboard operation
dify copied to clipboard

I have extracted the ternary information using llm and hopefully I can build the knowledge graph directly in dify

Open Vampxgg opened this issue 1 year ago • 2 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I have extracted the ternary information using llm and hopefully I can build the knowledge graph directly in dify

2. Additional context or comments

No response

3. Can you help us with this feature?

  • [X] I am interested in contributing to this feature.

Vampxgg avatar Sep 09 '24 08:09 Vampxgg

@Vampxgg Hello there! I'm here to assist you with any bugs, questions, or contributions you may have. Feel free to ask for help while we wait for a human maintainer.

I found a similar open issue that might be relevant to your request: Is it necessary to upload a file when creating a knowledge?. The suggested solution is to create an empty dataset by API, and there is a request to develop a button to implement this API on the web.

To create a knowledge graph in Dify using the extracted ternary information, follow these steps:

  1. Select Data Source:

    • Choose the appropriate data source for your knowledge graph. Options include importing from a text file, syncing with Notion, or syncing with a website.
  2. Text Preprocessing and Cleaning:

    • Set up text preprocessing and cleaning rules. You can choose automatic settings or customize chunk rules, chunk length, and preprocessing rules such as removing extra spaces, URLs, emails, and stopwords.
  3. Execution and Completion:

    • Execute the process to create the knowledge graph and complete the setup.

Here is a summary of the steps in code format:

const translation = {
  steps: {
    one: '데이터 소스 선택', // Select Data Source
    two: '텍스트 전처리 및 클리닝', // Text Preprocessing and Cleaning
    three: '실행 및 완료', // Execution and Completion
  },
};

[1]

For more detailed management and maintenance of your knowledge graph, Dify provides a complete set of standard APIs. You can refer to the Knowledge Base API Documentation for more information on adding, deleting, modifying, and querying documents and segments in the knowledge base [2].

If you need further assistance or have specific questions about the process, feel free to ask!

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Sep 09 '24 08:09 dosubot[bot]

Use mermaid flow chart can draw graphs.

crazywoola avatar Sep 09 '24 08:09 crazywoola