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
36.25k stars 4.89k forks source link

Automatic Metadata Population and Knowledge Graph Integration #4163

Open MrBrabus75 opened 1 month ago

MrBrabus75 commented 1 month ago

Self Checks

1. Is this request related to a challenge you're experiencing?

Hello, would it be possible to automatically and comprehensively populate the metadata in the Dify knowledge base when embedding files, using the files' metadata? (see image)

Also, wouldn't it be more practical and relevant to integrate the knowledge graph for retrieval purposes?

Yes, the current manual process of filling in metadata can be time-consuming and error-prone. Additionally, the lack of structured knowledge representation makes it challenging to retrieve comprehensive and accurate information.

2. Describe the feature you'd like to see

Automatic Metadata Population

Automatically and comprehensively populate the metadata in the Dify knowledge base when embedding files, using the files' metadata.

Knowledge Graph Integration

Integrate a knowledge graph for comprehensive and efficient retrieval purposes. Capture d’écran du 2024-05-07 16-14-34 Capture d’écran du 2024-05-07 16-14-56

3. How will this feature improve your workflow or experience?

Automatic Metadata Population

Knowledge Graph Integration

4. Additional context or comments

Advantages of KGs in LLMs

Integration with Vector Databases

Practical Example

  1. Graph Construction: Create a KG representing user data.
  2. Embedding Creation: Generate embeddings for each entity and relationship.
  3. Vector Database: Store these embeddings in a vector database.
  4. LLM Interaction: Find relevant embeddings, formulate an explainable response, and generate answers.

Conclusion

Knowledge Graphs, combined with LLMs and vector databases, create a powerful search engine that offers structure, explainability, and contextual relevance, improving the quality of generated answers.

ontology-inference

enhance-search

genai-stack-support-agent

5. Can you help us with this feature?

MrBrabus75 commented 1 month ago

?