Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API hit-testing not working knowledge #8117

Closed
5 tasks done
tienldbnk opened this issue Sep 9, 2024 · 7 comments · Fixed by #8217
Closed
5 tasks done

API hit-testing not working knowledge #8117

tienldbnk opened this issue Sep 9, 2024 · 7 comments · Fixed by #8217
Assignees
Labels
🐞 bug Something isn't working

Comments

@tienldbnk
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.7.3

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

image image

✔️ Expected Behavior

No response

❌ Actual Behavior

Testing API hiting not working

@dosubot dosubot bot added 🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited labels Sep 9, 2024
Copy link

dosubot bot commented Sep 9, 2024

I found some similar issues that might be relevant to your problem:

  1. Error is displayed in selecting the tool for the node (closed):

    • Solution: Ensure that your Node.js version is 18.17.0 or higher. Additionally, check the tool's authorization or configuration. For more details, refer to the tool setup documentation [1].
  2. The knowledge database is empty, list can be queried through API, and it will also prompt for duplicate names when creating (closed):

    • Solution: Ensure that the dataset name you are using is unique. You can list existing dataset names using the API to avoid duplicates [2].

Regarding the 500 Internal Server Error you are encountering, common causes include server overload or application errors. This is supported by the documentation, which states:

### 6. When using OpenAI's key for dialogue in the application, there is an error prompt as follows. **What is the cause?**

Error 1:

```JSON
The server encountered an internal error and was unable to complete your request。Either the server is overloaded or there is an error in the application

[3]


For the specific issue with the `page` field in the `Vector_index_f3ce5821_66e2_4d12_9400_a3f08c37d649_Node` type, I couldn't find a direct answer in the repository. However, it seems that the `page` field might not be a valid query field for this type. You may need to check the GraphQL schema definitions to confirm this.

If you need further assistance, please provide more details or check the GraphQL schema definitions for the `Vector_index_f3ce5821_66e2_4d12_9400_a3f08c37d649_Node` type to ensure that the `page` field is correctly defined.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

@crazywoola crazywoola removed the 🤔 cant-reproduce We can not reproduce it or the information is limited label Sep 9, 2024
@crazywoola
Copy link
Member

I guess you need to reindex the documents.

  • What kinds of documents do you have?
  • Can you paste the settings of the KB?

@crazywoola crazywoola self-assigned this Sep 9, 2024
@tienldbnk
Copy link
Author

I guess you need to reindex the documents.

  • What kinds of documents do you have?
  • Can you paste the settings of the KB?
  1. Is there a way to reset the index of all apps without affecting them?
  2. I would like to know where the specific KB config is because I use the default of dify

@crazywoola
Copy link
Member

  1. You can reset the index by change the embedding model and change it back.
  2. See the image below
image

@tienldbnk
Copy link
Author

  1. You can reset the index by change the embedding model and change it back.
  2. See the image below
image

I tried the same as you, but the result is still unable to query even though I'm running locally but on dify's official website it works normally. I discovered it had a query error when using the model. If I don't use the model but use the traditional one, it still works normally. Please guide me to refresh the index of these documents

@tienldbnk
Copy link
Author

@crazywoola

I got a fix, if I add a file to change the index and delete that file it will work, what is the cause?

@Howe829 Howe829 mentioned this issue Sep 10, 2024
5 tasks
@crazywoola
Copy link
Member

See #8211 for updates

@crazywoola crazywoola mentioned this issue Sep 10, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants