mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-16 22:51:24 +00:00
feat: add evaluation service module for RAG and Agent (#2070)
This commit is contained in:
@@ -122,3 +122,11 @@ def register_serve_apps(system_app: SystemApp, cfg: Config, webserver_port: int)
|
||||
system_app.register(FileServe)
|
||||
|
||||
# ################################ File Serve Register End ########################################
|
||||
|
||||
# ################################ Evaluate Serve Register Begin #######################################
|
||||
from dbgpt.serve.evaluate.serve import Serve as EvaluateServe
|
||||
|
||||
# Register serve Evaluate
|
||||
system_app.register(EvaluateServe)
|
||||
|
||||
# ################################ Evaluate Serve Register End ########################################
|
||||
|
@@ -447,7 +447,7 @@ def chunk_list(
|
||||
"doc_type": query_request.doc_type,
|
||||
"content": query_request.content,
|
||||
}
|
||||
chunk_res = service.get_chunk_list(
|
||||
chunk_res = service.get_chunk_list_page(
|
||||
query, query_request.page, query_request.page_size
|
||||
)
|
||||
res = ChunkQueryResponse(
|
||||
|
Reference in New Issue
Block a user