Skip to content

[Bug] Inconsistency of file_path in dataprep APIs #1562

Description

@cheehook

Priority

P2-High

OS type

Ubuntu

Hardware type

Xeon-GNR

Installation method

  • Pull docker images from hub.docker.com
  • Build docker images from source
  • Other
  • N/A

Deploy method

  • Docker
  • Docker Compose
  • Kubernetes Helm Charts
  • Other
  • N/A

Running nodes

Single Node

What's the version?

6e30a85

Description

In dataprep comp, /get API return file name and id with "rag-redis_" appended on actual file name.
However, in /delete API, the returned id from /get cannot be directly used in "file_path" param as it will get appended with another "rag-redis_" prefix causing 404 error.

This inconsistency requires user to manually filter out the prefix of file name/id from /get API to use for /delete API "file_path" param.

Reproduce steps

following the steps as mentioned in https://github.com/opea-project/GenAIComps/blob/main/comps/dataprep/src/README_redis.md

Raw log

Attachments

Image

Metadata

Metadata

Assignees

Labels

A2ready to fixbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions