Skip to content

Conversation

@joshuayao
Copy link
Collaborator

@joshuayao joshuayao commented Aug 29, 2025

Description

Improve the modularity, flexibility, and maintainability of the data access layer for the Chat History, Feedback Management, and Prompt Registry microservices using OpeaStore. Support MongoDB in this PR.

  1. Porting the data access layer to OpeaStore: Migrating the existing code for data operations (like create, read, update, and delete) from the three microservices to use the OpeaStore. This ensures consistency and leverages the benefits of the shared data layer.
  2. Adding OpeaStore tools: A store factory streamlines the creation of a connection for different databases and tools for resolving database differentiations like ODM.
  3. Decoupling user data structures: Separating the application's data models from OpeaStore data layer implementations.
  4. Adding a search by KV API: A Key-Value (KV) API is a more common way to retrieve data in data access layer. Separating the application's search logic from OpeaStore data layer implementations like "get doc of a specific user".
  5. Updating documentation

Issues

#1578

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

@joshuayao joshuayao changed the title Porting the data store layers of components to OpeaStore. [WIP] Porting the data store layers of components to OpeaStore. Aug 29, 2025
@joshuayao joshuayao added the WIP label Aug 29, 2025
@codecov
Copy link

codecov bot commented Sep 1, 2025

Codecov Report

❌ Patch coverage is 17.89474% with 78 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
comps/cores/storages/stores.py 0.00% 57 Missing ⚠️
comps/cores/storages/mongodb.py 44.44% 20 Missing ⚠️
comps/cores/common/storage.py 50.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
comps/cores/common/storage.py 58.18% <50.00%> (-0.31%) ⬇️
comps/cores/storages/mongodb.py 51.65% <44.44%> (-11.87%) ⬇️
comps/cores/storages/stores.py 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Yi Yao <[email protected]>
@joshuayao joshuayao changed the title [WIP] Porting the data store layers of components to OpeaStore. Refine Data Access using OpeaStore Sep 1, 2025
@joshuayao joshuayao removed the WIP label Sep 1, 2025
@joshuayao joshuayao merged commit 82ba539 into main Sep 1, 2025
26 checks passed
@joshuayao joshuayao deleted the josh/opea_store branch September 1, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Porting ChatHistory, FeedbackManagement, and PromptRegistry to OPEAStore

4 participants