Knowledge Retrieval with metadata, result none #11709

Closed
opened 2026-02-21 19:02:58 -05:00 by yindo · 0 comments
Owner

Originally created by @majinkai on GitHub (Mar 19, 2025).

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

1.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Steps like https://dify.ai/blog/dify-v1-1-0-filtering-knowledge-retrieval-with-customized-metadata

✔️ Expected Behavior

No response

Actual Behavior

2025-03-19 04:24:40.579 WARNING [Dummy-168] [provider_configuration.py:989] - get custom model schema failed, {"code":0,"message":"success","data":{"model_schema":null}}
2025-03-19 04:25:23.087 WARNING [Dummy-169] [provider_configuration.py:989] - get custom model schema failed, {"code":0,"message":"success","data":{"model_schema":null}}
2025-03-19 04:25:52.813 WARNING [Dummy-173] [provider_configuration.py:989] - get custom model schema failed, {"code":0,"message":"success","data":{"model_schema":null}}
Exception in thread Thread-176 (_retriever):
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/app/api/core/rag/retrieval/dataset_retrieval.py", line 620, in _retriever
    documents = RetrievalService.retrieve(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/rag/datasource/retrieval_service.py", line 105, in retrieve
    raise ValueError(";\n".join(exceptions))
ValueError: Filter is missing required field 'value<TYPE>': {'operator': 'ContainsAny', 'path': ['document_id'], 'valueTextArray': ['f9f534cb-d4d5-4ab3-8daa-481267b2a77f', '5f12981e-7a87-4386-80d6-14aa4078317b', '84cf8bc5-7789-40ed-a877-fb4e32aba67a']}. Valid values are: {'valueGeoRange', 'valueDate', 'valueNumber', 'valueBoolean', 'valueInt', 'valueText', 'valueString'}.
Originally created by @majinkai on GitHub (Mar 19, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.1.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Steps like https://dify.ai/blog/dify-v1-1-0-filtering-knowledge-retrieval-with-customized-metadata ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior ``` 2025-03-19 04:24:40.579 WARNING [Dummy-168] [provider_configuration.py:989] - get custom model schema failed, {"code":0,"message":"success","data":{"model_schema":null}} 2025-03-19 04:25:23.087 WARNING [Dummy-169] [provider_configuration.py:989] - get custom model schema failed, {"code":0,"message":"success","data":{"model_schema":null}} 2025-03-19 04:25:52.813 WARNING [Dummy-173] [provider_configuration.py:989] - get custom model schema failed, {"code":0,"message":"success","data":{"model_schema":null}} Exception in thread Thread-176 (_retriever): Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/app/api/core/rag/retrieval/dataset_retrieval.py", line 620, in _retriever documents = RetrievalService.retrieve( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/rag/datasource/retrieval_service.py", line 105, in retrieve raise ValueError(";\n".join(exceptions)) ValueError: Filter is missing required field 'value<TYPE>': {'operator': 'ContainsAny', 'path': ['document_id'], 'valueTextArray': ['f9f534cb-d4d5-4ab3-8daa-481267b2a77f', '5f12981e-7a87-4386-80d6-14aa4078317b', '84cf8bc5-7789-40ed-a877-fb4e32aba67a']}. Valid values are: {'valueGeoRange', 'valueDate', 'valueNumber', 'valueBoolean', 'valueInt', 'valueText', 'valueString'}. ```
yindo added the 🐞 buggood first issue labels 2026-02-21 19:02:58 -05:00
yindo closed this issue 2026-02-21 19:02:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11709