langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46.11k stars 6.5k forks source link

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

Open Vampxgg opened 1 week ago

Vampxgg commented 1 week ago

Self Checks

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?

dosubot[bot] commented 1 week ago

@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.

crazywoola commented 1 week ago

Use mermaid flow chart can draw graphs.