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
39.27k stars 5.38k forks source link

Using Hybrid Search, Error syntax error graphql request expected found string #5972

Closed JayHsu5 closed 4 days ago

JayHsu5 commented 3 weeks ago

Self Checks

Dify version

0.6.11

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Using Hybrid Search
  2. {"aaa":"bbb"}

✔️ Expected Behavior

Normal search content

❌ Actual Behavior

Error syntax error graphql request expected found string

dosubot[bot] commented 3 weeks ago

The error you're encountering with the Hybrid Search feature in Dify might be due to an incorrect GraphQL request format. The expected format for a GraphQL request in the Hybrid Search feature is as follows:

{
  hybridSearch(query: "your_query_here") {
    topK: 3
    rerankModel: "your_rerank_model_api_key"
  }
}

Ensure that your request adheres to this format, replacing "your_query_here" with your actual query and "your_rerank_model_api_key" with your actual rerank model API key [1].

Additionally, verify that your environment variables and configurations for the vector database and knowledge base are correctly set up, as these are crucial for the Hybrid Search feature to function properly in a self-hosted Docker setup [2][3].

To continue talking to Dosu, mention @dosu.