infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
21.46k stars 2.1k forks source link

[Question]: How to set the requested knowledge base and prompt when using the following two APIs for requests? #1518

Open wanyuks opened 3 months ago

wanyuks commented 3 months ago

Describe your problem

How to set the requested knowledge base and prompt when using the following two APIs for requests?

The request url is: "http://localhost/v1/api/new_conversation" and "http://localhost/v1/api/completion"

KevinHuSh commented 3 months ago

You have to set prompt on web UI in dialog setting. It will relate to the corresponding KB automatically.