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
45.54k stars 6.4k forks source link

Add support for custom Q&A in the knowledge base #7735

Open AAEE86 opened 2 weeks ago

AAEE86 commented 2 weeks ago

Self Checks

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

I need to import some Q&A content that has been identified, but I can only switch to Q&A form through Dify, which will cause a difference from the Q&A content I provided, and I also need to manually edit and rebuild, I hope this can be improved.

2. Additional context or comments

No response

3. Can you help us with this feature?

crazywoola commented 2 weeks ago

You can create a blank dataset with Q&A enabled, then you can upload custom Q&A pairs through API, this is the only way to do it at this moment.

AAEE86 commented 2 weeks ago

You can create a blank dataset with Q&A enabled, then you can upload custom Q&A pairs through API, this is the only way to do it at this moment.

I am aware. I still maintain the anticipation that this function be taken into consideration.

AAEE86 commented 2 weeks ago

You can create a blank dataset with Q&A enabled, then you can upload custom Q&A pairs through API, this is the only way to do it at this moment.

And to create a Q&A type knowledge base, I must first import some files and then convert it to the Q&A mode.

Please support the creation of empty Q&A documents .

nhha1602 commented 2 weeks ago

I also care about this. One more thing, the GENERATOR_QA_PROMPT is fixed. Please help to show me the way to create prompt for each of Document or each of Data set ?